CEA-COSMIC / pysap

Python Sparse data Analysis Package
Other
54 stars 25 forks source link

installation problems on windows #29

Open flothesof opened 6 years ago

flothesof commented 6 years ago

Hi, I'm trying to install pisap under Windows. I've tried several approaches that all fail at the cmake compilation stage.

"C:\Users\FL232714\Desktop\pisap-master\build\temp.win-amd64-3.6\Release\ALL_BUILD.vcxproj" (cible par défaut) (1) -> "C:\Users\FL232714\Desktop\pisap-master\build\temp.win-amd64-3.6\Release\Boost.vcxproj" (cible par défaut) (4) -> C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(171,5): error MSB6006: Arrêt de "cmd.exe" avec le code 9009. [C:\Users\FL232714\Desktop\pisap-master\build\temp.win-amd64-3.6\Release\Boost.vcxproj]



I've noticed that you've also setup Travis builds (https://github.com/neurospin/pisap/blob/master/.travis.yml) and realized that the installation on Travis is not python setup.py install but manual installation of dependencies with pip. So I'm assuming it's not necessary to follow the cmake build steps to get it working. 

Do you have any hints on how I can manage to get pisap working, based on the above?

Thanks for your help,

Florian
AGrigis commented 6 years ago

Currently the module is in development and supports only LINUX and MAC. We will clarify this point in the documentation. If you are interested we suggest you to use a Virtual Machine with Ubuntu 16.04 LTS.

flothesof commented 6 years ago

Ok, great. Thanks for your reply. Shall I leave the issue open until you clarify this point in the documentation?

Best regards, Florian

patquem commented 3 years ago

Hi @flothesof, I try to install PySAP on Windows. Did you succeed in finalizing your install ? From my part, I am faced with error during the external lib compilation ('cftsio', the same one you report in the present issue) Relative path related to .\configure seems to be wrong (basically : configure is and should be found in my case, in C:\dev\sw\pysap-master\build\temp.win-amd64-3.7\Release\cfitsio\src\cfitsio\configure) Patrick

  Performing configure step for 'cfitsio'
  '.\configure' n'est pas reconnu en tant que commande interne
  ou externe, un programme exécutable ou un fichier de commandes.
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(240,5): error MSB8066: la build p ersonnalisée de 'C:\dev\sw\pysap-master\build\temp.win-amd64-3.7\Release\CMakeFiles\bdc00a12a0f03e2a5748192627b436e0\cfitsio-configure.rule;C:\dev\sw\ pysap-master\build\temp.win-amd64-3.7\Release\CMakeFiles\bdc00a12a0f03e2a5748192627b436e0\cfitsio-build.rule;C:\dev\sw\pysap-master\build\temp.win-amd 64-3.7\Release\CMakeFiles\bdc00a12a0f03e2a5748192627b436e0\cfitsio-install.rule;C:\dev\sw\pysap-master\build\temp.win-amd64-3.7\Release\CMakeFiles\ca7 c3e9dddb74eb81d81dbfc648a7718\cfitsio-complete.rule;C:\dev\sw\pysap-master\build\temp.win-amd64-3.7\Release\CMakeFiles\4a9652f420725b576b03c5d19840df3 f\cfitsio.rule' s'est arrêtée. Code 9009. [C:\dev\sw\pysap-master\build\temp.win-amd64-3.7\Release\cfitsio.vcxproj]
flothesof commented 3 years ago

Hi @patquem I never managed to get it to work. Cheers Florian

sfarrens commented 3 years ago

Hi @patquem, unfortunately we don't currently have the resources (time and machines) to test and support PySAP on Windows.

We are currently preparing a new release of PySAP and I can try to include Docker container that may help.

patquem commented 3 years ago

Hello @sfarrens, Nice to hear. Guillaume, a team-mate who passed all the week to install pySAP on Linux is happy to learn this information ;) (Guillaume was previoulsy in the Philippe C. team for his student final year project. He joined us 2 weeks ago).

sfarrens commented 3 years ago

Well we will certainly do our best to make it as easy to install as possible. 😅

Regards to Guillaume!

philouc commented 3 years ago

It was clear to me originally that Guillaume knew that PySAP is not yet compatible with Windows. I'm sorry about the waste of time.

patquem commented 3 years ago

Don't worry about it @philouc. Guillaume was in charge of Linux install and I was in charge of Windows install (trial). Zineb and I had heard there were some problems in Windows, but I wanted to understand where and why. In the PySAP documentation, the sentence : The installation of PySAP has been extensively tested on Ubuntu and macOS, however we cannot guarantee it will work on every operating system (e.g. Windows). made me hope it could work on windows. (I succeed in installing PySAP, but I am faced with dependancies "./configure". I stop the investigations now but I'll be back on these points later.. maybe)

sfarrens commented 3 years ago

@patquem @flothesof the latest release of PySAP (v0.0.5) comes with a Docker image available on Docker Hub. As Windows supports Docker, this may be a solution that could interest you.

To install the Docker image with PySAP pre-installed run:

$ docker pull ceacosmic/pysap

then to launch a Jupyter notebook that has access to your current working directory run:

$ docker run -p 8888:8888 -v ${PWD}:/home ceacosmic/pysap