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

Pytest doesn't seem to be able to import the module, specifically when run using VS code #3

Open
ChrisSWDavis opened this issue Mar 30, 2024 · 1 comment

Comments

@ChrisSWDavis
Copy link

A Python package I've developed seems to be importing pyspaceweather fine, and is able to install, run it etc. When I run pytest, it also seems to successfully import all libraries, including pyspaceweather. However, when I try to run Visual Studio Code pytests, it seems to fail to find the module for some reason (but can import the others I have in the Python package).

@st-bender
Copy link
Owner

Hi,
Thanks for the report, but could you be a bit more specific?
I don't use windows, so can't reproduce it locally, is there any error message that may shed some light on it?
Maybe the VS code environment misses the package, and you have to install it separately there?
Currently there is no conda package, if you use that, only pip.

Also note, I just pushed a fix for Windows (not released yet), you can update it in your environment with:

pip install -U git+https://github.com/st-bender/pyspaceweather

Although unrelated, could you check if that fixes your issue?

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

2 participants