galsci / mapsims

Map based simulations software for CMB Experiments
BSD 2-Clause "Simplified" License
3 stars 1 forks source link

Import error after installing #63

Closed msyriac closed 4 years ago

msyriac commented 4 years ago

I'm getting the following error when importing the installed package:

>>> import mapsims
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/r/rbond/msyriac/.local/lib/python3.6/site-packages/mapsims/__init__.py", line 7, in <module>
    from .channel_utils import Channel, parse_channels
  File "/home/r/rbond/msyriac/.local/lib/python3.6/site-packages/mapsims/channel_utils.py", line 9, in <module>
    from .utils import DEFAULT_INSTRUMENT_PARAMETERS
ImportError: cannot import name 'DEFAULT_INSTRUMENT_PARAMETERS'
zonca commented 4 years ago

Saw that before, it is when you have pieces of the previous version hanging around. Make sure you delete the build folder and the package folder in site-packages

On Mon, Jun 22, 2020, 14:54 Mathew S. Madhavacheril < notifications@github.com> wrote:

I'm getting the following error when importing the installed package:

import mapsims Traceback (most recent call last): File "", line 1, in File "/home/r/rbond/msyriac/.local/lib/python3.6/site-packages/mapsims/init.py", line 7, in from .channel_utils import Channel, parse_channels File "/home/r/rbond/msyriac/.local/lib/python3.6/site-packages/mapsims/channel_utils.py", line 9, in from .utils import DEFAULT_INSTRUMENT_PARAMETERS ImportError: cannot import name 'DEFAULT_INSTRUMENT_PARAMETERS'

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/simonsobs/mapsims/issues/63, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAC5Q4QVQPI44M5SHJXLEXTRX7HHVANCNFSM4OFCD5JA .

msyriac commented 4 years ago

Yep, that helped, thanks.