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

Issues getting this extension to work #25

Open
silverscampi opened this issue Jul 2, 2021 · 1 comment
Open

Issues getting this extension to work #25

silverscampi opened this issue Jul 2, 2021 · 1 comment

Comments

@silverscampi
Copy link

silverscampi commented Jul 2, 2021

Hello,
I fixed my initial incorrect installation of this extension, but I am still having issues getting this extension to work at all without Inkscape reporting errors from Python.

I am using Windows 10 build 19041, 4xidraw release 1.2.2, and Inkscape 1.0.1.

I put the 'inkscape driver' files into the Inkscape extensions folder.
I opened Inkscape, went to Extensions > AxiDraw > AxiDraw Control...

Any plot or manual controls I tried to apply, an error constantly appeared about inconsistent indentation in axidraw.py, so I had to convert all tabs to spaces and fix some inconsistent indentation in various places.

Now, any plot or manual controls I try to apply, this error appears:

Traceback (most recent call last):
  File "axidraw.py", line 35, in <module>
    import ebb_serial		# https://github.com/evil-mad/plotink  Requires version 0.4
ModuleNotFoundError: No module named 'ebb_serial'

(Although the readme says that the extension should work directly with Inkscape 1.0.1, and that only Inkscape 0.9.x needs additional modules and extensions)

Since the error is to do with plotink, I think installing the plotink library would help the issue. However I am unsure on how to do this properly.

Last night I tried various things:

  • trying to install plotink through pip, and changing the import lines in axidraw.py to
	from plotink import ebb_serial
	from plotink import ebb_motion
	from plotink import plot_utils

Inkscape complained that it cannot find the module plotink.

  • simply copy-pasting the plotink ebb_motion.py, ebb_serial.py and plot_utils.py files into the Inkscape extensions folder (with the original state of the axidraw.py file restored) but Inkscape complained that it still cannot find the modules.
    I then also tried changing the import lines in axidraw.py to
	from . import ebb_serial
	from . import ebb_motion
	from . import plot_utils 

but again with no success.

Could you possibly assist with installing these plotink dependencies?
Thank you!

@MatthewJohnMorris
Copy link

This looks like you are talking about the Axidraw plugin, rather than this plugin (4xidraw)? I don't see an axidraw.py anywhere in this code, and 4xidraw shouldn't be using the ebb stuff.

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