-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when installing the package locally from downloaded code #8
Comments
Why not install from pypi if you don't want to clone the repo? |
The purpose was to use the example notebooks 1) from my SMA example branch (which is not in a PyPI release) or 2) from the main branch (but the notebooks are not included in the PyPI release). There are, of course, alternatives to make it work. But downloading + installing via conda |
Another option is to install directly from a git branch with pip, and then just download the example you want to run and not the entire repo. |
In my opinion, the version is irrelevant if someone installs a local copy that has potentially been modified. A person doing this will never try to do a There should be some fallback in order not to prevent a fundamental use case like acoustics-hardware/acoustics_hardware/_version.py Lines 66 to 67 in d18bb6e
|
The ability to detect if the version is modified or not is exactly why I get the version info from the git repo. The only limitation here is that you cannot install from a zipped repo. |
A fallback without raising an exception to prevent the entire process is not viable? |
Of course it's possible. I guess I just don't see the point why you would actually need this. |
Steps to reproduce:
git clone
) unpack and navigate into directoryconda env create --file environment.yml
The setup process after downloading can be shortened to trigger the error:
conda create -n ahd pip conda activate ahd pip install .
Error:
This occurs independent of the python version (I believe I testes
3.9
,3.10
and3.11
). So the issue has probably existed unnoticed for a while (I usually always clone).The text was updated successfully, but these errors were encountered: