* [Buildroot] [Bug 11251] New: Util scanpypi failes when package change - to _ in tar file (Trunk)
@ 2018-08-21 8:23 bugzilla at busybox.net
2018-08-21 8:40 ` [Buildroot] [Bug 11251] " bugzilla at busybox.net
` (5 more replies)
0 siblings, 6 replies; 9+ messages in thread
From: bugzilla at busybox.net @ 2018-08-21 8:23 UTC (permalink / raw)
To: buildroot
https://bugs.busybox.net/show_bug.cgi?id=11251
Bug ID: 11251
Summary: Util scanpypi failes when package change - to _ in tar
file (Trunk)
Product: buildroot
Version: 2018.05
Hardware: All
OS: Linux
Status: NEW
Severity: minor
Priority: P5
Component: Other
Assignee: unassigned at buildroot.uclibc.org
Reporter: mzweerspenko+bugzilla at gmail.com
CC: buildroot at uclibc.org
Target Milestone: ---
<Sympthon>
user at workstation:/data/bugreport/buildroot$ ./utils/scanpypi websocket-client
buildroot package name for websocket-client: python-websocket-client
Package: python-websocket-client
Fetching package websocket-client
Downloading package websocket-client from
https://files.pythonhosted.org/packages/bb/ae/4ff2ae1f722d0c23dc4cdf74a4e05b0d1bbe752dc28620b9fe05c53e61aa/websocket_client-0.51.0.tar.gz...
Traceback (most recent call last):
File "./utils/scanpypi", line 721, in <module>
main()
File "./utils/scanpypi", line 670, in main
package.load_setup()
File "./utils/scanpypi", line 279, in load_setup
os.chdir(self.tmp_extract)
OSError: [Errno 2] No such file or directory:
'/tmp/scanpypi-20A8aE/python-websocket-client/websocket-client-0.51.0'
user at workstation:/data/bugreport/buildroot$
</Sympthon>
<investigation>
Exciting path:
/tmp/scanpypi-20A8aE/python-websocket-client/websocket_client-0.51.0/
Expected path:
/tmp/scanpypi-20A8aE/python-websocket-client/websocket-client-0.51.0/
Difference is _ instead of -
</investigation>
<suggestion>
Maybe some regex or * can be used to allow both options.
</suggestion>
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 9+ messages in thread* [Buildroot] [Bug 11251] Util scanpypi failes when package change - to _ in tar file (Trunk)
2018-08-21 8:23 [Buildroot] [Bug 11251] New: Util scanpypi failes when package change - to _ in tar file (Trunk) bugzilla at busybox.net
@ 2018-08-21 8:40 ` bugzilla at busybox.net
2018-08-21 9:02 ` Yegor Yefremov
2018-08-21 9:10 ` bugzilla at busybox.net
` (4 subsequent siblings)
5 siblings, 1 reply; 9+ messages in thread
From: bugzilla at busybox.net @ 2018-08-21 8:40 UTC (permalink / raw)
To: buildroot
https://bugs.busybox.net/show_bug.cgi?id=11251
--- Comment #1 from mzweerspenko+bugzilla at gmail.com ---
I now notice that the tar file has the same _.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 9+ messages in thread* [Buildroot] [Bug 11251] Util scanpypi failes when package change - to _ in tar file (Trunk)
2018-08-21 8:40 ` [Buildroot] [Bug 11251] " bugzilla at busybox.net
@ 2018-08-21 9:02 ` Yegor Yefremov
2018-08-21 9:16 ` Thomas Petazzoni
0 siblings, 1 reply; 9+ messages in thread
From: Yegor Yefremov @ 2018-08-21 9:02 UTC (permalink / raw)
To: buildroot
On Tue, Aug 21, 2018 at 10:40 AM, <bugzilla@busybox.net> wrote:
> https://bugs.busybox.net/show_bug.cgi?id=11251
>
> --- Comment #1 from mzweerspenko+bugzilla at gmail.com ---
> I now notice that the tar file has the same _.
Btw. this package (python-websocket-client) is already in BR.
Yegor
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Buildroot] [Bug 11251] Util scanpypi failes when package change - to _ in tar file (Trunk)
2018-08-21 9:02 ` Yegor Yefremov
@ 2018-08-21 9:16 ` Thomas Petazzoni
0 siblings, 0 replies; 9+ messages in thread
From: Thomas Petazzoni @ 2018-08-21 9:16 UTC (permalink / raw)
To: buildroot
Hello Yegor,
On Tue, 21 Aug 2018 11:02:32 +0200, Yegor Yefremov wrote:
> On Tue, Aug 21, 2018 at 10:40 AM, <bugzilla@busybox.net> wrote:
> > https://bugs.busybox.net/show_bug.cgi?id=11251
> >
> > --- Comment #1 from mzweerspenko+bugzilla at gmail.com ---
> > I now notice that the tar file has the same _.
>
> Btw. this package (python-websocket-client) is already in BR.
Please reply in the bug tracker, not on the mailing list, otherwise the
bug submitter will not get your messages.
Thanks,
Thomas
--
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Buildroot] [Bug 11251] Util scanpypi failes when package change - to _ in tar file (Trunk)
2018-08-21 8:23 [Buildroot] [Bug 11251] New: Util scanpypi failes when package change - to _ in tar file (Trunk) bugzilla at busybox.net
2018-08-21 8:40 ` [Buildroot] [Bug 11251] " bugzilla at busybox.net
@ 2018-08-21 9:10 ` bugzilla at busybox.net
2018-08-21 9:21 ` bugzilla at busybox.net
` (3 subsequent siblings)
5 siblings, 0 replies; 9+ messages in thread
From: bugzilla at busybox.net @ 2018-08-21 9:10 UTC (permalink / raw)
To: buildroot
https://bugs.busybox.net/show_bug.cgi?id=11251
--- Comment #2 from mzweerspenko+bugzilla at gmail.com ---
Ok. My end goal was to add socketio-client-nexus. I got the error when scanpypi
is resolving dependencies. I tried to keep my bug report as small as possible.
I have made workaround. But python is new to me.
def load_setup(self):
"""
Loads the corresponding setup and store its metadata
"""
current_dir = os.getcwd()
self.tmp_extract =
os.path.join(os.path.dirname(self.tmp_extract),self.filename.split(".tar")[0])
#print("MGZ: {0} {1}".format(self.tmp_extract,extract_dir))
os.chdir(self.tmp_extract)
sys.path.append(self.tmp_extract)
s_file, s_path, s_desc = imp.find_module('setup', [self.tmp_extract])
setup = imp.load_module('setup', s_file, s_path, s_desc)
try:
self.setup_metadata = self.setup_args[self.metadata_name]
except KeyError:
# This means setup was not called which most likely mean that it is
# called through the if __name__ == '__main__' directive.
# In this case, we can only pray that it is called through a
# function called main() in setup.py.
setup.main() # Will raise AttributeError if not found
self.setup_metadata = self.setup_args[self.metadata_name]
# Here we must remove the module the hard way.
# We must do this because of a very specific case: if a package calls
# setup from the __main__ but does not come with a 'main()' function,
# for some reason setup.main() will successfully call the main
# function of a previous package...
sys.modules.pop('setup', None)
del setup
os.chdir(current_dir)
sys.path.remove(self.tmp_extract)
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 9+ messages in thread* [Buildroot] [Bug 11251] Util scanpypi failes when package change - to _ in tar file (Trunk)
2018-08-21 8:23 [Buildroot] [Bug 11251] New: Util scanpypi failes when package change - to _ in tar file (Trunk) bugzilla at busybox.net
2018-08-21 8:40 ` [Buildroot] [Bug 11251] " bugzilla at busybox.net
2018-08-21 9:10 ` bugzilla at busybox.net
@ 2018-08-21 9:21 ` bugzilla at busybox.net
2018-09-06 20:50 ` bugzilla at busybox.net
` (2 subsequent siblings)
5 siblings, 0 replies; 9+ messages in thread
From: bugzilla at busybox.net @ 2018-08-21 9:21 UTC (permalink / raw)
To: buildroot
https://bugs.busybox.net/show_bug.cgi?id=11251
--- Comment #3 from yegorslists at googlemail.com ---
Please send your patch using git send-email via BR's mailing list. See
http://nightly.buildroot.org/manual.html#submitting-patches for more
information.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 9+ messages in thread* [Buildroot] [Bug 11251] Util scanpypi failes when package change - to _ in tar file (Trunk)
2018-08-21 8:23 [Buildroot] [Bug 11251] New: Util scanpypi failes when package change - to _ in tar file (Trunk) bugzilla at busybox.net
` (2 preceding siblings ...)
2018-08-21 9:21 ` bugzilla at busybox.net
@ 2018-09-06 20:50 ` bugzilla at busybox.net
2018-11-02 10:59 ` bugzilla at busybox.net
2018-11-02 20:37 ` bugzilla at busybox.net
5 siblings, 0 replies; 9+ messages in thread
From: bugzilla at busybox.net @ 2018-09-06 20:50 UTC (permalink / raw)
To: buildroot
https://bugs.busybox.net/show_bug.cgi?id=11251
Thomas Petazzoni <thomas.petazzoni@free-electrons.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|unassigned at buildroot.uclibc |yegorslists at googlemail.com
|.org |
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 9+ messages in thread* [Buildroot] [Bug 11251] Util scanpypi failes when package change - to _ in tar file (Trunk)
2018-08-21 8:23 [Buildroot] [Bug 11251] New: Util scanpypi failes when package change - to _ in tar file (Trunk) bugzilla at busybox.net
` (3 preceding siblings ...)
2018-09-06 20:50 ` bugzilla at busybox.net
@ 2018-11-02 10:59 ` bugzilla at busybox.net
2018-11-02 20:37 ` bugzilla at busybox.net
5 siblings, 0 replies; 9+ messages in thread
From: bugzilla at busybox.net @ 2018-11-02 10:59 UTC (permalink / raw)
To: buildroot
https://bugs.busybox.net/show_bug.cgi?id=11251
--- Comment #4 from Thomas Petazzoni <thomas.petazzoni@free-electrons.com> ---
Yegor, it seems like the person who submitted this bug never submitted a proper
patch to the mailing list. Could you take care of submitting such a patch, so
that we can close this bug ? Thanks a lot!
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 9+ messages in thread* [Buildroot] [Bug 11251] Util scanpypi failes when package change - to _ in tar file (Trunk)
2018-08-21 8:23 [Buildroot] [Bug 11251] New: Util scanpypi failes when package change - to _ in tar file (Trunk) bugzilla at busybox.net
` (4 preceding siblings ...)
2018-11-02 10:59 ` bugzilla at busybox.net
@ 2018-11-02 20:37 ` bugzilla at busybox.net
5 siblings, 0 replies; 9+ messages in thread
From: bugzilla at busybox.net @ 2018-11-02 20:37 UTC (permalink / raw)
To: buildroot
https://bugs.busybox.net/show_bug.cgi?id=11251
Thomas Petazzoni <thomas.petazzoni@free-electrons.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #5 from Thomas Petazzoni <thomas.petazzoni@free-electrons.com> ---
Fixed by
https://git.buildroot.org/buildroot/commit/?id=fd29797f659c09cbc2aeba33f8d6f5b992e65cd4.
Thanks Yegor!
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2018-11-02 20:37 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-21 8:23 [Buildroot] [Bug 11251] New: Util scanpypi failes when package change - to _ in tar file (Trunk) bugzilla at busybox.net
2018-08-21 8:40 ` [Buildroot] [Bug 11251] " bugzilla at busybox.net
2018-08-21 9:02 ` Yegor Yefremov
2018-08-21 9:16 ` Thomas Petazzoni
2018-08-21 9:10 ` bugzilla at busybox.net
2018-08-21 9:21 ` bugzilla at busybox.net
2018-09-06 20:50 ` bugzilla at busybox.net
2018-11-02 10:59 ` bugzilla at busybox.net
2018-11-02 20:37 ` bugzilla at busybox.net
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox