Skip to content
This repository has been archived by the owner on Aug 11, 2023. It is now read-only.

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

Closed
keflavich opened this issue Aug 27, 2019 · 2 comments
Closed

Comments

@keflavich
Copy link
Contributor

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 keflavich changed the title missing 'version.py' missing 'version.py': indicates -'s have not been substituted with _'s Aug 27, 2019
@keflavich
Copy link
Contributor Author

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
Copy link
Member

pllim commented Jan 31, 2020

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

@pllim pllim closed this as completed Jan 31, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants