Пытаюсь настроить ПК с Ubnutu 14.04 для работы с плоттером. Установил Inkscape 0.48, Inkcut 1.0.
При запуске Расширения -> Cutter/plotter -> Inkcut получаю ошибку:
Traceback (most recent call last):
File "inkcutext.py", line 71, in <module>
effect.affect()
File "/usr/share/inkscape/extensions/inkex.py", line 215, in affect
self.effect()
File "inkcutext.py", line 50, in effect
InkscapePlugin(self.document,nodes.keys(),inkex)
File "/home/user/.config/inkscape/extensions/inkcut/app/main.py", line 473, in InkscapePlugin
app = Application(svg,nodes,inkex)
File "/home/user/.config/inkscape/extensions/inkcut/app/main.py", line 69, in __init__
self.populate_combos(builder)
File "/home/user/.config/inkscape/extensions/inkcut/app/main.py", line 160, in populate_combos
from bin.serial.scanlinux import scan
File "/home/user/.config/inkscape/extensions/inkcut/app/bin/serial/scanlinux.py", line 10, in <module>
import serial
ImportError: No module named serial
Для последней ошибки нашел такое решение:
http://stackoverflow.com/questions/23378208/importerror-no-module-named-serialI have a script written in Python 3 with 3.3.5 installed, and I am getting this error from the terminal whenever I try to run it. I am using a Mac, OSX 10.7.5
I have already installed pyserial (using pip) for python 3. In order to do this, I first installed pip using:
$ curl -O http://python-distribute.org/distribute_setup.py
$ sudo python3 distribute_setup.py
$ curl -O https://raw.githubusercontent.com/pypa/pip/master/contrib/get-pip.py
$ sudo python3 get-pip.py
I then installed pyserial with:
$sudo pip3 install pyserial
I run the script with Python Launcher and I get the error:
ImportError: No module named serial
The error is at the line which says
import serial
I located pyserial in /Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages. I am really stumped and have no clue why I am getting this error.
I tried the following in Terminal:
$ python3
>>> import serial
>>> serial
<module 'serial' from '/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/serial/__init__.py'>
To me it looks like there isn't an issue with the directory. Is that a fair assumption, since Python instantly looks through that directory when I try it with the command line, or is it different when I'm running a script?
I'm very new to all of this so any sort of help and patience would be hugely appreciated.
Thanks.
EDIT: For anyone else looking at this having a similar problem, I didn't really fix it, but I worked around it by just running my program with eclipse using the PyDev plugin. If that's an option for you, worked like a charm for me.
Правда, так и не понял, что они там сделали. Поможет ли это в моем случае?
Также в
описании к Inkcut написано что нужно установить:
Before starting, ensure that the target machine has the required dependencies
pygtk and gtk
pyserial
librsvg2-common
Что это за пакеты или расширения? На другом ПК с Ubuntu 12.04 ничего не доустанавливал и все работает нормально.