Tests fail under Python 3 because lazr.restful is Python 2 only

Bug #1855964 reported by Anders Kaseorg
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fix Released

Bug Description

$ pip download lazr.restfulclient
$ tar -xzf lazr.restfulclient-0.14.2.tar.gz
$ cd lazr.restfulclient-0.14.2
$ python3 setup.py test

Searching for lazr.restful>=0.11.0
Reading https://pypi.org/simple/lazr.restful/
Downloading https://files.pythonhosted.org/packages/7e/d9/02e4411245f33d149cfda77853ba0625ff3e09f2208a0ae8ba9aaa08bd37/lazr.restful-0.20.1.tar.gz#sha256=0386643d7fb6e579899b9854f840d01cbeae21ea2496eb4b6d570525d72330ea
Best match: lazr.restful 0.20.1
Processing lazr.restful-0.20.1.tar.gz
Writing /tmp/easy_install-_mu_8ytd/lazr.restful-0.20.1/setup.cfg
Running lazr.restful-0.20.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-_mu_8ytd/lazr.restful-0.20.1/egg-dist-tmp-asjzkyit
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/setuptools/sandbox.py", line 154, in save_modules
    yield saved
  File "/usr/local/lib/python3.7/site-packages/setuptools/sandbox.py", line 195, in setup_context
  File "/usr/local/lib/python3.7/site-packages/setuptools/sandbox.py", line 250, in run_setup
    _execfile(setup_script, ns)
  File "/usr/local/lib/python3.7/site-packages/setuptools/sandbox.py", line 45, in _execfile
    exec(code, globals, locals)
  File "/tmp/easy_install-_mu_8ytd/lazr.restful-0.20.1/setup.py", line 19, in <module>
    from setuptools import setup, find_packages
  File "/tmp/easy_install-_mu_8ytd/lazr.restful-0.20.1/ez_setup.py", line 98
    except pkg_resources.VersionConflict, e:
SyntaxError: invalid syntax

Revision history for this message
Colin Watson (cjwatson) wrote :

lazr.restful fully supports Python 3 as of version 1.0.0. (This particular problem was fixed somewhat earlier - 0.21.0, I think.)

Changed in lazr.restfulclient:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers