Closed ricotabor closed 3 years ago
I believe the bug with the previous version has been fixed in the new version.
There's some new build dependencies in the new version that I haven't tested with installing on Ubuntu yet, the only difference should be running
sudo apt install libboost-math-dev libsundials-dev
first before pip install
ing opendrop. Let me know if that doesn't work.
Can confirm that error is after successfully installing libboost-math-dev and libsundials-dev
Hmm okay, that's strange I'll try installing on Ubuntu when I have the time to see what exactly the problem is.
Looks like the SUNDIALS package on the Ubuntu 20.04 repositories are older than what we need (way back from 2018). Not sure if there's a way to use apt
to install a newer version or if it has to be done manually from source. I'll update the documentation when I find a working solution.
Sorry about the late response, I've updated the installation docs.
Mainly added instructions to install SUNDIALS from source, and also libboost-math-dev
should have been libboost-dev
.
I've tested this on Ubuntu 18.04, let me know if you run into any issues.
Just as an aside, running
pip3 install git+https://github.com/jdber1/opendrop.git
each time an install fails will require re-cloning the repository which can take a while, it's also possible to just clone the repo and cd into the source directory and run
pip3 install .
If the installation succeeds, cd out of the source directory and you can then run python3 -m opendrop
(otherwise it will try running the opendrop package in the source directory with unbuilt dependencies).
Thanks for the updated instructions! I got as far as installing OpenDrop (n.b on vanilla Ubuntu 20.04 I also needed to build a newer version of cmake from source). Installing OD now fails for me at "Preparing wheel metadata" step with the following error:
Ahhhh that's the issue with Boost not being new enough. Fixed, but messy:
sudo apt remove 'libboost.*-dev' sudo add-apt-repository ppa:mhier/libboost-latest sudo apt-get update sudo apt-get install libboost1.73-dev
Did the trick for me.
With that apparently successful installation of everything, trying to run OD gives me:
Could you try apt purge libsundials-dev
and then running opendrop again? And then if running opendrop again doesn't work try reinstalling. I'm thinking it might be linking to the older sundials libraries.
Amazing, thank you for the lightning fast response! Can confirm that:
sudo apt purge libsundials-dev pip3 uninstall opendrop pip3 install git+https://github.com/jdber1/opendrop.git
worked a treat! Goodness me the new version is quick. Also confirmed saving now working perfectly, and I love not having to put in gravity every time.
Thank you!
No problems, thanks for working through the install issues.
I think ctrl+c in the terminal still doesn't kill the application on Ubuntu for some reason, I'll need to look into that in the future. And eventually set up some continuous deployment to auto-build opendrop so the user doesn't have to mess around with dependencies.
Thanks for the rapid responses and assistance, as always! Package management on Ubuntu is conservative (for stability I guess) but building from source is indeed fiddly, so anything that can avoid too much hassle will help users greatly. Still, most people using Ubuntu are fairly competent anyway... I'm the exception! :)
Getting the following error when trying to install newest version on Ubuntu 20.04:
Also getting a weird error when trying to save in previous version (appears when you type any characters into the file name box):
All and any help very much appreciated!