Axis Position Logger

More
10 May 2022 12:03 #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 or Create an account to join the conversation.

More
10 May 2022 12:06 #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 or Create an account to join the conversation.

More
13 May 2022 05:57 #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 or Create an account to join the conversation.

More
13 May 2022 23:58 #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 or Create an account to join the conversation.

More
21 May 2022 13:54 #243473 by jurod
Replied by jurod on topic Axis Position Logger
Yes.

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

More
21 May 2022 14:23 #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 or Create an account to join the conversation.

More
21 May 2022 14:34 #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
11 Jul 2022 16:14 #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.

 


 
Attachments:
The following user(s) said Thank You: tommylight

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

More
11 Jul 2022 22:11 #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.

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
11 Jul 2022 22:12 #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.

Time to create page: 0.224 seconds
Powered by Kunena Forum