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

Bug: "Cannot find the project associated with this Pipenv environment" #179

Open
tobiashochguertel opened this issue Dec 19, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@tobiashochguertel
Copy link

Describe the bug

The following command was executed:

Pipenv 

The exit code: -1
The error output of the command:



Cannot find the project associated with this Pipenv environment
	at com.jetbrains.python.sdk.pipenv.PipenvKt.runPipEnv(pipenv.kt:197)
	at com.jetbrains.python.packaging.pipenv.PyPipEnvPackageManager.refreshAndGetPackages(PyPipEnvPackageManager.kt:91)
	at security.packaging.PyPackageSecurityScan.checkPackagesInSdks(PyPackageSecurityScan.kt:46)
	at security.packaging.PyPackageSecurityScan.checkPackages(PyPackageSecurityScan.kt:30)
	at security.packaging.PythonPackageVulnerabilityStartupTask$runActivity$1.run(PythonPackageVulnerabilityStartupTask.kt:16)
	at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:962)
	at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcessWithProgressAsync$5(CoreProgressManager.java:472)
	at com.intellij.openapi.progress.impl.ProgressRunner.lambda$submit$3(ProgressRunner.java:235)
	at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:178)
	at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:658)
	at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:610)
	at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:65)
	at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:165)
	at com.intellij.openapi.progress.impl.ProgressRunner.lambda$submit$4(ProgressRunner.java:235)
	at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1700)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:668)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:665)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:665)
	at java.base/java.lang.Thread.run(Thread.java:834)

To Reproduce
Install the Plugin, start the IDE, open a project which use pipenv

Screenshots

image

image

Additional context

  • Plugin Version: Python Security, v.1.22.2
  • PyCharm Version (or IDE version): PyCharm Professional 2020.3, PY-203.5981.165, built on December 19, 2020
  • Python Version: 3.9.0 (Mac OS, Big Sur)
@tobiashochguertel tobiashochguertel added the bug Something isn't working label Dec 19, 2020
@KukumavMozolo
Copy link

KukumavMozolo commented Aug 2, 2022

w

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants