Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

except ValueError, e: #32

Open
hariharan382 opened this issue Jun 23, 2021 · 10 comments
Open

except ValueError, e: #32

hariharan382 opened this issue Jun 23, 2021 · 10 comments

Comments

@hariharan382
Copy link

Traceback (most recent call last):
File "raster2laser_gcode.py", line 37, in
import png
File "C:\Program Files\Inkscape\share\inkscape\extensions\Inkscape-master\png.py", line 1885
except ValueError, e:
^
SyntaxError: invalid syntax

i am getting this error when trying to use gcode extension,i have no idea how to edit it since it is 2500 line of code

@DomBDev
Copy link

DomBDev commented Jul 20, 2021

im having this same error

@WhamBamSystems
Copy link

I'm getting the same error with Inkscape 1.1 on a Mac. Does this plugin work for version 1.1?

@BCChad
Copy link

BCChad commented Dec 30, 2021

I'm trying to overcome this as well - in my researching ValueError, it seems that it should have no arguments, simply ValueError:
I have removed the ", e" and made progress in debugging, but encountered further errors elsewhere. (newbie at Python, trying my best...).

rktech-de added a commit to rktech-de/Inkscape-to-Laser-GCode that referenced this issue Jan 10, 2022
@rktech-de
Copy link

rktech-de commented Jan 10, 2022

the above message, that I have added a commit to the issue 32 is wrong. what I did is implementing the pull request #23, it was only a typo in my commit massage, sorry

@ghost
Copy link

ghost commented Apr 7, 2023

Another DEAD project, Thanks to Python3.

@WhamBamSystems
Copy link

WhamBamSystems commented Apr 7, 2023 via email

@ghost
Copy link

ghost commented Apr 7, 2023

Screenshot_2023-04-07_07-03-42

Screenshot_2023-04-07_07-02-15

@rktech-de
Copy link

Maybe this helps, I have get my version running with Inkscape 1.1 (Python3) with this change in png.py
https://github.com/rktech-de/Inkscape/blob/master/png.py

@ghost
Copy link

ghost commented Apr 8, 2023

Well i am running inkscape 1.0.2-4 and will stay that way, until debian bullseye
finalizes at oldstable.

Screenshot_2023-04-07_20-06-41

@rktech-de
Copy link

Hi, the png.py file shouldn't have any "DOCTYPE" tag, maybe you have downloaded the github website and not only the Python code of the png.py file?
best you download the full projekt zip https://github.com/rktech-de/Inkscape/archive/refs/heads/master.zip and copy the png.py file (or try it with my fork)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants