Kawue / provim

ProViM is a preprocessing pipeline for Mass Spectrometry Imaging (MSI) data.
GNU General Public License v3.0
1 stars 1 forks source link

dependences #9

Closed kailaw138 closed 8 months ago

kailaw138 commented 10 months ago

Trying to have local installation with "conda env create -f environment.yml" , have the following error, which says qt 5.12.5 is incompatible:

1

ok then, changing to qt 5.12.9, leads more errors:

2

Please tell me the right version of the dependences.

Kawue commented 10 months ago

I will try to create this env on my system. However, it may take some days until I have time left.

Kawue commented 10 months ago

I installed a clean version of the newest anaconda package and used the described environment command (Powershell, not CMD, but this should not be relevant). My Qt related packages are:

PyQt5==5.15.10 PyQt5-Qt5==5.15.2 PyQt5-sip==12.13.0 PyQtWebEngine==5.15.6 PyQtWebEngine-Qt5==5.15.2

I have no problems with installing or running the environment.

kailaw138 commented 10 months ago

Thank you for your quick response, I still could not install.

Capture

I modified the environment.yml file with the specified version of PyQt5-sip and PyQtWebEngine, but the problem with pyqt (not PyQt5) persisted.

the Github version:

orginal

my modified version:

modified

PyQt5, PyQt5-Qt5, and PyQtWebEngine-Qt5 are not in the environment.yml, are they required?

Thanks

Kawue commented 10 months ago

I think these packages are installed through the others with internal dependencies. You removed - pip: in your version. This part tells the installer to use the pip package manager as source instead of any of the other channels. However, pyqt is not available there and requires pip in this case. So please try to keep the environment.yml from this repository and only add the version numbers. This should look like my example below:

...
- zstd=1.4.4
- pip:
    - pyqt5-sip=12.13.0
    - pyqtwebengine=5.15.6
kailaw138 commented 10 months ago

Thank you again for your support. Unfortunately, having pip (in the environment.yml) does not work for me:

Capture

in this way ... it simply creates an environment without the pyqt5-sip and pyqtwebengine installed (previously, I simplified the problem)

ok then, force installation with pip (in the created environment):

Capture2

Unfortunately, this does not work (also does not work with conda either)

check pip is installed:

Capture3

[This also shows you my purpose, to use imzML-to-HDF5 to generate h5 files, pre-process with pyBASIS or ProViM, and segmentation with SmartGate.]

That is why I removed pip from the environment.yml, and so I could narrow down the problem to just pyqtwebengine:

Capture4

However, as you said, pyqtwebengine 5.15.6 not available in conda (indeed 5.15.5 also not available)

Capture5

Which version is right? Would 5.15.7 work?

Kawue commented 10 months ago

You can try if it works. If not, just remove it.

Alternatively you could try to delete the entries that need pip completely from the environment.yml, then set the environment up without these packages, activate it and with activated environment you could try to install the pip packages manually with pip install example-package==2.0.1

Not the clean way but might work.