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
Conda installation guide #58
Conversation
The current installation guide is unclear about the actual usage of the psbody-mesh package after building it, as well as impossible to execute on machines without sudo permissions. The installation part of the documentation has been thus rewritten in order to make it more clear and complete, as well as sudo-free (by using Anaconda). The parts with the download in the site-packages folder and the renaming of the mesh folder to psbody is what actually makes using this package possible, and this rectified version of the guide contains the cleanest possible way of doing it - the alternatives being copying the mesh folder after compilation in the folders of the projects that use it (bad) and/or editing the import lines in the relative scripts (even worse), as well as the PYTHONPATH variable.
Thanks. The only difficult part is about Boost, and the easiest way to install it on Linux/OSX is the way described in the document. I personally never use Conda so I would not make it a requirement for installing the mesh package. Rather I would help the user get Boost installed if Conda is however a widely used system, any instructions to get mesh working with conda are valuable. I would prefer having a dedicated section such as "install with conda" instead of replacing the existing one. However the hacky solution is a no-go for me. If you look at the
I am not familiar with |
I must have totally missed the part in the Boost documentation where they say how to install it without
I must admit that I was not sure about replacing the original instructions with the Conda version, but then I assumed that Conda was widespread and did it anyway. Since you are proof that not everybody uses it, it is only fair that we leave both alternatives in the guide.
Well, it is a no-go for me, too, but is the only way that works. Please believe me when I say that I have tried a lot of solutions. I absolutely do not exclude the possibility that I missed some vanilla
I do not get it, the cloning is necessary to get the files needed for building the The renaming step can be skipped by executing only I would like to specify that the renaming part is necessary because the default name of the As for the
Took me a while to understand what you meant. If all what
However, I just tried it and it does not work; Python throws Since when using Conda it is recommended to actually stick with
Too bad that the very first command ( After these new findings I am still convinced that the simplest solution is the hacky, no-go way, however ugly it might seem; I remain open to further suggestions, though, possibly from someone more experienced with Conda than us. I updated the committed README.md file and restored the original installation guide by separating it from the Conda version; I also simplified steps 4 and 5 with the mentioned commands (those that still work). |
Also updated steps 4 and 5 in the Conda installation section with fewer commands
There are various things here, but I think we start getting on the right path:
|
Yes, we are. Keep reading!
Oh, you meant cloning into that specific folder! I thought you meant that the user was not supposed to ever clone into the repo at all. Alright, it makes sense now; I agree that it is not a good practice, I only did it this way to avoid moving the downloaded folder.
I know nothing about this stuff, but earlier I happened to see this line in the
Yeah,
This is where the good news come in play. I did some more researching after writing my previous comment and realized that in this case using Just in case, I created another virtual environment and tried to do it again, and surprise! it did not work. It took me another 30 minutes of extensive research to notice a small detail in your So in conclusion, by completely skipping steps 3, 4 and 5 and executing the following instead, the import statement works correctly:
And an even nicer thing here is that you can safely delete the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, @jcpassy ?
All looks good to me @PaulaMihalcea ! |
Coming back with a quick tip: if for some reason the second
Remember to also replace |
Hi @PaulaMihalcea and @raffienficiaud , Yes, that looks good to me too. Merging! |
The current installation guide is unclear about the actual usage of the psbody-mesh package after building it, as well as impossible to execute on machines without sudo permissions.
The installation part of the documentation has been thus rewritten in order to make it more clear and complete, as well as sudo-free (by using Anaconda).
The parts with the download in the site-packages folder and the renaming of the mesh folder to psbody is what actually makes using this package possible, and this rectified version of the guide contains the cleanest possible way of doing it - the alternatives being copying the mesh folder after compilation in the folders of the projects that use it (bad) and/or editing the import lines in the relative scripts (even worse), as well as the PYTHONPATH variable.