open-research / sumatra

http://neuralensemble.org/sumatra/
BSD 2-Clause "Simplified" License
127 stars 48 forks source link

installation in windows under anaconda #347

Closed dacoex closed 7 years ago

dacoex commented 8 years ago

Is there a possibility to install this package in anaconda on a windows machine?

The documentation does not mention conda and windows.

dacoex commented 8 years ago

More details:

C:\Users\%USER%\Documents\>conda install git
Using Anaconda Cloud api site https://api.anaconda.org
Fetching package metadata .........
Solving package specifications: ..........

# All requested packages already installed.
# packages in environment at C:\Users\%USER%\AppData\Local\Continuum\Anaconda3:
#
git                       2.6.4                         0

(C:\Users\%USER%\AppData\Local\Continuum\Anaconda3) C:\Users\%USER%\Documents\>python C:\Users\%USER%\AppData\Local\Continuum\Anaconda3\Scripts\smt init smt_test
Error: No version control systems found. Please see the documentation for information on installing the required packages.

(C:\Users\%USER%\AppData\Local\Continuum\Anaconda3)
timtroendle commented 8 years ago

The problem you seem to have is the following: when you want to use Git in Sumatra, you will need to have Git installed, but you also will need to have a Python library called GitPython installed. To me it seems you have installed Git (using conda), but not GitPython. You can install GitPython using conda from the conda-forge channel:

 conda install -c conda-forge gitpython

This should solve the error you are seeing. It still doesn't mean that Sumatra will work for you. To my knowledge, Windows is not officially supported.

dacoex commented 8 years ago

For some reason, sumatra does not recognise gitpython:

(C:\Users\%USER%\AppData\Local\Continuum\Anaconda3) C:\Users\%USER%\Documents\sumatra_trials>conda install -c conda-forge gitpython
Using Anaconda Cloud api site https://api.anaconda.org
Fetching package metadata ...........
Solving package specifications: ..........

# All requested packages already installed.
# packages in environment at C:\Users\%USER%\AppData\Local\Continuum\Anaconda3:
#
gitpython                 1.0.1                    py35_0    conda-forge

(C:\Users\%USER%\AppData\Local\Continuum\Anaconda3) C:\Users\%USER%\Documents\sumatra_trials>python C:\Users\%USER%\AppData\Local\Continuum\Anaconda3\Scripts\smt init smt_test
Error: No working copy found at C:\Users\%USER%\Documents\sumatra_trials.
Tried: Git
No Python bindings available: Mercurial, Subversion, Bazaar
You may need to install Python bindings for your version control system
- see http://sumatra.readthedocs.org/en/latest/installation.html#installing-python-bindings-for-your-version-control-system

(C:\Users\%USER%\AppData\Local\Continuum\Anaconda3) C:\Users\%USER%\Documents\sumatra_trials>

Any idea why this package is not cross-platform?

timtroendle commented 8 years ago

Are you sure C:\Users\%USER%\Documents\sumatra_trials is a git repository?

apdavison commented 7 years ago

I have the impression that this problem is solved. Please comment if it is not, and I will reopen this ticket.