KosinskiLab / pyTME

https://kosinskilab.github.io/pyTME/
Other
21 stars 2 forks source link

Issue with Installation Test #6

Closed alishbaimran closed 6 months ago

alishbaimran commented 6 months ago

Hey! I followed the conda installation requirements on the website (https://kosinskilab.github.io/pyTME/quickstart/installation.html#installation-section) but get the following errors when running pytest:

Screenshot 2024-04-13 at 4 40 01 PM

Could anyone help with resolving these?

maurerv commented 6 months ago

Hi @alishbaimran,

Which version of pyTME are you using? :)

The first five errors are related to pyTME being unable to read tiff files. This is because pyTME relies on an external dependency, which we recently changed to obligatory instead of optional. You can fix these issues by installing the dependency from within the conda environment that contains pyTME: pip install tifffile

The last failed test case seems to be related to numerical precision. On which operating system did you run the tests?

However, overall the installation looks fine and you should be ready to apply pyTME to your use case :)

alishbaimran commented 6 months ago

Got it! I did the pip command (and conda install tifffile -c conda-forge) but was not able to resolve the tiff file errors. I'm also still having the numerical precision error. I'm on Ubuntu 22.04 LTS.

Screenshot 2024-04-14 at 11 32 31 AM
alishbaimran commented 6 months ago
Screenshot 2024-04-14 at 11 32 58 AM
maurerv commented 6 months ago

Could you kindly run pytest > log.txt and upload the created log.txt here? That would help a lot with troubleshooting.

alishbaimran commented 6 months ago

Attached! log.txt

maurerv commented 6 months ago

Thanks for providing the log!

I was able to reproduce your issues with the pyTME docker setup. The observed behavior was unintended and addressed in the recent commit 68ffb21fb87b9cde1e19852528e85c791519c9e8.

You can apply the changes by reinstalling from within your conda environment python3.11 -mpip install -U --force-reinstall git+https://github.com/KosinskiLab/pyTME. Please also clone the newest version of the repository before running the test cases :)