jdber1 / opendrop

OpenDrop pendant drop tensiometry software
GNU General Public License v3.0
30 stars 18 forks source link

Installation/run issue on Ubuntu 18.04 #26

Closed ricotabor closed 3 years ago

ricotabor commented 3 years ago

System is fresh install of Ubuntu 18.04.5

Pip3 is newest version, git is installed, OpenDrop installation appears to work, but this is the terminal output:

IMG_20201127_130730

Any idea what I've done wrong this time? :)

eugenhu commented 3 years ago

That's weird, I thought I had fixed this in a previous commit. I've just installed Python 3.6.12 on my machine and managed to start opendrop with no issues.

Could you check the version of python installed on your ubuntu system with python3 --version

Also just to confirm, for the installation did you run

pip install git+https://github.com/jdber1/opendrop.git

?

ricotabor commented 3 years ago

I can check when I'm next in the lab, but Python version will be whatever ships with Ubuntu 18.04LTS: I think it's 3.6.8 maybe?

I think the regular install command didn't work for some reason (again, can find the specific error soon if useful), but:

pip install opendrop-3.1.7.dev54+gb1534f0-py3-none-any.whl

seemed to install without error, but then gave the error above when trying to run.

eugenhu commented 3 years ago

Oh, the opendrop-3.1.7.dev54+gb1534f0-py3-none-any.whl wheel was for an older version, when you're able to, could you try

pip install git+https://github.com/jdber1/opendrop.git

to install the latest version from the repo instead?

ricotabor commented 3 years ago

Thanks Eugene, will give it a go when I'm back in the lab (probably Friday again) and report back!

ricotabor commented 3 years ago

pip3 install git+https://github.com/jdber1/opendrop.git

Fails with error below. Python3 --version is 3.6.9

Any ideas on what to fix?

IMG_20201204_095925765

eugenhu commented 3 years ago

Could you try updating pip and setuptools? pip3 install -U pip setuptools And try reinstalling again, if it fails could you send the pip version.

ricotabor commented 3 years ago

Eugenius! Adding setuptools did work (also needed python3-opencv for anyone reading).

However, it's still very laggy when using genicam to run the camera. The live video window is fine, but actually running the calculations causes a stall after first ~20 seconds. For reference, I requested 5 frames, 20 seconds apart in the below. Not sure if the terminal errors are related?

IMG_20201204_103207376 IMG_20201204_103141430

eugenhu commented 3 years ago

I see, thanks for the feedback. I'm currently working out some of the performance issues by offloading some of the work to separate processes so the UI won't stall.

Those errors I think are just some numpy deprecation warnings that didn't used to be there, relating to making arrays with different length rows.

ricotabor commented 3 years ago

Sounds amazing, can't wait to hear more. Thank you for the fast and positive updates :)