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

missing 'version.py': indicates -'s have not been substituted with _'s #426

Closed keflavich closed 4 years ago

keflavich commented 5 years ago

When I attempt to install a newly created package, I get the following error:

$ python setup.py develop
warning: no previously-included files found matching '*.pyc'
warning: no previously-included files found matching '*.o'
no previously-included directories found matching 'build'
Freezing version number to ./casa_notebook_tools/version.py
Traceback (most recent call last):
  File "setup.py", line 26, in <module>
    version = generate_version_py()
  File "/Users/adam/repos/casa-notebook-tools/astropy_helpers/astropy_helpers/version_helpers.py", line 344, in generate_version_py
    with open(version_py, 'w') as f:
FileNotFoundError: [Errno 2] No such file or directory: './casa_notebook_tools/version.py'

I suspect this is a red herring, and the actual problem is that the package is called casa-notebook-tools, not casa_notebook_tools, but I'm posting the error as is; I'll add updates as I figure this out.

keflavich commented 5 years ago

I was correct, renaming to casa_notebook_tools resolved the problem. So the actual problem is that the cookiecutter setup does not force a valid package name to be used.

pllim commented 4 years ago

Probably irrelevant anymore due to #438 . Please open new issue if you see it again.