Open yachmena opened 3 years ago
Thank you for raising the issue.
I think the problem might be related to incorrectly defined dependencies in py3nj?
Do you have any idea to fix this? A pull-request would be appreciated ;)
I've tried to install richmol@develop
on google colab
https://colab.research.google.com/drive/1-PIEXzqm-9GrUwbqEkQGZxVDLFlqU_JS?usp=sharing
but it looks installing all the the packages successfully, including py3nj
.
Thank you, the problem with py3nj for me actually appears in readthedocs, it looks like setup requires numpy
I see.
I need to import numpy in py3nj/setup.py
https://github.com/fujiisoup/py3nj/blob/15f179ecc21033022b05e27c681a1512e2b0e604/setup.py#L1-L5
to compile fortran codes.
(As you do in richmol/setup.py
)
https://github.com/CFEL-CMI/richmol/blob/830c1dee565f495d6c4691b15f0b749b94cdaa94/setup.py#L3
I think readthedoc tries to read the script before installing numpy, which causes the error. Do you have any idea?
This looks relating, https://stackoverflow.com/questions/60045913/installing-numpy-before-using-numpy-distutils-core-setup
I will work for it but it may take time. PR would be really appreciated.
Thanks a lot @fujiisoup for you efforts! I ended up moving "py3nj" from the requirements.txt to conf.py autodoc_mock_imports = ["mpi4py", "py3nj"]
which solved the problem with RTD.
Hello, I have a problem with my setup.py when py3nj is installed from requirements, it fails. I think the problem might be related to incorrectly defined dependencies in py3nj? Would be grateful if someone could help