pythonexscript

How do I install Exscript for Python 3.5 under Windows x86


Can anybody help with instructions to install this for Python 3.5 x32 running on Windows? I think that the usual way (pip install exscript) attempts to install the wrong version

Here is the error that I am getting

Collecting exscript
Using cached Exscript-2.3.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 1, in 
File "C:\Users\MyUser\AppData\Local\Temp\pip-build-pe80jvo3\exscript\setup.py", line 4, in 
from Exscript.version import version
File "C:\Users\MyUser\AppData\Local\Temp\pip-build-pe80jvo3\exscript\Exscript_init_.py", line 34, in 
from Exscript.Queue import Queue
File "C:\Users\MyUser\AppData\Local\Temp\pip-build-pe80jvo3\exscript\Exscript\Queue.py", line 35, in 
from Exscript.Logger import logger_registry
File "C:\Users\MyUserA\AppData\Local\Temp\pip-build-pe80jvo3\exscript\Exscript\Logger.py", line 27, in 
from itertools import chain, ifilter
ImportError: cannot import name 'ifilter'

----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\MyUser\AppData\Local\Temp\pip-build-pe80jvo3\exscript\

There is a Python 3.0 branch but I can not figure out how to install it https://github.com/knipknap/exscript/tree/py3


Solution

  • It's pretty hard to explain in the comments, so I'll write an answer that includes everything I talked about.

    First: the module in question, Exscript, is still in development for python 3 support, which means that it is not fully functional and bug free at the moment. Even it though said updated yesterday in GitHub, it means that the last time it was changed was yesterday not that it was released final yesterday. You can still download and use the development version if you want, just comment down below and I'll show you how. To see if it's final, you can go to the version.py in GitHub and check the __version__, currently it's set to 'development', and they will change it to 'final' if it's final.

    Second: the reason for pip to trying to install the python 2 version is because the developers were lazy so they only uploaded a .tar file containing the package with a setup.py file in it, which pip automatically downloaded and try to setup it up for you. Look here. Normally, packages are stored in a .whl file stating which python version it's for and which OS it's supported, pip can recognize these but not .tar files since they do not contain any information regarding whats so ever.

    In conclusion, I would not recommend getting Exscript for python 3 right now since it doesn't fully work.