missing python modules

More
3 years 9 months ago #261201 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?

Please Log in to join the conversation.

More
3 years 9 months ago #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.

Please Log in to join the conversation.

More
3 years 9 months ago #261239 by Gorts Revenge
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).

Please Log in to join the conversation.

More
3 years 9 months ago #261240 by phillc54
Replied by phillc54 on topic missing python modules
Try installing the pyclipper module:
Code:
sudo apt install python3-pyclipper

Please Log in to join the conversation.

More
3 years 9 months ago #261241 by Gorts Revenge
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.

Please Log in to join the conversation.

More
3 years 9 months ago #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.

Please Log in to join the conversation.

More
3 years 9 months ago #261284 by Gorts Revenge
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?

Please Log in to join the conversation.

More
3 years 9 months ago #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:
  1. Change the first line to python3 as Tommy pointed out in a previous post.
  2. Change the line endings in the file from Windows type to Unix type.

Please Log in to join the conversation.

More
3 years 9 months ago #261325 by Gorts Revenge
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?

Please Log in to join the conversation.

More
3 years 9 months ago #261329 by Gorts Revenge
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...

Please Log in to join the conversation.

Time to create page: 0.746 seconds
Powered by Kunena Forum