angular-flask icon indicating copy to clipboard operation
angular-flask copied to clipboard

dependency issue with package 'wsgiref' on python3

Open danfromisrael opened this issue 9 years ago • 4 comments

if trying to run the project on python3 there's a dependency issue with package 'wsgiref' when trying to install packages via requirements.txt

error: Collecting wsgiref==0.1.2 (from -r requirements.txt (line 16)) Using cached wsgiref-0.1.2.zip Traceback (most recent call last): File "", line 20, in File "/tmp/pip-build-7cwefmyb/wsgiref/setup.py", line 5, in import ez_setup Complete output from command python setup.py egg_info: Traceback (most recent call last):

  File "<string>", line 20, in <module>

  File "/tmp/pip-build-7cwefmyb/wsgiref/setup.py", line 5, in <module>

    import ez_setup

----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-7cwefmyb/wsgiref

danfromisrael avatar Apr 06 '15 11:04 danfromisrael

I get the same error, any updates?

LeoJavaAI avatar Jul 29 '15 08:07 LeoJavaAI

same error :/

   Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 20, in <module>
      File "/tmp/pip-build-9bksd6f6/wsgiref/setup.py", line 5, in <module>
        import ez_setup
      File "/tmp/pip-build-9bksd6f6/wsgiref/ez_setup/__init__.py", line 170
        print "Setuptools version",version,"or greater has been installed."
                                 ^
    SyntaxError: invalid syntax

LukasSliacky avatar Sep 24 '15 10:09 LukasSliacky

Collecting requests==1.2.3 (from -r requirements.txt (line 13)) Using cached requests-1.2.3.tar.gz Collecting six==1.3.0 (from -r requirements.txt (line 14)) Using cached six-1.3.0.tar.gz Collecting wsgiref==0.1.2 (from -r requirements.txt (line 15)) Using cached wsgiref-0.1.2.zip Complete output from command python setup.py egg_info: Traceback (most recent call last): File "", line 1, in File "/private/var/folders/0f/c415tlls4ns154q2kklt058r0000gp/T/pip-build-e6mge1wm/wsgiref/setup.py", line 5, in import ez_setup File "/private/var/folders/0f/c415tlls4ns154q2kklt058r0000gp/T/pip-build-e6mge1wm/wsgiref/ez_setup/init.py", line 170 print "Setuptools version",version,"or greater has been installed." ^ SyntaxError: Missing parentheses in call to 'print'

----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/0f/c415tlls4ns154q2kklt058r0000gp/T/pip-build-e6mge1wm/wsgiref/

FrancisJen avatar Sep 04 '16 16:09 FrancisJen

I found the solution, that you need create the virtual env at first, and then the problem will be resolved.

the command for your reference virtualenv env source env/bin/activate now , you are in virtualenv, and your can execute the following scripts as mentioned by author

FrancisJen avatar Sep 04 '16 16:09 FrancisJen