astropy / package-template

Template for packages that use Astropy. Maintainer: @astrofrog
http://docs.astropy.org/projects/package-template/en/latest/
Other
60 stars 63 forks source link

error when running setup.py test #394

Closed wkerzendorf closed 4 years ago

wkerzendorf commented 5 years ago

I get this error when running python setup.py test in python3.6 with helpers 3.1. it goes away when I run the same command again. Appears sometimes.

  File "/Users/wkerzend/python/tardis/astropy_helpers/astropy_helpers/version_helpers.py", line 281, in generate_version_py
    imp.reload(version_module)
  File "/Users/wkerzend/miniconda/envs/tardis3/lib/python3.6/imp.py", line 315, in reload
    return importlib.reload(module)
  File "/Users/wkerzend/miniconda/envs/tardis3/lib/python3.6/importlib/__init__.py", line 159, in reload
    name=parent_name) from None
ImportError: parent 'tardis' not in sys.modules

tardis_package_versions.txt

astrofrog commented 5 years ago

I'm not sure why this is happening, but the code that is triggering this will be gone in the next release of astropy-helpers. Does this happen only with 3.6?

wkerzendorf commented 5 years ago

Haven't tested any other versions yet. attaching environment file. but don't worry -if it goes away that's fine.

pllim commented 4 years ago

python setup.py test is no longer the way to go with #438 merged.