PIP won't intall scriptine, any version - python-2.7

pip installed other libraries before and after I encountered this problem, so I'm really confused.
I couldn't install the desired version (scriptine>=0.2.1) from a requirements.txt for a package I'm using (pydial) so I cycled through trying to directly download different versions and an unspecified version. I've used the --no-cache-dir command to try installing without using the cached tar. The last run I have cycled through downloading every version and gave the message below except swap the scriptine version number and it tried them all and repeated the message for each version.
I'm trying to install scriptine to work with PyDial, which uses python 2.7. I'm installing from the command line, not a space I'm comfortable in, but have solved all minor past problems without any difficulty.
Any help?
Downloading scriptine-0.1.0.tar.gz (28 kB)
Preparing metadata (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\trigg\AppData\Local\Programs\Python\Python39\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\trigg\\AppData\\Local\\Temp\\pip-install-ylyn0kwd\\scriptine_2a0ef30b1e904e53a4408c746494d3d9\\setup.py'"'"'; __file__='"'"'C:\\Users\\trigg\\AppData\\Local\\Temp\\pip-install-ylyn0kwd\\scriptine_2a0ef30b1e904e53a4408c746494d3d9\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\trigg\AppData\Local\Temp\pip-pip-egg-info-l8xqqciu' cwd: C:\Users\trigg\AppData\Local\Temp\pip-install-ylyn0kwd\scriptine_2a0ef30b1e904e53a4408c746494d3d9\ Complete output (10 lines): Traceback (most recent call last): File "<string>", line 1, in <module> File "C:\Users\trigg\AppData\Local\Temp\pip-install-ylyn0kwd\scriptine_2a0ef30b1e904e53a4408c746494d3d9\setup.py", line 1, in <module> import scriptine File "C:\Users\trigg\AppData\Local\Temp\pip-install-ylyn0kwd\scriptine_2a0ef30b1e904e53a4408c746494d3d9\scriptine\__init__.py", line 1, in <module> from scriptine._path import path File "C:\Users\trigg\AppData\Local\Temp\pip-install-ylyn0kwd\scriptine_2a0ef30b1e904e53a4408c746494d3d9\scriptine\_path.py", line 69 True, False = 1, 0 ^ SyntaxError: cannot assign to True
WARNING: Discarding https://files.pythonhosted.org/packages/0e/8e/d1084f6521208a2a2a4b60c9b46f16bb704f621ea118e9d22fccb3a289e9/scriptine-0.1.0.tar.gz#sha256=95f49125a9b5cf65bb54f7f0075ee820830a84eb199e40ef783cf4e5d65b52cc (from https://pypi.org/simple/scriptine/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement scriptine (from versions: 0.1.0, 0.2.0a1, 0.2.0a2, 0.2.0a3, 0.2.0a4, 0.2.0, 0.2.1)
ERROR: No matching distribution found for scriptine
WARNING: Ignoring invalid distribution -ip
(c:\users\trigg\appdata\local\programs\python\python39\lib\site-packages)
WARNING: Ignoring invalid distribution -ip
(c:\users\trigg\appdata\local\programs\python\python39\lib\site-packages)

True, False = 1, 0
^ SyntaxError: cannot assign to True
In Python 3 True and False became keywords, assigning to them is an error.
The code in question is obviously for Python 2. Version 0.2.1 was released in 2015 and is no longer updated. The package seems to be outdated and abandoned. Forget about it, find something to replace it

Related

Twyton / Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-ui3eeW/twython/

here is my problem ;(
i use ist with my raspi pi pip
ive this version installed of pip
"
pip 18.1 from /usr/lib/python2.7/dist-packages/pip (python 2.7)
"
pi#adsb:~ $ git clone git://github.com/ryanmcgrath/twython.git
Cloning into 'twython'...
remote: Enumerating objects: 68, done.
remote: Counting objects: 100% (68/68), done.
remote: Compressing objects: 100% (55/55), done.
remote: Total 3690 (delta 24), reused 29 (delta 12), pack-reused 3622
Receiving objects: 100% (3690/3690), 2.72 MiB | 3.35 MiB/s, done.
Resolving deltas: 100% (1992/1992), done.
pi#adsb:~ $ cd twython
pi#adsb:~/twython $ python setup.py install
Traceback (most recent call last):
File "setup.py", line 33, in <module>
long_description=open('README.md', encoding='utf-8').read() + '\n\n' +open('HISTORY.md', encoding='utf-8').read (),
TypeError: 'encoding' is an invalid keyword argument for this function
pi#adsb:~/twython $ sudo apt-get install python-setuptools python-pip
Reading package lists... Done
Building dependency tree
Reading state information... Done
python-setuptools is already the newest version (40.8.0-1).
python-pip is already the newest version (18.1-5+rpt1).
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
pi#adsb:~/twython $ sudo pip install twython
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting twython
Using cached https://files.pythonhosted.org/packages/b7/2c/fb17cb309fccd4e63638715325768bd959b0ad78b23b0cbc0738f5 fc8c58/twython-3.8.2.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-ui3eeW/twython/setup.py", line 33, in <module>
long_description=open('README.md', encoding='utf-8').read() + '\n\n' +open('HISTORY.md', encoding='utf-8'). read(),
TypeError: 'encoding' is an invalid keyword argument for this function
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-ui3eeW/twython/
any ideas?
So i cant use it as an twitterclient :(
open('README.md', encoding='utf-8')
encoding was added to open() at Python 3.0. Hence the code requires Python 3+. If you really need Python 2.7 use older twython. Version 3.7.0 seems to be ok:
pip install twython==3.7.0

Airflow 1.10.13, 2020-11-24 issues after update with pip install

Below is the configuration which worked till December 1st
composer-1.11.2-airflow-1.10.6
Python – 3.6
'dbt==0.17.0',
'google-cloud-storage',
'google-cloud-secret-manager==1.0.0',
'protobuf==3.12.2'
With the above configuration we are observing below error.
ERROR: Cannot install dbt and protobuf==3.12.2 because these package versions have conflicting dependencies.\n\nThe conflict is caused by:\n The user requested protobuf==3.12.2\n dbt-bigquery 0.17.0 depends on protobuf<3.12 and >=3.6.0\n\nTo fix this you could try to:\n1. loosen the range of package versions you've specified\n2. remove package versions to allow pip attempt to solve the dependency conflict\n\nERROR: ResolutionImpossible
Post receiving this error message we have tried many version changes to resolve the above issue. Below listed are few of the fixes applied and errors we have observed for those fixes.
Fix applied: downgraded protobuf version from 3.12.2 to 3.11.3 as per the above error
Error: Requested docutils<0.16,>=0.10 from https://files.pythonhosted.org/packages/d4/12/6c3fd74a590c7327c98cae008c11d536029fa9cd7924de477e8cb8804186/docutils-0.15.1-post1.tar.gz#sha256=f33ddb723332c6d6b6d99731ee1fc0c35eb4044a2df5cca1c64c8aa78eaf22cb (from botocore<1.15,>=1.5.0->dbt-redshift==0.17.0->dbt==0.17.0) has different version in metadata: '0.15.1'
Fix applied: Specified docutils version to 0.15.2 as to fix the above error
Error: SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Generating %s..." % output)?\n ----------------------------------------\nERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Fix applied: Tried upgrading python version from 3.6 to 3.8.
Error: The path python3.8 (from --python=python3.8) does not exist.
Fix applied: Removed package versioning for above libraries to allow pip attempt to solve the dependency conflict.
Error: Command errored out with exit status 1:\n command: /tmp/venv__vuo821/bin/python3.6 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ghz6thkq/protobuf_a5303ec5c2df4986bb9b05948ae30052/setup.py'"'"'; file='"'"'/tmp/pip-install-ghz6thkq/protobuf_a5303ec5c2df4986bb9b05948ae30052/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-gi38587q\n cwd: /tmp/pip-install-ghz6thkq/protobuf_a5303ec5c2df4986bb9b05948ae30052/\n Complete output (6 lines):\n Traceback (most recent call last):\n File "", line 1, in \n File "/tmp/pip-install-ghz6thkq/protobuf_a5303ec5c2df4986bb9b05948ae30052/setup.py", line 52\n print "Generating %s..." % output\n ^\n SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Generating %s..." % output)?\n ----------------------------------------\nERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output
Fix applied: Upgraded dbt to 0.17.2
Error: Received SIGTERM. Terminating subprocesses.
Fix applied: Tried downgrading setuptools version to 49.6.0
Error: SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Generating %s..." % output)?\n ------------------------------- ---------\nERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Fix applied: upgraded Composer and Airflow versions to composer-1.13.2-airflow-1.10.9
Error: Got similar errors with above configuration combinations
Which pip version are you using? If you upgrade pip to a newer version, please note that the dependency resolution algo has fundamentally changed since pip#20.3: https://pip.pypa.io/en/stable/user_guide/#changes-to-the-pip-dependency-resolver-in-20-3-2020.
Backtracking will happen to ensure there are no conflict dependencies: https://pip.pypa.io/en/stable/user_guide/#dependency-resolution-backtracking.
Stick to an older pip version (<20) may work in your case

pip installed non specified generator_tools package and fired `AssertionError: Python version 2.5 or 2.6 required` error

I'm working on python2.7 under virtual env, I tried to install a project which works perfectly in prod server, with this requirements :
Django==1.3
Jinja2==2.7.1
MarkupSafe==0.18
PyYAML==3.10
Pygments==1.6
South==0.7.3
Sphinx==1.0.7
Twisted==10.0.0
amqplib==1.0.2
anyjson==0.3.3
argparse==1.2.1
billiard==0.3.1
carrot==0.10.4
celery==1.0.6
coverage==3.7.1
decorator==3.4.0
distribute==0.6.24
django-nose==1.2
django-picklefield==0.3.1
django-piston==0.2.2.1
docutils==0.11
iso8601==0.1.4
meld3==0.6.10
nose==1.3.0
oauth==1.0.1
psycopg2==2.5.1
pyOpenSSL==0.12
pycurl==7.19.5
pystache==0.3.1
python-dateutil==2.2
python-foneworx==0.1
-e git://github.com/dmaclay/python-smpp.git#4b37d211ea38f52ae282a469e377baabbcd17199#egg=python_smpp-dev
python-ssmi==0.0.6
simplejson==3.3.2
six==1.5.2
smn-alexandria==0.1.1
supervisor==3.0
-e git://github.com/dustin/twitty-twister#8524750ee73adb57bbe14ef0cfd8aa08e1e59fb3#egg=twittytwister-dev
txAMQP==0.6.2
wokkel==0.7.1
wsgiref==0.1.2
yolk==0.4.3
zope.interface
After running pip install -r requirements.pip, packages got installed one by one, installed generator_tools too (while it is not mentioned in the requirements, probably as dependency?), then I encountered an error saying
ERROR: Command errored out with exit status 1:
command: /home/.../virtual_env/my_ve/bin/python2 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-pt2wZL/generator-tools/setup.py'"'"'; __file__='"'"'/tmp/pip-install-pt2wZL/generator-tools/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-install-pt2wZL/generator-tools/pip-egg-info
cwd: /tmp/pip-install-pt2wZL/generator-tools/
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-pt2wZL/generator-tools/setup.py", line 7, in <module>
assert py_version_s in ("2.5", "2.6"), "Python version 2.5 or 2.6 required"
AssertionError: Python version 2.5 or 2.6 required
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Retried times & times, with different virtualenv, or by forcing reinstall, ... but the issue is still persisting. Earnestly searched on google but no related issue found.
Does anyone have experience on this or know what would be the solution ? Thnx

Getting "encoding' is an invalid keyword argument for this function" On Installing pyautogui via PIP

I'm getting this error when I'm trying to install "pyautogui" library to python. Please find the details below -
ERROR: Complete output from command python setup.py egg_info:
ERROR: Traceback (most recent call last):
File "<string>", line 1, in <module>
File "################\pip-install-pmckiy\pygetwindow\setup.py", line 10, in <module>
with open('README.md', 'r', encoding='utf-8') as fh:
TypeError: 'encoding' is an invalid keyword argument for this function
----------------------------------------
ERROR: Command "python setup.py egg_info" failed with error code 1 in c:\################\pip-install-pmckiy\pygetwindow\
Python Version - 2.7.12
Things I have already tried -
1.) I have upgraded the pip, current version - pip 19.1.1
2.) I also followed the steps as given in this another answer
"pip install unroll": "python setup.py egg_info" failed with error code 1
3.) Since this is installation I have no control over the code, also I tried to search for this error in the files but no luck, hence below URL also did not help me much -
Is 'encoding is an invalid keyword' error inevitable in python 2.x?
4.) I tried installing setuptools as well but it is also not helping
This is a bug in pygetwindow, already reported but not resolved: https://github.com/asweigart/PyGetWindow/issues/9
The problem is that in Python 3 open has parameter encoding, but not in Python 2. That is, the code now requires Python 3.

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-dxjZrU/pyproj/ when installing 'geopandas'

Before going to the topic, my computer information:
OS: Debian jessie, Python version: 2.7
I need to install the module "geopandas" for a project i am working on. The problem is that when i tried, i receive the following error:
root#debian:~# pip install geopandas
Collecting geopandas
Using cached https://files.pythonhosted.org/packages/0a/0e/8ae74743ed7915ddb7d70cc8dfa8fc0b9b9cc81205c6e288a01915a46192/geopandas-0.3.0-py2.py3-none-any.whl
Collecting pyproj (from geopandas)
Using cached https://files.pythonhosted.org/packages/29/72/5c1888c4948a0c7b736d10e0f0f69966e7c0874a660222ed0a2c2c6daa9f/pyproj-1.9.5.1.tar.gz
Complete output from command python setup.py egg_info:
unable to execute 'i586-linux-gnu-gcc': No such file or directory
using bundled proj4..
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-dxjZrU/pyproj/setup.py", line 72, in <module>
objects = cc.compile(['nad2bin.c', 'src/pj_malloc.c'])
File "/usr/lib/python2.7/distutils/ccompiler.py", line 574, in compile
self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
File "/usr/lib/python2.7/distutils/unixccompiler.py", line 122, in _compile
raise CompileError, msg
distutils.errors.CompileError: command 'i586-linux-gnu-gcc' failed with exit status 1
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-dxjZrU/pyproj/
I also looked other questions in this website about similiar problems, most of people recommend to update the setuptools, i have done that and still doesn't work, here the prove:
root#debian:~# pip install --upgrade setuptools
Requirement already up-to-date: setuptools in /usr/local/lib/python2.7/dist-packages (39.2.0)
If anyone could help me with that i will be really happy
Thanks
Debian 8 Jessie, 32bit
'i586-linux-gnu-gcc': No such file or directory
# apt install g++ gfortran python-all-dev python-numpy libgdal-dev libgeos-dev python-matplotlib
# pip install geopandas
.
.
Running setup.py install for munch
Successfully installed geopandas shapely pandas fiona descartes pyproj python-dateutil numpy cligj click-plugins munch enum34 click
Cleaning up...