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

Packages not installed on virtual env if existant on local env #5256

Closed
Skiktlle opened this issue Aug 14, 2022 · 2 comments
Closed

Packages not installed on virtual env if existant on local env #5256

Skiktlle opened this issue Aug 14, 2022 · 2 comments
Labels
Type: Bug 🐛 This issue is a bug. Type: Duplicate This issue is a duplicate of an already-existing issue. Type: Regression This issue is a regression of a previous behavior.

Comments

@Skiktlle
Copy link

Issue description

Tried to run some code to get me a list of github repos. For that I need all packages that PyGithub downloads.
If, for example, I have certifi package already on my original python site-packages directory and I run pipenv install for PyGithub, the certifi package won't be installed on the newly created virtual env.

Expected result

I expected that the packages already installed in original env would also be installed on virtual environments if they don't have it.

Actual result

The packages already existing in the original env, will not be installed on the virtual env.

Steps to replicate

  1. pip install pipenv

  2. pip install certifi

  3. pipenv install

  4. Check that inside site-packages on virtual env there is no certifi package.
  5. Try to run main.py inside virtual env => Should result in ModuleNotFoundError.

Pipfile

[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"

[packages]
PyGithub = "==1.55"`

main.py

from github import Github

g = Github("your account token")

for repo in g.get_user().get_repos():
print(repo.name)

@matteius
Copy link
Member

@Skiktlle I believe this is essentially the same issue as #5254
but you have generalized it nicely.

Can you check my branch that tries to fix this issue, if it resolves the issue for you? This is the branch: #5255

@matteius matteius added Type: Bug 🐛 This issue is a bug. Type: Duplicate This issue is a duplicate of an already-existing issue. Type: Regression This issue is a regression of a previous behavior. labels Aug 14, 2022
@matteius
Copy link
Member

pipenv==2022.8.15 has been released.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug 🐛 This issue is a bug. Type: Duplicate This issue is a duplicate of an already-existing issue. Type: Regression This issue is a regression of a previous behavior.
Projects
None yet
Development

No branches or pull requests

2 participants