paulscherrerinstitute / cbf

GNU General Public License v3.0
12 stars 9 forks source link

Problem installing on Win10 with Anaconda3.9 #14

Open RufusTFirefly opened 2 years ago

RufusTFirefly commented 2 years ago

Hi everybody

I just installed a new Oracle VM running a fully patched and up-to-date Win10Pro 64bit. I installed the latest version of Anaconda3 "2021.11.0.0" which includes: "Python 3.9.7 64-bit | Qt 5.9.7 | PyQt5 5.9.2 | Windows 10" (from Spyder About). The installation of the CBF module using the command "conda install -c https://conda.anaconda.org/paulscherrerinstitute cbf" fails (see image). grafik The very same issue appears when installing on an older Anaconda3 installation running Python 3.8.x. To install the CBF module one has to run first the command "conda install -c anaconda python=3.7" and then "conda install -c https://conda.anaconda.org/paulscherrerinstitute cbf" which installs the module promptly. Installation of CBF on another computer running "Python 3.7.4 64-bit | Qt 5.9.6 | PyQt5 5.9.2 | Windows 10" was also successful. The full protocol of the "conda install -c anaconda python=3.7" command and CBF installation is appended to this email.

Best regards protocol_installation_python3.7.txt

simongregorebner commented 2 years ago

hey, it seems that there is currently no 3.8 conda package available in the https://conda.anaconda.org/paulscherrerinstitute repository. The easiest and fastest for you would be if you would build the package on your machine and then install that package instead. I will try to fix the build pipeline and also provide a 3.8 package as well in the next days.

RufusTFirefly commented 2 years ago

Hi, thanks for the answer. You see, I am writing a little python script that uses the paulscherrerinstitute/cbf module to convert one image format into cbf: I plan to distribute my script to interested users (free of charge) asking them to install the paulscherrerinstitute/cbf module on their own maschine before they use my script. I do not know what Python installation they are going to use (actual version of Anaconda includes Python 3.9) or whether they have the necessary visual studio tools to compile the extra code present in the module on their own computers (not all users are also developers ...). I could in principle compile the cbf package for each and every new Python version that comes out and then distribute it together with my own script but I guess there would be legal issues if I distribute my recompiled paulscherrerinstitute/cbf package. Or am I wrong? There are alternatives e.g. turn off the byte_offset compressing which is the part of the module causing the problems (because it is the only part which is compiled for speed from a c program) or use fabio but I have been using paulscherrerinstitute/cbf till now and it worked fine together with my Python 3.7.4: I was very surprised that I could not install it on newer version of Python.

Thanks for looking into it.