1. spirit
  2. guess_language
  3. Issues


Issue #1 invalid

Can't install module for python 2

artyom88 NA
created an issue

I'm trying to install latest guess_language module. The description says it can be install using lib3to2. But how can i do that ? First i install 3to2. Then

3to2 guess_language-spirit-0.5a1 -w

breaks package. after i run

python setup.py install

I get message:

Finished processing dependencies for UNKNOWN==0.0.0

Please help

Comments (5)

  1. spirit repo owner

    You should not directly use 3to2. The setup.py script takes care of everything. To install the package for Python 2, just use:

    python2 setup.py install

    Even if you don't have 3to2 installed, the setup.py script will just download any required dependencies.

    You may also use "pip install guess_language-spirit" to install from PyPI.

    Sorry for the poor installation instructions.

  2. spirit repo owner

    Just to elaborate on why you should not use 3to2 on the whole directory: it's because only the guess_language package itself is designed to be convertible, whereas the setup.py and other utility scripts are carefully written to be compatible with both Python 2 and Python 3. Unexpected things will happen if you try to convert those with 3to2.

    Bottom line is: don't run 3to2, just use the setup.py script.

  3. Log in to comment