Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install fails on Windows following the instructions as written #1

Closed
johnmbarrett opened this issue May 16, 2020 · 3 comments
Closed
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@johnmbarrett
Copy link

johnmbarrett commented May 16, 2020

Creating a conda environment, installing pytorch, then running setup.py fails on Windows. Seems to be an issue with installing scipy and can be solved by specifying scipy<=1.2.1 when creating the conda environment (not sure how critical the exact version is, I pulled it from the setup.py). Mostly putting this here in case anyone else runs into the same problem.

Steps to reproduce:-

  1. Open Command Prompt in the vame repo folder
  2. conda create -n vametest
  3. conda activate vametest
  4. Install pytorch for your system, e.g. in my case conda install pytorch torchvision cudatoolkit=10.1 -c pytorch
  5. python setup.py install

Expected behaviour: VAME installed.

Actual behaviour: a huge error message, attached. Main problem seems to be the following:

Running scipy-1.2.1\setup.py -q bdist_egg --dist-dir C:\Users\LSPS2\AppData\Local\Temp\easy_install-xjjkkxxc\scipy-1.2.1\egg-dist-tmp-ckxdo8qj
C:\Users\LSPS2\AppData\Local\Temp\easy_install-xjjkkxxc\scipy-1.2.1\setup.py:114: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
  import imp
C:\Users\LSPS2\AppData\Local\Temp\easy_install-xjjkkxxc\scipy-1.2.1\setup.py:377: UserWarning: Unrecognized setuptools command, proceeding with generating Cython sources and expanding templates
  warnings.warn("Unrecognized setuptools command, proceeding with "
Running from scipy source directory.
Could not locate executable g77
Could not locate executable f77
Could not locate executable ifort
Could not locate executable ifl
Could not locate executable f90
Could not locate executable DF
Could not locate executable efl
Could not locate executable gfortran
Could not locate executable f95
Could not locate executable g95
Could not locate executable efort
Could not locate executable efc
Could not locate executable flang
don't know how to compile Fortran code on platform 'nt'

Additional notes: as mentioned up top, can be fixed by changing step 2 to conda create -n vametest scipy<=1.2.1.

System info:-

Windows 10 x64
Conda 4.8.3
Python 3.7.7
CUDA 10.1.105

@kvnlxm kvnlxm added bug Something isn't working good first issue Good for newcomers labels May 17, 2020
@kvnlxm
Copy link
Collaborator

kvnlxm commented May 17, 2020

Thank you for bringing this up. We work on it to resolve it asap.

@pavolbauer
Copy link
Collaborator

Hi John,
Thanks for trying out Vame!
It seems there is a bug with the scipy version 1.2.1 and numpy 1.18, particularly appearing in a python 3.8 environment. We work on finding a solution for this, meanwhile we recommend to install Vame in a python 3.7 environment. (create -n vame_env python=3.7) or using your fix.
Cheers
Pavol

@kvnlxm
Copy link
Collaborator

kvnlxm commented May 19, 2020

We tested VAME now without specifying scipy<=1.2.1 under Windows, Ubuntu and Mac OS.
The new setup.py is updated and I hope this will work smoothly for everyone.
Best,
Kevin

@kvnlxm kvnlxm closed this as completed May 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants