* [Buildroot] [Bug 9766] New: support/scripts/pkgutil.py conflicts with the pkgutil.py from setuptools => breaks scanpypi (2017.02)
@ 2017-03-20 18:26 bugzilla at busybox.net
2017-03-25 13:46 ` [Buildroot] [Bug 9766] " bugzilla at busybox.net
0 siblings, 1 reply; 2+ messages in thread
From: bugzilla at busybox.net @ 2017-03-20 18:26 UTC (permalink / raw)
To: buildroot
https://bugs.busybox.net/show_bug.cgi?id=9766
Bug ID: 9766
Summary: support/scripts/pkgutil.py conflicts with the
pkgutil.py from setuptools => breaks scanpypi
(2017.02)
Product: buildroot
Version: unspecified
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P5
Component: Other
Assignee: unassigned at buildroot.uclibc.org
Reporter: timo.valimaki at sensoan.com
CC: buildroot at uclibc.org
Target Milestone: ---
Asked the following in Stackoverflow:
"I'm trying to run the scanpypi script - support script of the Buildroot
(2017.02) but I'm getting the ImportError: cannot import name get_importer.
Traceback (most recent call last): File "./support/scripts/scanpypi", line 52,
in import setuptools File
"/usr/local/lib/python2.7/dist-packages/setuptools/init.py", line 12, in import
setuptools.version File
"/usr/local/lib/python2.7/dist-packages/setuptools/version.py", line 1, in
import pkg_resources File
"/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py", line 40, in
from pkgutil import get_importer ImportError: cannot import name get_importer
I added the following lines into beginning of the scanpypi script to see
sys.path
import sys
print(sys.path)
output:
['/home/timo/bldr_lab/buildroot/support/scripts', '/usr/lib/python2.7',
'/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk',
'/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload',
'/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages']
As the pkgutil is in the /usr/lib/python2.7 directory the problem is not path
problem.
I have also uninstalled and re-installed python2.7, pip and setuptools but no
help.
What could be reason for the ImportError?"
Got the response:
This is a bug in Buildroot. It is due to commit
12683184b1969f65680cb7db55b547a620a9860f that introduced the pkgutil.py file in
support/scripts. This conflicts with the pkgutil.py from setuptools.
The solution is to rename the pkgutil.py file to something else, and update the
imports in the other scripts accordingly. If you do this, please post a patch
on the Buildroot mailing list, so everyone can benefit. See the manual for
details how to post patches.
http://stackoverflow.com/questions/42892298/import-error-cannot-import-name-get-importer.
Need to practice script creating ...
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Buildroot] [Bug 9766] support/scripts/pkgutil.py conflicts with the pkgutil.py from setuptools => breaks scanpypi (2017.02)
2017-03-20 18:26 [Buildroot] [Bug 9766] New: support/scripts/pkgutil.py conflicts with the pkgutil.py from setuptools => breaks scanpypi (2017.02) bugzilla at busybox.net
@ 2017-03-25 13:46 ` bugzilla at busybox.net
0 siblings, 0 replies; 2+ messages in thread
From: bugzilla at busybox.net @ 2017-03-25 13:46 UTC (permalink / raw)
To: buildroot
https://bugs.busybox.net/show_bug.cgi?id=9766
Thomas Petazzoni <thomas.petazzoni@free-electrons.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #1 from Thomas Petazzoni <thomas.petazzoni@free-electrons.com> ---
Fixed by
https://git.buildroot.org/buildroot/commit/support?id=3b627c89dc8adf8c60efd773935bf66004e8433d.
Thanks for reporting the bug!
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-03-25 13:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-20 18:26 [Buildroot] [Bug 9766] New: support/scripts/pkgutil.py conflicts with the pkgutil.py from setuptools => breaks scanpypi (2017.02) bugzilla at busybox.net
2017-03-25 13:46 ` [Buildroot] [Bug 9766] " bugzilla at busybox.net
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.