-
Notifications
You must be signed in to change notification settings - Fork 3
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
Install also dependencies when installing a package #5
Comments
It should already happen if you do "python setup.py install" to install it. Do you get different behavior? |
That is how I have done it before writing the comment. I have not tested it since (if you mean that), I can try to do it again. |
I used python setup.py install to install, but I got errors on install and had to install paranoid and PyMuPDF manually before python setup.py install would run error-free. |
I think the latest push should fix the problem. Essentially, CanD installation accidentally depended on these packages. Let me know if you are still getting errors. |
EDIT: I resolved this by doing I just tried in a clean venv (on a linux system where I don't have full privileges and can't use conda). I get the following error, which is likely not related to CanD but I'm not totally sure. I did not have this issue previously when I manually installed the missing packages, but in this venv I can't seem to get it to work: `$ python3.7 setup.py install Installed /scratch/jts58/test-cand/lib/python3.7/site-packages/CanD-0.0.1-py3.7.egg Installed /scratch/jts58/test-cand/lib/python3.7/site-packages/Pillow-8.2.0-py3.7-linux-x86_64.egg |
Looks like there is still something going on here. I will open this issue back up and take a closer look. |
Could you please run the following three commands on the terminal of the computer which had this issue and post the output?
Thanks! |
Ubuntu 16.04.7 LTS \n \l
Linux [the machine name was here] 4.15.0-140-generic #144~16.04.1-Ubuntu SMP Fri Mar 19 21:24:12 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
41.2.0 |
I can reproduce this in a VM using your version of setuptools if mupdf is not installed. For some reason, old versions seem to require mupdf (which pymupdf depends on) to be recompiled, rather than using the distributed binary. If you upgrade setuptools to the latest version (or at least major version 43), it should install normally. |
Ah sounds good -- I'm not going to test to verify that now because my installation is working for me, but thank you for figuring it out! |
Hii @mwshinn, I have just been installing your package (on Win) and got into missing dependencies (
paranoid
). I have noticed then that you're also responsible for that package. Would it be possible to install those (and possibly other) dependencies along the way as it is done eg when one uses conda or pip? Just to make it more user friendly. Besides that one just fyi I was also missingfitz
which I have not seen in the list of dependencies (I guess it's underPyMuPDF
but it's not that obvious).The text was updated successfully, but these errors were encountered: