Skip to content

ImportError #89

@Moin-Mohamed

Description

@Moin-Mohamed

The nosetests all run fine, however when i run redmapper_run.py i continuously get ImportErrors. The first being:
Traceback (most recent call last):
File "redmapper_run.py", line 22, in
from .utilities import _pickle_method
ImportError: attempted relative import with no known parent package

At first I just changed the code to make it absolute, i.e changed the line to "from utilities import _pickle_method". However, this means i have to change almost every script dependencies. Then I end up getting this:

ImportError: cannot import name '_solver_nfw_pywrap' from partially initialized module 'solver_nfw' (most likely due to a circular import) (/home/moinm/redmapper/redmapper/solver_nfw/init.py)

I messed around once again but the ImportErrors goes on forever. I have all dependencies installed but maybe I'm missing something that isnt listed in the requirements? Or maybe my dependency versions are not compatible (if yes, what version do i downgrade to?) I'm not sure what to do at this point. Any suggestion will be appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions