-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Unable to install package in container #1648
Comments
Yes! We've been seeing this, but haven't been able to reproduce reliably. Good work! |
Here's another manifestation:
Namely,
|
Well, i know one way to solve this. |
Don't use Docker? :) |
I got past the initial error hacking this:
Now i'm trying to bypass the next hurdle
My suspicion is that there assumptions that |
can you try again with the latest version? |
pip and virtualenv should always be available within a virtualenv, yes. |
I'm still repro-ing on 11.2.2:
|
Why is “virtualenv location” empty?
…Sent from my iPhone
On Mar 9, 2018, at 9:00 PM, David Tucker ***@***.***> wrote:
I'm still repro-ing on 11.2.2:
$ docker run --rm -it python:latest bash
***@***.***:/# cd
***@***.***:~# pip install --user pipenv
Collecting pipenv
Downloading pipenv-11.2.2.tar.gz (4.1MB)
100% |████████████████████████████████| 4.1MB 294kB/s
Requirement already satisfied: setuptools>=36.2.1 in /usr/local/lib/python3.6/site-packages (from pipenv)
Collecting virtualenv (from pipenv)
Downloading virtualenv-15.1.0-py2.py3-none-any.whl (1.8MB)
100% |████████████████████████████████| 1.8MB 716kB/s
Collecting virtualenv-clone>=0.2.5 (from pipenv)
Downloading virtualenv_clone-0.3.0-py2.py3-none-any.whl
Building wheels for collected packages: pipenv
Running setup.py bdist_wheel for pipenv ... done
Stored in directory: /root/.cache/pip/wheels/0c/05/ea/2c54795c34f7c6da5ea0e8013fa6dbd9efed88f02304d10eb1
Successfully built pipenv
Installing collected packages: virtualenv, virtualenv-clone, pipenv
Successfully installed pipenv-11.2.2 virtualenv-15.1.0 virtualenv-clone-0.3.0
***@***.***:~# git clone https://github.com/maxalbert/pipenv_bug.git
Cloning into 'pipenv_bug'...
remote: Counting objects: 68, done.
remote: Compressing objects: 100% (39/39), done.
remote: Total 68 (delta 18), reused 65 (delta 15), pack-reused 0
Unpacking objects: 100% (68/68), done.
Checking connectivity... done.
***@***.***:~# cd pipenv_bug/
***@***.***:~/pipenv_bug# ls -l
total 8
-rw-r--r-- 1 root root 153 Mar 10 01:59 Pipfile
-rw-r--r-- 1 root root 1787 Mar 10 01:59 Pipfile.lock
***@***.***:~/pipenv_bug# rm Pipfile.lock
***@***.***:~/pipenv_bug# pipenv install
bash: pipenv: command not found
***@***.***:~/pipenv_bug# ~/.local/bin/pipenv install
Creating a virtualenv for this project…
Using /usr/local/bin/python3.6m to create virtualenv…
⠋Running virtualenv with interpreter /usr/local/bin/python3.6m
Using base prefix '/usr/local'
New python executable in /root/.local/share/virtualenvs/pipenv_bug-YVUDmhpZ/bin/python3.6m
Also creating executable in /root/.local/share/virtualenvs/pipenv_bug-YVUDmhpZ/bin/python
Installing setuptools, pip, wheel...done.
Virtualenv location:
Warning: Your Pipfile requires python_version 3.6, but you are using None (/bin/python).
$ pipenv check will surely fail.
Creating a virtualenv for this project…
⠙Using base prefix '/usr/local'
New python executable in /root/.local/share/virtualenvs/pipenv_bug-YVUDmhpZ/bin/python
Installing setuptools, pip, wheel...done.
Virtualenv location:
Pipfile.lock not found, creating…
Locking [dev-packages] dependencies…
/python: not found
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
That’s the bug
…Sent from my iPhone
On Mar 9, 2018, at 9:00 PM, David Tucker ***@***.***> wrote:
I'm still repro-ing on 11.2.2:
$ docker run --rm -it python:latest bash
***@***.***:/# cd
***@***.***:~# pip install --user pipenv
Collecting pipenv
Downloading pipenv-11.2.2.tar.gz (4.1MB)
100% |████████████████████████████████| 4.1MB 294kB/s
Requirement already satisfied: setuptools>=36.2.1 in /usr/local/lib/python3.6/site-packages (from pipenv)
Collecting virtualenv (from pipenv)
Downloading virtualenv-15.1.0-py2.py3-none-any.whl (1.8MB)
100% |████████████████████████████████| 1.8MB 716kB/s
Collecting virtualenv-clone>=0.2.5 (from pipenv)
Downloading virtualenv_clone-0.3.0-py2.py3-none-any.whl
Building wheels for collected packages: pipenv
Running setup.py bdist_wheel for pipenv ... done
Stored in directory: /root/.cache/pip/wheels/0c/05/ea/2c54795c34f7c6da5ea0e8013fa6dbd9efed88f02304d10eb1
Successfully built pipenv
Installing collected packages: virtualenv, virtualenv-clone, pipenv
Successfully installed pipenv-11.2.2 virtualenv-15.1.0 virtualenv-clone-0.3.0
***@***.***:~# git clone https://github.com/maxalbert/pipenv_bug.git
Cloning into 'pipenv_bug'...
remote: Counting objects: 68, done.
remote: Compressing objects: 100% (39/39), done.
remote: Total 68 (delta 18), reused 65 (delta 15), pack-reused 0
Unpacking objects: 100% (68/68), done.
Checking connectivity... done.
***@***.***:~# cd pipenv_bug/
***@***.***:~/pipenv_bug# ls -l
total 8
-rw-r--r-- 1 root root 153 Mar 10 01:59 Pipfile
-rw-r--r-- 1 root root 1787 Mar 10 01:59 Pipfile.lock
***@***.***:~/pipenv_bug# rm Pipfile.lock
***@***.***:~/pipenv_bug# pipenv install
bash: pipenv: command not found
***@***.***:~/pipenv_bug# ~/.local/bin/pipenv install
Creating a virtualenv for this project…
Using /usr/local/bin/python3.6m to create virtualenv…
⠋Running virtualenv with interpreter /usr/local/bin/python3.6m
Using base prefix '/usr/local'
New python executable in /root/.local/share/virtualenvs/pipenv_bug-YVUDmhpZ/bin/python3.6m
Also creating executable in /root/.local/share/virtualenvs/pipenv_bug-YVUDmhpZ/bin/python
Installing setuptools, pip, wheel...done.
Virtualenv location:
Warning: Your Pipfile requires python_version 3.6, but you are using None (/bin/python).
$ pipenv check will surely fail.
Creating a virtualenv for this project…
⠙Using base prefix '/usr/local'
New python executable in /root/.local/share/virtualenvs/pipenv_bug-YVUDmhpZ/bin/python
Installing setuptools, pip, wheel...done.
Virtualenv location:
Pipfile.lock not found, creating…
Locking [dev-packages] dependencies…
/python: not found
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
It still seems to hold true. The In
In
|
To add. I do not get the error and everything succeeds if i also install python2 |
We fixed this in the most recent release. |
I see the latest is 11.3.1 and that's what it is installing: Other things I see.
|
I know what’s up here |
@sijis can you try installing pipenv from |
That worked! I did do
Awesome! |
🎉 we can occasionally fix things! |
Hopefully I'm not hijacking this issue, but I think the case where a Pipfile needs to be created has a problem.
|
don't use |
also don't use |
Should there be a release before closing this bug? As I understand it, the final bug fix has not been released yet, although it has been submitted. |
@darkfeline thanks for your comment, our source control workflow follows a pretty standard workflow. Fix gets merged, issue gets closed. Issue closure isn't tied to release schedule. |
I am still seeing this issue on python:3.6 docker. Is there a fix released, or a quick fix a user can do?
I am tring to install dependencies, but even a |
@cmac4603 you can't run |
@techalchemy It looks like the same issue mentioned here, get the same error with install using the official python3.6 docker container:
|
I think I actually have a vague idea why this is happening. It is basically the same as the |
looks to me like the issue is that you are trying to do this from |
Can you explain exactly what the resolution here is supposed to be? I tried adding
Here's what my folder set up is:
and here's my Dockerfile:
The way I run my script locally is just
so that I can use pipenv to execute my Python script in the virtual environment. Thanks in advance. |
In docker containers, you are not intended to deploy a You need to start by converting your Based on the The Once you have docker and pipenv working independently, you should then read pipenv documentation on deploying system dependencies which includes a bit of information about what you want to pass inside a docker environment. |
Thanks for being patient and giving a thorough explanation! I was able to get my Docker file running correctly independent of pipenv. Unfortunately I am not able to use pipenv locally due to issue #2125 but that is a separate topic and so I will not address it on this thread. I'll make sure to review the documentation for docker that you recommended, and thanks again for the help. |
I was troubleshooting an opened bug (#1639) that I seem to have run into. In trying to reproduce it, it seems like i bumped into another issue.
This looks similar to the closed #1441 issue, however, the command
virtualenv --python=python3 myenv
did not error out as anticipated in the comments.Expected result
I expected to see a
Pipfile
andPipfile.lock
in the/tmp/test1
directory.Actual result
Saw the strack trace above.
Steps to replicate
[root@0958ee759ab3 test1]# python3 -m pipenv.help
Pipenv version:
'11.2.0'
Pipenv location:
'/root/.local/lib/python3.6/site-packages/pipenv'
Python location:
'/usr/bin/python3'
Other Python installations in
PATH
:3.6
:/usr/bin/python3.6m
3.6
:/usr/bin/python3.6
3.6
:/bin/python3.6
3.6.2
:/usr/bin/python3
3.6.2
:/bin/python3
PEP 508 Information:
System environment variables:
LS_COLORS
HOSTNAME
PWD
HOME
FBR
DISTTAG
FGC
TERM
SHLVL
PATH
_
OLDPWD
LC_CTYPE
PIP_PYTHON_PATH
Pipenv–specific environment variables:
Debug–specific environment variables:
PATH
:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PWD
:/tmp/test1
Contents of
Pipfile
('/tmp/test1/Pipfile'):(Edit: Formatting)
The text was updated successfully, but these errors were encountered: