[Bug 1162877] New: twine: crashes on TypeError: expected string or bytes-like object
http://bugzilla.suse.com/show_bug.cgi?id=1162877 Bug ID: 1162877 Summary: twine: crashes on TypeError: expected string or bytes-like object Classification: openSUSE Product: openSUSE Distribution Version: Leap 15.2 Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Development Assignee: bnc-team-screening@forge.provo.novell.com Reporter: lubos.kocman@suse.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- Hello python3 version of twine seemed to fail on upload Software version: python3-twine-1.9.1-lp152.3.2.x86_64 python3-wheel-0.32.3-lp152.2.2.noarch lkocman@deadrat:~/Workspace/md2workflow> rm -rf dist/* lkocman@deadrat:~/Workspace/md2workflow> python3 setup.py sdist bdist_wheel ... lkocman@deadrat:~/Workspace/md2workflow> ls dist/ md2workflow-1.4.10-py3-none-any.whl md2workflow-1.4.10.tar.gz lkocman@deadrat:~/Workspace/md2workflow> twine upload dist/md2workflow-1.4.10* Uploading distributions to https://upload.pypi.org/legacy/ Enter your username: lkocman Error initializing plugin Google = keyrings.alt.Google. Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/keyring/backend.py", line 171, in _load_plugins init_func = ep.load() File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2343, in load return self.resolve() File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2349, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "/usr/lib/python3.6/site-packages/keyrings/alt/Google.py", line 14, in <module> import gdata.docs.service File "/usr/lib/python3.6/site-packages/gdata/__init__.py", line 27, in <module> import atom File "/usr/lib/python3.6/site-packages/atom/__init__.py", line 133, in <module> CreateClassFromXMLString) File "/usr/lib/python3.6/site-packages/atom/__init__.py", line 97, in mark_deprecated optional_warn_function.func_name = f.func_name AttributeError: 'function' object has no attribute 'func_name' Enter your password: TypeError: expected string or bytes-like object lkocman@deadrat:~/Workspace/md2workflow> -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1162877 Lubos Kocman <lubos.kocman@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P3 - Medium -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1162877 http://bugzilla.suse.com/show_bug.cgi?id=1162877#c1 --- Comment #1 from Lubos Kocman <lubos.kocman@suse.com> --- Python 2 has a slightly different traceback but seems to be hitting the same issue lkocman@deadrat:~/Workspace/md2workflow> python2 -m twine upload --repository-url https://test.pypi.org/legacy/ dist/* Uploading distributions to https://test.pypi.org/legacy/ Enter your username: lkocman Enter your password: TypeError: expected string or buffer -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1162877 Lubos Kocman <lubos.kocman@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 - Medium |P2 - High -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1162877 http://bugzilla.suse.com/show_bug.cgi?id=1162877#c2 --- Comment #2 from Lubos Kocman <lubos.kocman@suse.com> --- Actually this seems to be general python issue as I'm now getting similar issue with osc as well. Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/keyring/backend.py", line 171, in _load_plugins init_func = ep.load() File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2343, in load return self.resolve() File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2349, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "/usr/lib/python3.6/site-packages/keyrings/alt/Google.py", line 14, in <module> import gdata.docs.service File "/usr/lib/python3.6/site-packages/gdata/__init__.py", line 27, in <module> import atom File "/usr/lib/python3.6/site-packages/atom/__init__.py", line 133, in <module> CreateClassFromXMLString) File "/usr/lib/python3.6/site-packages/atom/__init__.py", line 97, in mark_deprecated optional_warn_function.func_name = f.func_name AttributeError: 'function' object has no attribute 'func_name' -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1162877 http://bugzilla.suse.com/show_bug.cgi?id=1162877#c3 --- Comment #3 from Lubos Kocman <lubos.kocman@suse.com> --- Seems to be related to python-gdata (ownership of the path). -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1162877 http://bugzilla.suse.com/show_bug.cgi?id=1162877#c4 --- Comment #4 from Lubos Kocman <lubos.kocman@suse.com> --- lkocman@deadrat:~/Workspace/obs/home:lkocman:branches:devel:languages:python/python-md2workflow> rpm -qa | grep gdata libgdata-lang-0.17.11-lp152.1.1.noarch libgdata22-0.17.11-lp152.1.1.x86_64 python3-gdata-2.0.18-lp152.3.2.noarch python2-gdata-2.0.18-lp152.3.2.noarch -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1162877 Lubos Kocman <lubos.kocman@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |1163229 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1162877 http://bugzilla.suse.com/show_bug.cgi?id=1162877#c5 --- Comment #5 from Lubos Kocman <lubos.kocman@suse.com> --- Please ignore the python-gdata issue which was reported separately as Bug 1163229 and let's focus on TypeError: expected string or bytes-like object -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1162877 http://bugzilla.suse.com/show_bug.cgi?id=1162877#c6 Lubos Kocman <lubos.kocman@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |IN_PROGRESS --- Comment #6 from Lubos Kocman <lubos.kocman@suse.com> --- Created request sr#772630 to update twine to latest version in Factory -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1162877 Robert Schweikert <rjschwei@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks|1163229 | -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1162877 Alynx Zhou <alynx.zhou@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |alynx.zhou@suse.com Assignee|bnc-team-screening@forge.pr |dmueller@suse.com |ovo.novell.com | -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1162877 http://bugzilla.suse.com/show_bug.cgi?id=1162877#c8 --- Comment #8 from Lubos Kocman <lubos.kocman@suse.com> --- Confirming that upload works with newer twine Enter your username: lkocman Enter your password: Uploading distributions to https://upload.pypi.org/legacy/ Uploading md2workflow-1.4.11-py2-none-any.whl 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 45.7k/45.7k [00:02<00:00, 22.1kB/s] Uploading md2workflow-1.4.11-py3-none-any.whl 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 45.7k/45.7k [00:01<00:00, 27.2kB/s] Uploading md2workflow-1.4.11.tar.gz 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 28.6k/28.6k [00:01<00:00, 23.6kB/s] View at: https://pypi.org/project/md2workflow/1.4.11/ -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1162877 http://bugzilla.suse.com/show_bug.cgi?id=1162877#c9 Dirk Mueller <dmueller@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|IN_PROGRESS |RESOLVED CC| |lubos.kocman@suse.com Resolution|--- |FIXED Flags| |needinfo?(lubos.kocman@suse | |.com) --- Comment #9 from Dirk Mueller <dmueller@suse.com> --- all fixed then? -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com