missing python modules
- Gorts Revenge
- Offline
- Junior Member
-
Less
More
- Posts: 23
- Thank you received: 0
07 Jan 2023 21:26 - 07 Jan 2023 21:38 #261201
by Gorts Revenge
missing python modules was created by Gorts Revenge
Hello all,
I'm trying to install and run F-Engrave but I get an error when I try to run it from a terminal that says the "pyclipper" module is missing. I tried installing the module using sudo apt-get but I'm getting nowhere. Has anyone run into this error before or have any idea how to resolve it? It sounds like a common, almost rote, python module so why would it be missing in the first place?
I'm reluctant do do a total reinstall of python 3. Any Ideas? Help. please....
Also, is there a native graphical python editor in Debian or do I need to install one?
I'm trying to install and run F-Engrave but I get an error when I try to run it from a terminal that says the "pyclipper" module is missing. I tried installing the module using sudo apt-get but I'm getting nowhere. Has anyone run into this error before or have any idea how to resolve it? It sounds like a common, almost rote, python module so why would it be missing in the first place?
I'm reluctant do do a total reinstall of python 3. Any Ideas? Help. please....
Also, is there a native graphical python editor in Debian or do I need to install one?
Last edit: 07 Jan 2023 21:38 by Gorts Revenge. Reason: more questions
Please Log in or Create an account to join the conversation.
- tommylight
-
- Away
- Moderator
-
Less
More
- Posts: 20174
- Thank you received: 6862
07 Jan 2023 22:38 #261212
by tommylight
Replied by tommylight on topic missing python modules
Try editing the f-engrave.py file and adding 3 after python at the top of the file, save and try running it.
The following user(s) said Thank You: Gorts Revenge
Please Log in or Create an account to join the conversation.
- Gorts Revenge
- Offline
- Junior Member
-
Less
More
- Posts: 23
- Thank you received: 0
08 Jan 2023 03:59 #261239
by Gorts Revenge
Replied by Gorts Revenge on topic missing python modules
I gave that a whirl, it sounded promising, but no dice.
I went through all of the script and it would appear it was all written in Python2.7.
I've wiped clean all the files and I'm going to try a fresh install (third times a charm).
I went through all of the script and it would appear it was all written in Python2.7.
I've wiped clean all the files and I'm going to try a fresh install (third times a charm).
Please Log in or Create an account to join the conversation.
- phillc54
-
- Offline
- Platinum Member
-
Less
More
- Posts: 5723
- Thank you received: 2095
08 Jan 2023 06:12 #261240
by phillc54
Replied by phillc54 on topic missing python modules
Try installing the pyclipper module:
sudo apt install python3-pyclipper
Please Log in or Create an account to join the conversation.
- Gorts Revenge
- Offline
- Junior Member
-
Less
More
- Posts: 23
- Thank you received: 0
08 Jan 2023 07:17 #261241
by Gorts Revenge
Replied by Gorts Revenge on topic missing python modules
Pyclipper installs on Python 3 OK but there seems to be some problem with the script.
It wont run in either Python2 or Python3. It will launch (sort of) from a Python3 development environment but without any fonts. So I get a partial GUI but it doesn't actually do anything.
Does anyone know of any alternative programs that are more Unix friendly?
Alternatively, I guess can try patching a network together with my Micro$#!t machine using samba and just let it run the F-Engrave program but that sounds like more headaches than it'd be worth.
It wont run in either Python2 or Python3. It will launch (sort of) from a Python3 development environment but without any fonts. So I get a partial GUI but it doesn't actually do anything.
Does anyone know of any alternative programs that are more Unix friendly?
Alternatively, I guess can try patching a network together with my Micro$#!t machine using samba and just let it run the F-Engrave program but that sounds like more headaches than it'd be worth.
Please Log in or Create an account to join the conversation.
- phillc54
-
- Offline
- Platinum Member
-
Less
More
- Posts: 5723
- Thank you received: 2095
08 Jan 2023 08:40 - 08 Jan 2023 08:45 #261247
by phillc54
Replied by phillc54 on topic missing python modules
It runs fine for me without modification on buster (python 3.7.3), bullseye (python 3.9.2), and bookworm (python 3.10.8). All I needed was python3-pyclipper for all three distros.
You do need to have appropriate fonts, I downloaded the CXF zip file at the bottom of the F-Engrave web page, then added the directory in the Settings - General Settings window.
You do need to have appropriate fonts, I downloaded the CXF zip file at the bottom of the F-Engrave web page, then added the directory in the Settings - General Settings window.
Last edit: 08 Jan 2023 08:45 by phillc54. Reason: Fix distro name, bullseye
Please Log in or Create an account to join the conversation.
- Gorts Revenge
- Offline
- Junior Member
-
Less
More
- Posts: 23
- Thank you received: 0
08 Jan 2023 17:25 #261284
by Gorts Revenge
Replied by Gorts Revenge on topic missing python modules
Again, no dice. The F-Engrave version I'm trying to run is 1.75 and It will not execute on it's own, only from within a P3 development environment. It is designated as an executable file. I've done four complete removals and installations with fresh files each time, always with the same result. In a terminal, I get the missing pyclipper statement but pyclipper has been installed.
I'm wondering if I have a problem with my PYTHON3 installation. Can it (PYTHON) be safely removed and reinstalled without cratering everything else?
I'm wondering if I have a problem with my PYTHON3 installation. Can it (PYTHON) be safely removed and reinstalled without cratering everything else?
Please Log in or Create an account to join the conversation.
- phillc54
-
- Offline
- Platinum Member
-
Less
More
- Posts: 5723
- Thank you received: 2095
09 Jan 2023 00:44 #261314
by phillc54
Replied by phillc54 on topic missing python modules
I was only trying it by calling it from python3 rather than trying to run it directly.
To run it directly you need to:
To run it directly you need to:
- Change the first line to python3 as Tommy pointed out in a previous post.
- Change the line endings in the file from Windows type to Unix type.
The following user(s) said Thank You: tommylight
Please Log in or Create an account to join the conversation.
- Gorts Revenge
- Offline
- Junior Member
-
Less
More
- Posts: 23
- Thank you received: 0
09 Jan 2023 03:55 #261325
by Gorts Revenge
Replied by Gorts Revenge on topic missing python modules
Yes, I added a "3" to "python" at the header of the main script when he suggested it (!#/usr/bin/python3) and I've always been making the suffix change using sed -i.bak 's/\$r\\' from the terminal. I finally decided to try an earlier release of F-Engrave (1.74) which doesn't run but it does give me some new error messages which seem to point back to the Launcher_py script. It says it can't lauch STARTUPINFO.
It's not worth the headaches of getting this far into the weeds over an engraving program that's already running on another computer. The answer to the question of whether python can be safely removed and reinstalled without damaging any of the CNC programs' workings should have some value though. Can it be safely removed and reinstalled or no?
Your best educated opinion?
It's not worth the headaches of getting this far into the weeds over an engraving program that's already running on another computer. The answer to the question of whether python can be safely removed and reinstalled without damaging any of the CNC programs' workings should have some value though. Can it be safely removed and reinstalled or no?
Your best educated opinion?
Please Log in or Create an account to join the conversation.
- Gorts Revenge
- Offline
- Junior Member
-
Less
More
- Posts: 23
- Thank you received: 0
09 Jan 2023 05:01 #261329
by Gorts Revenge
Replied by Gorts Revenge on topic missing python modules
Ugh. It would appear that I have some terminal flaw in my Linux installation; it's now crashing randomly and the menu header no longer responds. Lucky me.
Probably explains the python headaches...
Probably explains the python headaches...
Please Log in or Create an account to join the conversation.
Time to create page: 0.158 seconds