Hi, since the last Inkscape update I cannot open .eps files (Ubuntu). I get this error:
Traceback (most recent call last): File "/app/share/inkscape/extensions/ps_input.py", line 24, in <module> import inkex File "/app/share/inkscape/extensions/inkex/__init__.py", line 17, in <module> from .extensions import * File "/app/share/inkscape/extensions/inkex/extensions.py", line 33, in <module> from .elements import load_svg, BaseElement, ShapeElement, Group, Layer, Grid, \ File "/app/share/inkscape/extensions/inkex/elements/__init__.py", line 9, in <module> from ._base import SVG_PARSER, load_svg, ShapeElement, BaseElement File "/app/share/inkscape/extensions/inkex/elements/_base.py", line 31, in <module> from lxml import etree ModuleNotFoundError: No module named 'lxml'
To make it short, it means that you lacked some "dependencies" for the libraries you wanted to use. This is a common problem when installing python packages, mainly in windows. Before trying to use any kind of library, first it is suggested to look up whether it needs another library in python "family".
The solution is to provide the python interpreter with the path-to-your-module/library. The simplest solution is to append that python path to your sys.path list. In your notebook, first try:
This isn't a permanent change in sys.path, because when you log out, your environment is reset, so any variables you may have set are lost.
The better (and more permanent) way to solve this is to set your PYTHONPATH, which provides the interpreter with additional directories look in for python packages/modules.
from BASH type: export PYTHONPATH=/path/to/new/folder:/another/path/...../
Hi, since the last Inkscape update I cannot open .eps files (Ubuntu). I get this error:
Traceback (most recent call last):
File "/app/share/inkscape/extensions/ps_input.py", line 24, in <module>
import inkex
File "/app/share/inkscape/extensions/inkex/__init__.py", line 17, in <module>
from .extensions import *
File "/app/share/inkscape/extensions/inkex/extensions.py", line 33, in <module>
from .elements import load_svg, BaseElement, ShapeElement, Group, Layer, Grid, \
File "/app/share/inkscape/extensions/inkex/elements/__init__.py", line 9, in <module>
from ._base import SVG_PARSER, load_svg, ShapeElement, BaseElement
File "/app/share/inkscape/extensions/inkex/elements/_base.py", line 31, in <module>
from lxml import etree
ModuleNotFoundError: No module named 'lxml'
Any idea of what's happening?
Thanks!
Not reproduced here in Mint 20.
I'd first try using the reset button in Preferences>System.
Are you using the flatpak version?
https://gitlab.com/inkscape/inkscape/-/issues/2840#note_693384498
(different extension, but same cause ig?)
I tried to reset but the problem still persists and yes I am using the flatpak version. Same with the Ubuntu dev version
Edit: updated to latest version and it's working again.
I'm using the 1.1 version (Manjaro). To me worked install the lxml lib:
# Install pip (required if you don't have pip intalled .-.)
sudo pacman -s python-pip
# sudo apt install python3-pip (For Ubuntu/Debian versions)
pip install lxml
To make it short, it means that you lacked some "dependencies" for the libraries you wanted to use. This is a common problem when installing python packages, mainly in windows. Before trying to use any kind of library, first it is suggested to look up whether it needs another library in python "family".
The solution is to provide the python interpreter with the path-to-your-module/library. The simplest solution is to append that python path to your sys.path list. In your notebook, first try:
import sys
sys.path.append('my/path/to/module/folder')
This isn't a permanent change in sys.path, because when you log out, your environment is reset, so any variables you may have set are lost.
The better (and more permanent) way to solve this is to set your PYTHONPATH, which provides the interpreter with additional directories look in for python packages/modules.
from BASH type: export PYTHONPATH=/path/to/new/folder:/another/path/...../
#each path must be separated by a colon
I thought PIP is now included in Inkscape1.2 instalment as the additional export formats to jpeg, tiff and webp are now working right out of the box.