Axis Position Logger

More
4 years 5 months ago #243477 by jurod
Replied by jurod on topic Axis Position Logger
Used folders:
(screenshot path to files.png)
Insight to file .so in 2.8.2:
(screenshot From 2_8_2.png)
Insight to file .so in 2.9.0:
(screenshot From 2_9_0.png)
Attachments:

Please Log in or Create an account to join the conversation.

More
4 years 3 months ago #247082 by jurod
Replied by jurod on topic Axis Position Logger
small success

I changed the emclog.py interpreter
was: #! /usr/bin/python
is: #!/usr/bin/python3

next
was:  if sys.version_info[0] > 2:
    raise Exception("Python 2 is required.")
is: if sys.version_info[0] > 3:
    raise Exception("Python3 is required.")
etc...

I created a file for future .deb package creation
I added "md5sums" to the file:
1a14c073dc90e29563d3b1c7cfa3b10b  usr/lib/python3/dist-packages/ConfigParser.py

to my future .deb package "usr/lib/python3/dist-packages/" file  ConfigParser.py (I copied from /usr/lib/python2.7 + definitely adjustments)
I changed in the "control" file:
Installed-Size: 56
Depends: python3
Section: base

and in file "Position Logger.desktop" :
Icon=/usr/share/linuxcnc/linuxcncicon.png

and I created new .deb packages  "emclog_1.0.0_all.deb"

I tested on LinuxCNC Bookworm.

 


 
The following user(s) said Thank You: tommylight

Please Log in or Create an account to join the conversation.

More
4 years 3 months ago #247108 by JT
Replied by JT on topic Axis Position Logger

Hi, please help.
I can't install your Position Logger correctly in master version 2.9.0. 
The installation process will run correctly, but unable to start Logger.

Code:
hcnc@IS7XM:~$ sudo dpkg -i /home/hcnc/emclog_1.0.0_all.deb [sudo] heslo pre uzivatela hcnc:  (spus­ta sa databaza ... momentalne je nainstalovanych 100440 suborov alebo adresarov. Preparing to unpack .../home/hcnc/emclog_1.0.0_all.deb ... Unpacking emclog (1.0.0) over (1.0.0) ... Nastavuje sa balí­k emclog (1.0.0) ... Processing triggers for desktop-file-utils (0.23-4) ... Processing triggers for mime-support (3.62) ... Processing triggers for man-db (2.8.5-2) ... hcnc@IS7XM:~$    Error from terminal: hcnc@DELL9010:~$ emclog Traceback (most recent call last):   File "/usr/bin/emclog", line 9, in <module>     import linuxcnc ImportError: No module named linuxcnc hcnc@DELL9010:~$
 
Please start an issue at github.com/jethornton/emclog/issues

JT

Please Log in or Create an account to join the conversation.

More
4 years 3 months ago #247109 by JT
Replied by JT on topic Axis Position Logger

small success

I changed the emclog.py interpreter
was: #! /usr/bin/python
is: #!/usr/bin/python3

next
was:  if sys.version_info[0] > 2:
    raise Exception("Python 2 is required.")
is: if sys.version_info[0] > 3:
    raise Exception("Python3 is required.")
etc...

I created a file for future .deb package creation
I added "md5sums" to the file:
1a14c073dc90e29563d3b1c7cfa3b10b  usr/lib/python3/dist-packages/ConfigParser.py

to my future .deb package "usr/lib/python3/dist-packages/" file  ConfigParser.py (I copied from /usr/lib/python2.7 + definitely adjustments)
I changed in the "control" file:
Installed-Size: 56
Depends: python3
Section: base

and in file "Position Logger.desktop" :
Icon=/usr/share/linuxcnc/linuxcncicon.png

and I created new .deb packages  "emclog_1.0.0_all.deb"

I tested on LinuxCNC Bookworm.

 



 
Or create a pull request at github.com/jethornton/emclog/pulls

JT

Please Log in or Create an account to join the conversation.

More
4 years 3 months ago #247119 by jurod
Replied by jurod on topic Axis Position Logger
I didn't know about this possibility, but it already works. I also tested on version 2.8.2 buster. OK.
How to upload modified debian package with .deb extension?

Please Log in or Create an account to join the conversation.

More
2 years 8 months ago - 2 years 8 months ago #294211 by Ehsan_R
Replied by Ehsan_R on topic Axis Position Logger
I am facing this error while installing.
Can anyone tell me how to fix it?
Code:
ehsan@debian:~$ sudo dpkg -i /home/ehsan/emclog_1.0.0_all.deb Selecting previously unselected package emclog. (Reading database ... 165701 files and directories currently installed.) Preparing to unpack .../ehsan/emclog_1.0.0_all.deb ... Unpacking emclog (1.0.0) ... dpkg: dependency problems prevent configuration of emclog:  emclog depends on python; however:   Package python is not installed.  emclog depends on python-pyqt5; however:   Package python-pyqt5 is not installed. dpkg: error processing package emclog (--install):  dependency problems - leaving unconfigured Processing triggers for desktop-file-utils (0.26-1) ... Processing triggers for mailcap (3.70+nmu1) ... Processing triggers for man-db (2.11.2-2) ... Errors were encountered while processing:  emclog ehsan@debian:~$ sudo apt-get install python3-pyqt5 Reading package lists... Done Building dependency tree... Done Reading state information... Done python3-pyqt5 is already the newest version (5.15.9+dfsg-1). You might want to run 'apt --fix-broken install' to correct these. The following packages have unmet dependencies:  emclog : Depends: python but it is not installable           Depends: python-pyqt5 but it is not installable E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution). ehsan@debian:~$ sudo apt-get install python-pyqt5 Reading package lists... Done Building dependency tree... Done Reading state information... Done Package python-pyqt5 is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package 'python-pyqt5' has no installation candidate
Code:
[code][code][code][code] 
[/code][/code][/code][/code]
Last edit: 2 years 8 months ago by Ehsan_R.

Please Log in or Create an account to join the conversation.

Time to create page: 0.145 seconds
Powered by Kunena Forum