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

python2 install errror #12

Open
DatCGI2net opened this issue May 9, 2021 · 1 comment
Open

python2 install errror #12

DatCGI2net opened this issue May 9, 2021 · 1 comment

Comments

@DatCGI2net
Copy link

Hi,

It seems the setup does not support python2. I try pip install crisp-api in python2 environment and got this errors:

Collecting crisp-api
Downloading crisp-api-1.1.8.tar.gz (10 kB)
ERROR: Command errored out with exit status 1:
command: /home/dat/.venv2/fue/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-Mju4zm/crisp-api/setup.py'"'"'; file='"'"'/tmp/pip-install-Mju4zm/crisp-api/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-_CsMkr
cwd: /tmp/pip-install-Mju4zm/crisp-api/
Complete output (5 lines):
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-install-Mju4zm/crisp-api/setup.py", line 16, in
long_description=open('README.md', encoding='utf-8').read(),
TypeError: 'encoding' is an invalid keyword argument for this function
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

@eliottvincent
Copy link
Member

Hello! That's right, this library only supports Python 3. The error you see is because the open function changed between Python 2 and Python 3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants