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

New pysat install doesn't import #819

Closed
rstoneback opened this issue Jun 14, 2021 · 0 comments · Fixed by #820
Closed

New pysat install doesn't import #819

rstoneback opened this issue Jun 14, 2021 · 0 comments · Fixed by #820
Labels
Milestone

Comments

@rstoneback
Copy link
Collaborator

Describe the bug
I created a new conda environment, installed numpy, then ran python setup.py develop on current develop branch. When I tried to import pysat it didn't work.

To Reproduce
Steps to reproduce the behavior:

  1. conda create --name testingcdaac python=3.8.2 --channel conda-forge
  2. conda install numpy
(testingcdaac) russellstoneback@Russells-Pro Code % cd pysat
(testingcdaac) russellstoneback@Russells-Pro pysat % python setup.py develop
  1. Try importing pysat
IPython 7.24.1 -- An enhanced Interactive Python. Type '?' for help.

In [1]: import pysat
---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-1-865d297c82ea> in <module>
----> 1 import pysat

~/Code/pysat/pysat/__init__.py in <module>
     49 
     50 # Import and set user and pysat parameters object
---> 51 from pysat import _params
     52 
     53 # set version

~/Code/pysat/pysat/_params.py in <module>
     12 from portalocker import Lock
     13 
---> 14 from pysat.utils.files import check_and_make_path
     15 
     16 

~/Code/pysat/pysat/utils/__init__.py in <module>
     10 """
     11 
---> 12 from pysat.utils import coords, files, time, registry, testing
     13 from pysat.utils._core import scale_units, listify, load_netcdf4
     14 from pysat.utils._core import NetworkLock, generate_instrument_list

~/Code/pysat/pysat/utils/registry.py in <module>
     54 
     55 import pysat
---> 56 import pysat.tests.instrument_test_class as itc
     57 logger = logging.getLogger(__name__)
     58 

~/Code/pysat/pysat/tests/instrument_test_class.py in <module>
      8 import warnings
      9 
---> 10 import pytest
     11 
     12 import pysat

ModuleNotFoundError: No module named 'pytest'

Expected behavior
It should import.

Screenshots
See above.

Desktop (please complete the following information):

  • OS: MacOS
  • Version [10.15.4]
  • Full install listed above.

Additional context
Trying to sort out a potential bug pysat/pysatCDAAC#18

@rstoneback rstoneback added the bug label Jun 14, 2021
@rstoneback rstoneback added this to the 3.0.1 Release milestone Jun 14, 2021
@rstoneback rstoneback linked a pull request Jun 14, 2021 that will close this issue
10 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant