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

Exception when start #63

Open
sstefanov opened this issue Nov 17, 2021 · 4 comments
Open

Exception when start #63

sstefanov opened this issue Nov 17, 2021 · 4 comments

Comments

@sstefanov
Copy link

sstefanov commented Nov 17, 2021

When started I receive following:

Traceback (most recent call last):
File "/mnt/sda2/sstefanov/.config/inkscape/extensions/laser.py", line 308, in
effect = GcodeExtension()
File "/mnt/sda2/sstefanov/.config/inkscape/extensions/laser.py", line 44, in init
EffectExtension.init(self)
File "/usr/share/inkscape/extensions/inkex/base.py", line 304, in init
super().init()
File "/usr/share/inkscape/extensions/inkex/base.py", line 64, in init
self.add_arguments(self.arg_parser)
File "/mnt/sda2/sstefanov/.config/inkscape/extensions/laser.py", line 271, in add_arguments
arguments = self.read_arguments()
File "/mnt/sda2/sstefanov/.config/inkscape/extensions/laser.py", line 296, in read_arguments
arguments.append({"name": name, "type": types[arg_type]})
KeyError: 'boolean'

I think line 19 in laser.inx must be like this:
<param name="filename_dynamic" type="bool" gui-text="Reuse SVG filename for output">false</param>
instead of:
<param name="filename_dynamic" type="boolean" gui-text="Reuse SVG filename for output">false</param>

@PadLex
Copy link
Collaborator

PadLex commented Nov 17, 2021

According to the Wiki it's been changed to bool since v1.0.

Are you sure you are using the most up-to-date version of the extension?

@sstefanov
Copy link
Author

sstefanov commented Nov 17, 2021

Yes, check line 19 here:
https://github.com/JTechPhotonics/J-Tech-Photonics-Laser-Tool/blob/master/laser/laser.inx
This line is with "boolean" instead of "bool" (for example like in next line).

@PadLex
Copy link
Collaborator

PadLex commented Nov 17, 2021

My bad, I meant to ask if you're using the latest version of Inkscape. Versions below 1.0 require the use of boolean insted of bool

@sstefanov
Copy link
Author

My Inkscape version is 1.1.
In all cases I think there must be the same types in the file.
When I changed "boolean" to "bool" in .inx file this passes fine.

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

2 participants