Installation crash: cannot import name etree

1,409 views
Skip to first unread message

c.huyck

unread,
Jul 2, 2021, 9:10:04 AM7/2/21
to SpiNNaker Users Group

Sorry if there's a faq sheet that I couldn't find that already answers this.

I'm trying to install the spinnaker software.  I'm following the directions on http://spinnakermanchester.github.io/spynnaker/6.0.0/PyNNOnSpinnakerInstall.html#Central


I run
sudo python -m spynnaker8.setup_pynn

which crashes. The error I get is
cannot import name etree
which seems to come from the line
from lxml import etree

I installed lxml (sudo pip install lxml) and ran the sudo python again (then again in a new shell, then again after rebooting) but still crash out.

Any thoughts (or pointers to faqs)?
-Chris

Andrew Rowley

unread,
Jul 2, 2021, 9:25:51 AM7/2/21
to c.huyck, SpiNNaker Users Group

Hi,

 

My guess would be that you already have an lxml version installed but that it is not new enough.  It is true that our requirement for lxml doesn’t include a version, which might be because we haven’t so far encountered one that doesn’t work!

 

You could try to install the latest (which is almost certainly what our testing system uses):

pip install “lxml == 4.6.3”

 

Hopefully this will fix it, but please ask again if not,

 

Andrew :)

 

--
You received this message because you are subscribed to the Google Groups "SpiNNaker Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spinnakeruser...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/spinnakerusers/c59e102b-7e06-494d-856d-87b9bbade1b6n%40googlegroups.com.

Chris Huyck

unread,
Jul 2, 2021, 9:34:38 AM7/2/21
to Andrew Rowley, SpiNNaker Users Group

Great!  That seems to sort that problem. Thanks!

-Chris

Reply all
Reply to author
Forward
0 new messages