Axis Position Logger

More
4 years 5 months ago #242481 by andypugh
Replied by andypugh on topic Axis Position Logger

I didn't find it, but I did it. Slovak language.
forum.strojirenstvi.cz/viewtopic.php?t=31115
This should soon be almost automatic:

hosted.weblate.org/projects/linuxcnc/linuxcnc/#translations

You can help :-)
 

Please Log in to join the conversation.

More
4 years 5 months ago #242482 by andypugh
Replied by andypugh on topic Axis Position Logger

I've been working on it for a week. Does anyone know why it can't find the linuxcnc module?
I don't really know. It is almost certainly related to Python2 / Python3 

Do you have Python3 installed? 2.9 / master is 100% Python3 now. 

How are you switching versions? Are you reinstalling linuxcnc-uspace-dev after switching? 

Please Log in to join the conversation.

More
4 years 5 months ago #242854 by jurod
Replied by jurod on topic Axis Position Logger
I switch versions by reinstalling linuxcnc-uspace-dev. I have Python3 and Python2.7 installed.

Please Log in to join the conversation.

More
4 years 5 months ago #242921 by andypugh
Replied by andypugh on topic Axis Position Logger
Switching linuxcnc-uspace-dev should come after switching LinuxCNC versions, I think.

Please Log in to join the conversation.

More
4 years 5 months ago #243473 by jurod
Replied by jurod on topic Axis Position Logger
Yes.

Please Log in to join the conversation.

More
4 years 5 months ago #243475 by jurod
Replied by jurod on topic Axis Position Logger
I have python installed:
(screenshot python.png)
(screenshot linuxcnc.png)
(screenshot python.png)
(screenshot Uname-a.png)
If I copy file "linuxcnc.x86_64-linux-gnu.so" from version 2.8.2 to folder "/usr/lib/python2.7/dist-packages" in version 2.9.0, the GUI will run from the Position Logger, but without a link to Linuxcnc hal.
 (screenshot Pos Log.png)
 (screenshot Files.png)
 

Please Log in to join the conversation.

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)

Please Log in 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.

 

Attachment not found




 

Please Log in 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 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.

 

Attachment not found





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

JT

Please Log in to join the conversation.

Time to create page: 0.156 seconds
Powered by Kunena Forum