Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Other Things Gentoo
  • Search

lddtree: ImportError: No module named 'elftools'

Still need help with Gentoo, and your question doesn't fit in the above forums? Here is your last bastion of hope.
Post Reply
Advanced search
2 posts • Page 1 of 1
Author
Message
Negated Void
l33t
l33t
Posts: 670
Joined: Wed Dec 25, 2002 10:02 pm

lddtree: ImportError: No module named 'elftools'

  • Quote

Post by Negated Void » Thu Nov 10, 2016 7:52 pm

Hey,

Trying to update my system. I use LUKS and genkernel, so I run "genkernel --no-clean --luks all" to generate my initrd etc.

It seems to be unable to include LUKS right now:
* Including LUKS support
Traceback (most recent call last):
File "/usr/bin/lddtree", line 52, in <module>
from elftools.elf.elffile import ELFFile
ImportError: No module named 'elftools'
lddtree comes from pax-utils, which are up-to-date:
murph ~ # emerge -av pax-utils

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild R ] app-misc/pax-utils-1.1.6-r1::gentoo USE="python seccomp -caps -debug" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB

Would you like to merge these packages? [Yes/No]
I don't have any special python stuff in my make.conf. I have python 3.5 set as default via eselect.

Any ideas how to fix this?
Top
Hu
Administrator
Administrator
Posts: 24403
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Fri Nov 11, 2016 2:21 am

That error often means that you loaded the main script with Python interpreter version X, but the supporting Python library is only installed for Python interpreter version Y, for X != Y. You need to enable Python 3.5 support in the package that provides module elftools.
Top
Post Reply

2 posts • Page 1 of 1

Return to “Other Things Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic