Closed HedvigS closed 4 years ago
How did you run setup.py
? It seems you have not installed pygrambank
in development mode, so changing the source in the clone will not change the installed package.
I'd recommend uninstalling:
pip uninstall pygrambank
and installing in dev mode:
pip install -r requirements.txt
Okay, trying that now.
Had to update pytest-filter-subpackage, but that went well. However, after successfully uninstalling and then installing pygrambank, I get the same runtime error.
But the paths of the source files in the error message should be different now, i.e. point to files in your clone of pygrambank, rather than to files in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/
How do you install pygrambank?
Just added a .DS_Store
to my repos and can confirm that the fix works as intended:
$ ll original_sheets/.DS_Store
-rw-r--r-- 1 forkel@shh.mpg.de domain users@shh.mpg.de 3 Jul 10 18:07 original_sheets/.DS_Store
and grambank check
runs.
I installed pygrambank by running
pip install -r requirements.txt
The current error message reads:```
Hedvigs-MBP:pygrambank hedvigskirgard$ grambank --repos /Users/hedvigskirgard/Dropbox/Git/Grambank check --report /Users/hedvigskirgard/Dropbox/Git/Grambank/For_coders/check.tsv
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.7/bin/grambank", line 11, in
It seems the pip uninstall pygrambank
did not really work. The installed code is still not your clone of the sources. Can you run pip freeze | grep pygrambank
? Results should look similar to
$ pip freeze | grep pygrambank
-e git+https://github.com/glottobank/pygrambank.git@c09c82131232a1b05b22565d63c97b9043672e8e#egg=pygrambank
Yeah, we just came to the same conclusion. Okay, we'll try that.
Okay, we solved it now. I should be using pip3.
I don't fully understand, but I know that I have several pips and pythons installed on this machine. Christoph was helping me with this a while ago, and I have yet to fully understand what is going on. For now, it appears that all i should be doing is using pip3 instead of pip. Ste figured it out :)
Generally, you might be better of using virtual environments for each project you are working on. In a python3 virtualenv pip
and python
will resolve to the appropriate programs, i.e. will be links to pip3
and python3
.
That sounds really good, I don't know how to set that up and I don't want to tax my fiancee too much. Maybe with this new machine that I just got I can make this happen, if I can get help?
I didn't recommend using pyenv
.
Okay. Well, without help I can't really tell what to do either way, and starting doing it on my own seems very daunting. My experiences on my own machine so far has shown me that python package and versioning management can be quite complex, and I certainly don't feel comfortable doing anything new. I can read basic python code, I do not yet feel confident in this space.
Huh, I thought that #14 was going to solve my problem but it appears that wasn't the case.
What should I do differently? I have run setup.py again and pulled down the master branch for pygrambank.