question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

factory openSUSE Urllib3Using.py on Python 2

See original GitHub issue

When using branch factory Nuitka-0.6.3.1556202417, on openSUSE Python 2.7, .spec

[  774s] Consider output of recursively compiled program: Urllib3Using.py
[  774s] Comparing output of 'Urllib3Using.py' using '/usr/bin/python2' with flags silent, expect_success, standalone, remove_output ...
[  839s] --- /usr/bin/python2 (stderr)
[  839s] +++ nuitka (stderr)
[  839s] 
[  839s] @@ -1,5 +1,4 @@
[  839s] 
[  839s]  Traceback (most recent call last):
[  839s] -  File "/home/abuild/rpmbuild/BUILD/Nuitka-0.6.3.1556202417.e23ccdbb/tests/standalone/Urllib3Using.py", line 29, in <module>
[  839s] -    from http.server import BaseHTTPRequestHandler, HTTPServer
[  839s] +  File "/home/abuild/rpmbuild/BUILD/Nuitka-0.6.3.1556202417.e23ccdbb/tests/standalone/Urllib3Using.dist/Urllib3Using.py", line 29, in <module>
[  839s]  ImportError: No module named http.server
[  839s]  
[  839s] Error, outputs differed.
[  839s] Error exit! 1
[  839s] error: Bad exit status from /var/tmp/rpm-tmp.ysUnJG (%check)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:16 (16 by maintainers)

github_iconTop GitHub Comments

1reaction
jayvdbcommented, Apr 29, 2019

I think https://python-future.org/standard_library_imports.html may be where your http.server is coming from.

1reaction
jayvdbcommented, Apr 29, 2019

2to3 is an installation tool. It doesnt help unless you install something which provides http and explicitly asked 2to3 to help (usually getting python2 stuff working under python3, not the other way around).

Read more comments on GitHub >

github_iconTop Results From Across the Web

openSUSE:Packaging Python
'Single-spec' (or 'Singlespec') is an approach for packaging multiple variants of a Python module from a single source spec file. The variants ...
Read more >
Now requires python2-pyOpenSSL · Issue #429 - GitHub
When you install osc only python-base is required. And ssl.py is not included in python-base. A Requires: python2 solves the problem.
Read more >
python-2.7.18-150000.38.1.x86_64.rpm
Download python-2.7.18-150000.38.1.x86_64.rpm for openSUSE 15.4 from openSUSE Oss repository. ... /usr/lib64/python2.7/sqlite3/test/factory.py.
Read more >
An outdated Python for openSUSE Leap - LWN.net
On January 3, Michael Ströder posted about the Python version to the opensuse-factory mailing list. He noted that some Python modules are already...
Read more >
Python 2 vs Python 3 : r/openSUSE - Reddit
Linux distributions generally won't ship python 3 as the default python interpreter until all packages in the distro's default repos are ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found