Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SyntaxError when installing packages #1553

Closed
rschuetzler opened this issue Mar 5, 2018 · 3 comments
Closed

SyntaxError when installing packages #1553

rschuetzler opened this issue Mar 5, 2018 · 3 comments

Comments

@rschuetzler
Copy link

Syntax error when trying to install a new package to a pipenv

Describe your environment
  1. OS Type: Ubuntu Desktop
  2. Python version: Python 3.6.3
  3. Pipenv version: 11.0.2
Expected result

Run pipenv install django~=1.11 to install Django.

Actual result
Adding django~=1.11 to Pipfile's [packages]…
Pipfile.lock not found, creating…
Locking [dev-packages] dependencies…
ome/ryan/anaconda3/lib/python3.6/site-packages/pipenv/patched/pip/index.py", line 31, in <module>
    from pip.wheel import Wheel, wheel_ext
  File "/home/ryan/anaconda3/lib/python3.6/site-packages/pipenv/patched/pip/wheel.py", line 6, in <module>
    import compileall
  File "/home/ryan/anaconda3/lib/python3.6/compileall.py", line 20, in <module>
    from concurrent.futures import ProcessPoolExecutor
  File "/home/ryan/anaconda3/lib/python3.6/site-packages/pipenv/../concurrent/futures/__init__.py", line 8, in <module>
    from concurrent.futures._base import (FIRST_COMPLETED,
  File "/home/ryan/anaconda3/lib/python3.6/site-packages/pipenv/../concurrent/futures/_base.py", line 381
    raise exception_type, self._exception, self._traceback
                        ^
SyntaxError: invalid syntax
Steps to replicate

Create a new pipenv and run pipenv install django~=1.11 to install Django.

@uranusjr
Copy link
Member

uranusjr commented Mar 6, 2018

Can you share your /home/ryan/anaconda3/bin/python -m pip freeze result? The import path looks messed up. Your environment is very broken.

p.s. this is not a Pipenv bug.

@uranusjr uranusjr closed this as completed Mar 6, 2018
@malamud
Copy link

malamud commented Mar 6, 2018

@uranusjr I have the same problem. And my environment isn't very broken it's just virtual.
It happens when pipenv installed in virtualenv.
Isn't pipenv supposed to work from virtual environment?

@techalchemy
Copy link
Member

No. You should not run pipenv inside a virtualenv. I agree something about your environment is quite broken if concurrent futures doesn’t work, not really sure what’s going on there

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants