Skip to content

pyqtgraph dll load failed in visual studio code #10786

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

Closed
pjuangph opened this issue Mar 25, 2020 · 3 comments
Closed

pyqtgraph dll load failed in visual studio code #10786

pjuangph opened this issue Mar 25, 2020 · 3 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug info-needed Issue requires more information from poster

Comments

@pjuangph
Copy link

  • VSCode Version: 1.43.2
  • OS Version: Windows 10

Steps to Reproduce:

  1. In Anaconda do a pip install pyqtgraph
  2. open visual studio code, change the python environment to anaconda
  3. try running the following code
import pyqtgraph as pg
pg.mkQApp()

from PyQt5 import QtGui, QtCore, QtWidgets, uic
ImportError: DLL load failed: The specified module could not be found.

That code has no issues when running python from Anaconda terminal

I have python extension, that's about it.

@pjuangph pjuangph added triage-needed Needs assignment to the proper sub-team bug Issue identified by VS Code Team member as probable bug labels Mar 25, 2020
@karthiknadig
Copy link
Member

@pjuangph This might be that when run in VS Code it is not running in a activated environment. Can you try this?

  1. Anaconda prompt and cd to your workspace.
  2. Activate the environment using conda activate
  3. Start VS Code using code .

related #10626

@ghost ghost removed the triage-needed Needs assignment to the proper sub-team label Mar 26, 2020
@karrtikr karrtikr added the info-needed Issue requires more information from poster label Mar 26, 2020
@pjuangph
Copy link
Author

seems like that fixed the problem. not sure why visual studio code can't load the anaconda environment though.

@karrtikr
Copy link

The problem lies with anaconda itself, that it fails to activate in chosen VSC terminal. Glad you got it fixed.

@ghost ghost removed the triage label Mar 30, 2020
@lock lock bot locked as resolved and limited conversation to collaborators Apr 15, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

3 participants