Axis Position Logger

More
2 years 8 months ago #294266 by Ehsan_R
Replied by Ehsan_R on topic Axis Position Logger
No, unfortunately it was not installed again
Code:
ehsan@debian:~$ sudo dpkg -P raspi-firmware [sudo] password for ehsan: (Reading database ... 200807 files and directories currently installed.) Removing raspi-firmware (1.20220830+ds-1) ... Purging configuration files for raspi-firmware (1.20220830+ds-1) ... Processing triggers for initramfs-tools (0.142) ... update-initramfs: Generating /boot/initrd.img-6.1.0-18-rt-amd64 ehsan@debian:~$ sudo apt dist-upgrade Reading package lists... Done Building dependency tree... Done Reading state information... Done Calculating upgrade... Done The following packages were automatically installed and are no longer required:   linux-headers-6.1.0-13-amd64 linux-headers-6.1.0-13-common Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 2 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n] y Setting up linux-image-6.1.0-18-rt-amd64 (6.1.76-1) ... /etc/kernel/postinst.d/dkms: dkms: running auto installation service for kernel 6.1.0-18-rt-amd64. dkms: autoinstall for kernel: 6.1.0-18-rt-amd64. /etc/kernel/postinst.d/initramfs-tools: update-initramfs: Generating /boot/initrd.img-6.1.0-18-rt-amd64 /etc/kernel/postinst.d/zz-update-grub: Generating grub configuration file ... Found background image: /usr/share/images/desktop-base/desktop-grub.png Found linux image: /boot/vmlinuz-6.1.0-18-rt-amd64 Found initrd image: /boot/initrd.img-6.1.0-18-rt-amd64 Found linux image: /boot/vmlinuz-6.1.0-13-rt-amd64 Found initrd image: /boot/initrd.img-6.1.0-13-rt-amd64 done Setting up linux-image-rt-amd64 (6.1.76-1) ... ehsan@debian:~$ wget https://raw.githubusercontent.com/jethornton/emclog/master/emclog_1.0.0_all.deb --2024-02-25 03:01:52--  https://raw.githubusercontent.com/jethornton/emclog/master/emclog_1.0.0_all.deb Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.108.133, 185.199.109.133, 185.199.110.133, ... Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.108.133|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 6876 (6.7K) [application/octet-stream] Saving to: ‘emclog_1.0.0_all.deb.2’ emclog_1.0.0_all.deb.2          100%[=====================================================>]   6.71K  --.-KB/s    in 0.01s    2024-02-25 03:01:53 (535 KB/s) - ‘emclog_1.0.0_all.deb.2’ saved [6876/6876] ehsan@debian:~$ sudo dpkg -i /home/ehsan/emclog_1.0.0_all.deb Selecting previously unselected package emclog. (Reading database ... 200773 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 dpkg -i /home/ehsan/emclog_1.0.0_all.deb.2 (Reading database ... 200781 files and directories currently installed.) Preparing to unpack .../ehsan/emclog_1.0.0_all.deb.2 ... Unpacking emclog (1.0.0) over (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 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).

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

More
2 years 8 months ago #294363 by Ehsan_R
Replied by Ehsan_R on topic Axis Position Logger
Can someone explain to me how to edit this project or create something similar?

Thank you very much

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

  • Aciera
  • Away
  • Administrator
  • Administrator
More
2 years 8 months ago #294364 by Aciera
Replied by Aciera on topic Axis Position Logger

Can someone explain to me how to edit this project or create something similar?

If you mean to modify the source code then you would need to do run-in-place installation and build linuxcnc on your local PC.

linuxcnc.org/docs/html/code/building-linuxcnc.html

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

More
2 years 8 months ago #294369 by tommylight
Replied by tommylight on topic Axis Position Logger
Position logger is a separate project by JT, so i do not know/think building LinuxCNC would help.
The issue is with old python used by it, so editing it to use python3 should be enough, although no idea how much work would that entail.
The following user(s) said Thank You: Aciera

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

  • Aciera
  • Away
  • Administrator
  • Administrator
More
2 years 8 months ago #294390 by Aciera
Replied by Aciera on topic Axis Position Logger
Ah yes thanks, sometimes I get confused going from one thread to another.
The following user(s) said Thank You: tommylight

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

  • Aciera
  • Away
  • Administrator
  • Administrator
More
2 years 8 months ago - 2 years 8 months ago #294394 by Aciera
Replied by Aciera on topic Axis Position Logger
So, to get the source you would download the .deb folder using the wget command as described here:
jethornton.github.io/emclog/install.html
Then right click on the downloaded 'emclog_1.0.0_all.deb' and choose 'Extract Here'
In the extracted folder extract the folder 'data.tar.xz'
You will find the pyhton file 'emclog' in the extracted 'usr/bin' folder.
This file you will need to update to python3.


[edit]
You will also need the gui file 'emclog.ui' from the folder 'emclog_1.0.0_all/usr/lib/python3/dist-packages/libemclog'

[edit2]
Just found the GitHub page for these two files:
github.com/jethornton/emclog/blob/master/emclog/src/emclog.ui
Last edit: 2 years 8 months ago by Aciera.
The following user(s) said Thank You: Mecanix, Ehsan_R

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

Time to create page: 0.145 seconds
Powered by Kunena Forum