Home › Evil Mad Scientist Forums › AxiDraw › Axidraw CLI
- This topic has 14 replies, 3 voices, and was last updated 4 years, 2 months ago by alanwats.
-
AuthorPosts
-
July 22, 2021 at 12:32 pm #29401Dr. RickyParticipant
Hi all,
I have been trying to use a Linux machine to work with the CLI for the Axidraw. I successfully installed Python 3.9, and used pip to run the installation instructions. But when I run
axicli –help
I get this error
from lxml import etree
ImportError: cannot import name ‘etree’ from ‘lxml’ (/opt/lib/python3.9/site-packages/lxml/__init__.py)I’ve tried reinstalling lxml (based on some reddit posts) but no luck so far. Any ideas?
July 22, 2021 at 12:59 pm #29402Windell OskayKeymasterTry
python3 -m pip install lxmlJuly 22, 2021 at 2:46 pm #29403Dr. RickyParticipantHi, Windell,
I’ve tried that, no change to the error.
from lxml import etree
ImportError: cannot import name ‘etree’ from ‘lxml’ (/opt/lib/python3.9/site-packages/lxml/__init__.py)July 22, 2021 at 2:50 pm #29404Windell OskayKeymastertry
which python3July 22, 2021 at 2:53 pm #29405Dr. RickyParticipantI get /opt/bin/python3
which is the place it was installed. Version is
Python 3.9.5
July 22, 2021 at 2:55 pm #29406Windell OskayKeymasterTry opening a terminal, and in it launch python:
python3Then, try
import lxmlJuly 22, 2021 at 2:58 pm #29407Dr. RickyParticipantSo far, still inside the python environment. No error.
July 22, 2021 at 2:59 pm #29408Windell OskayKeymasterThen try
from lxml import etreeJuly 22, 2021 at 3:01 pm #29409Dr. RickyParticipantI get the error
File “<stdin>”, line 1, in <module>
ImportError: cannot import name ‘etree’ from ‘lxml’ (/opt/lib/python3.9/site-packages/lxml/__init__.py)July 22, 2021 at 3:06 pm #29410Dr. RickyParticipantSeems to be a pretty common error among a lot of python programs that use lxml.
July 22, 2021 at 3:10 pm #29411Windell OskayKeymasterPretty rare in practice– just means that it isn’t installed correctly.
OS/version/architecture? And, is this macports?
In a new terminal, try
python3 -m pip list | grep lxmlJuly 22, 2021 at 3:13 pm #29412Dr. RickyParticipantNo, this is on intel on QNAP, from a package manager entware.net. Basically a version of Linux. I can run Docker images on it, but would have trouble passing the USB port to it.
July 22, 2021 at 3:14 pm #29413Dr. RickyParticipantlxml 4.6.3
also
axidrawinternal 2.7.4
:)
July 22, 2021 at 3:34 pm #29414Windell OskayKeymasterWell, there’s one that we’ve never come across before. Some searches show other cases of this issue on that platform.
There is some general advice about lxml installation here:
https://lxml.de/installation.html
Depending on what’s available through your package manager, you might try installing python3-lxml or possibly libxml2-dev libxslt-dev python-dev, and see if any of those help.
August 12, 2021 at 12:21 pm #29428 -
AuthorPosts
- You must be logged in to reply to this topic.