jupyter-incubator / contentmanagement

Jupyter Content Management Extensions
Other
78 stars 26 forks source link

Error during installation on Mac OSX with pip #29

Closed FlavienMakesInfographics closed 8 years ago

FlavienMakesInfographics commented 8 years ago

Hi,

I tried to install the extension from pip on Mac OSX (Python 3):

PetitLepton @ ~/projects
 pip install jupyter_cms 
Collecting jupyter-cms
  Using cached jupyter_cms-0.4.0.tar.gz
    Complete output from command python setup.py egg_info:
    error in jupyter_cms setup command: 'install_requires' must be a string or list of strings containing valid project/version requirement specifiers; Invalid requirement, parse error at "'<3.0'"

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/23/mxzcl9h95zzfwbfp74wn5h340000gn/T/pip-build-q2v2gbmo/jupyter-cms/

It is using cached because I tried several times. I played with the setup.py and got rid of <3.0 and the installation went through (pip install -e ...) but then, when searching, nothing happens so I am not sure it installed the extension properly.

Thank you for this, by the way, it is super useful.

parente commented 8 years ago

What version of pip are you running?

parente commented 8 years ago

On my Mac just now

parente@aether ~/$ conda create -n cms-test python=3
parente@aether ~/$ source activate cms-test
parente@aether ~/$ pip install jupyter_cms
Collecting jupyter-cms
Collecting whoosh<3.0,>=2.7.0 (from jupyter-cms)
  Downloading Whoosh-2.7.3.zip (1.1MB)
    100% |████████████████████████████████| 1.1MB 580kB/s
Building wheels for collected packages: whoosh
  Running setup.py bdist_wheel for whoosh ... done
  Stored in directory: /Users/parente/Library/Caches/pip/wheels/4f/4c/9e/61b3e7bc8349e699e624cd287ec0af8db49164b0431ee84de1
Successfully built whoosh
Installing collected packages: whoosh, jupyter-cms
Successfully installed jupyter-cms-0.4.0 whoosh-2.7.3
parente@aether ~/$ pip --version
pip 8.1.1 from /Users/parente/miniconda3/envs/cms-test/lib/python3.5/site-packages (python 3.5)
FlavienMakesInfographics commented 8 years ago

The same

PetitLepton @ ~
 pip --version
pip 8.1.1 from /usr/local/lib/python3.5/site-packages (python 3.5)
parente commented 8 years ago

Yeesh. Maybe shell whitespace setting difference? Can you try taking the space out of the version # on this line https://github.com/jupyter-incubator/contentmanagement/blob/master/setup.py#L17 and see if it installs without other changes?

FlavienMakesInfographics commented 8 years ago

Indeed, without the space before <3.0, it works.

parente commented 8 years ago

I :heart: shell settings. Thanks for reporting and testing. If you'd like to do the honors on a PR fixing the two spaces in the setup.py, that'd be great. Otherwise, I'll get to it soonish.

FlavienMakesInfographics commented 8 years ago

I will let you do it, I am more than a newbie on git/github. Again, thanks for the good work!

parente commented 8 years ago

No prob. Cheers!