fifonik / ElegooNeptuneThumbnailPrusaMod

PrusaSlicer/OrcaSlicer Post-Processing script that adds thumbnail into gcode files for Elegoo Neptune printers
GNU Affero General Public License v3.0
36 stars 4 forks source link

failed to run post-processing in Orca Slicer on Mac #12

Open cwiegert opened 5 months ago

cwiegert commented 5 months ago

First Off... thanks for posting this utility, have been looking for something like this for a number of months. Straight forward install and instructions - thanks for that as well. Installed the PyQt6, but doesn't seem to help with this error

Post-processing script "/usr/local/bin/python3"
"/usr/local/bin/ElegooNeptuneThumbnailPrusaMod-main/dist/thumbnail" "--image_size" "300x300" on
file /var/folders/3v/qd8pyr2j77n472dp0_n5tq7w0000gn/T/.OrcaSlicer.upload.969d-f8a9-8ef8-13e4
failed.
Error code: 1
Output:
SyntaxError: Non-UTF-8 code starting with '\xcf' in file
/usr/local/bin/ElegooNeptuneThumbnailPrusaMod-main/dist/thumbnail on line 1, but no encoding
declared; see https://peps.python.org/pep-0263/ for details

no matter what I try with paths and parameters, I get the same error. here is the exact code from the Post-processing Scripts section

"/usr/local/bin/python3" "/usr/local/bin/ElegooNeptuneThumbnailPrusaMod-main/dist/thumbnail" "--image_size" "300x300"

any help or direction appreciated. I am familiar with coding and config, so don't need a fix, just need a path to go down to discover the fix.

I was able to get a successful build on the Mac M2...


5706 INFO: Building EXE because EXE-00.toc is non existent
5706 INFO: Building EXE from EXE-00.toc
5706 INFO: Copying bootloader EXE to /usr/local/bin/ElegooNeptuneThumbnailPrusaMod-main/dist/thumbnail
5706 INFO: Converting EXE to target arch (arm64)
5715 INFO: Removing signature(s) from EXE
5724 INFO: Appending PKG archive to EXE
5726 INFO: Fixing EXE headers for code signing
5729 INFO: Re-signing the EXE
5747 INFO: Building EXE from EXE-00.toc completed successfully.```
cwiegert commented 5 months ago

OK - I have it working.... running the script instead of the executable. Also - I had to be careful about where to install the PYQT6, and make sure to put it in the appropriate version of python working directory. using pip3.12 install instead of simply pip3 install. by defualt the pip3 ran the install into site-packages for the 3.11 install of python.

Don't know what the issue is with the exe, but I have it working.