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

Cannot install warlock==1.3.2 using Python 2.7 #41

Closed
vijay-avi opened this issue May 20, 2019 · 8 comments
Closed

Cannot install warlock==1.3.2 using Python 2.7 #41

vijay-avi opened this issue May 20, 2019 · 8 comments

Comments

@vijay-avi
Copy link

vijay-avi commented May 20, 2019

Attempting to install warlock==1.3.2 on a Python virtual environment (with Python==2.7.12 and pip==19.1.1, and setuptools==41.0.1) is resulting in the following error
$>virtualenv test-venv $>source test-venv/bin/activate $>python --version Python 2.7.12 $>pip --version pip 19.1.1 from <pip path inside virtual environment> $> pip install warlock Collecting warlock==1.3.2 Using cached https://files.pythonhosted.org/packages/7e/9b/648ceb3bc527e821c04d69f14facb0655268288ac7d8d6aa3a026c3316ea/warlock-1.3.2.tar.gz ERROR: Complete output from command python setup.py egg_info: ERROR: Traceback (most recent call last): File "<string>", line 1, in <module> File "/tmp/pip-install-V0WEIx/warlock/setup.py", line 37, in <module> long_description=read("README.md"), File "/tmp/pip-install-V0WEIx/warlock/setup.py", line 28, in read os.path.join(os.path.dirname(__file__), fname), "r", encoding="utf-8" TypeError: 'encoding' is an invalid keyword argument for this function ---------------------------------------- ERROR: Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-V0WEIx/warlock/

I think the 'encoding' parameter is unavailable to open() in Python 2.7.12. To backport open() of Python 3 to Python 2.6/2.7, io.open can be used.
Source: Accepted solution from this StackOverflow thread.

@freddebacker
Copy link

Mine too...

Collecting warlock<2,>=1.2.0 (from python-glanceclient)
  Downloading https://files.pythonhosted.org/packages/7e/9b/648ceb3bc527e821c04d69f14facb0655268288ac7d8d6aa3a026c3316ea/warlock-1.3.2.tar.gz
    ERROR: Complete output from command python setup.py egg_info:
    ERROR: Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-yl9AL5/warlock/setup.py", line 37, in <module>
        long_description=read("README.md"),
      File "/tmp/pip-install-yl9AL5/warlock/setup.py", line 28, in read
        os.path.join(os.path.dirname(__file__), fname), "r", encoding="utf-8"
    TypeError: 'encoding' is an invalid keyword argument for this function
    ----------------------------------------
ERROR: Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-yl9AL5/warlock/

@willseeyou
Copy link

Me too.
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-build-Cti6W0/warlock/setup.py", line 37, in
long_description=read("README.md"),
File "/tmp/pip-build-Cti6W0/warlock/setup.py", line 28, in read
os.path.join(os.path.dirname(file), fname), "r", encoding="utf-8"
TypeError: 'encoding' is an invalid keyword argument for this function

@art-vasilyev
Copy link

art-vasilyev commented May 20, 2019

Looks like pull request #42 fixes this issue

@marios
Copy link

marios commented May 20, 2019

there is a pull request at #42 from raukadah related to this

@33man
Copy link

33man commented May 20, 2019

Me too :(

Collecting warlock<2,>=1.2.0 (from python-glanceclient>=2.8.0->python-openstackclient->-r requirement.txt (line 3))
  Downloading https://files.pythonhosted.org/packages/7e/9b/648ceb3bc527e821c04d69f14facb0655268288ac7d8d6aa3a026c3316ea/warlock-1.3.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-build-rHiYZO/warlock/setup.py", line 37, in <module>
        long_description=read("README.md"),
      File "/tmp/pip-build-rHiYZO/warlock/setup.py", line 28, in read
        os.path.join(os.path.dirname(__file__), fname), "r", encoding="utf-8"
    TypeError: 'encoding' is an invalid keyword argument for this function
    
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-rHiYZO/warlock/

@janw
Copy link
Contributor

janw commented May 20, 2019

Sorry for all the trouble, still warming up to this. 🙈 Will publish 1.3.3 to PyPi in a bit.

@janw
Copy link
Contributor

janw commented May 20, 2019

Again, sorry for the inconvenience caused. 1.3.3 is propagating on PyPi, and I've taken additional action to catch setup.py errors in CI in the future.

@janw janw closed this as completed May 20, 2019
@33man
Copy link

33man commented May 20, 2019

All good now 👍

openstack-gerrit pushed a commit to openstack-archive/tripleo-quickstart that referenced this issue May 20, 2019
Currently warlock 1.3.2 is broken while installing it from
pypi. Here is the github issue:
bcwaldon/warlock#41
and fix is in progress. Avoid installing the same fixes
the issue.

Related-bug: #1829724

Change-Id: Ie78a434b2734d7a79717f75b53bfb24e3eb3f1e2
Signed-off-by: Chandan Kumar (raukadah) <chkumar@redhat.com>
openstack-gerrit pushed a commit to openstack/openstack that referenced this issue May 20, 2019
* Update tripleo-quickstart from branch 'master'
  - Avoid installing warlock!=1.3.2 in TQ
    
    Currently warlock 1.3.2 is broken while installing it from
    pypi. Here is the github issue:
    bcwaldon/warlock#41
    and fix is in progress. Avoid installing the same fixes
    the issue.
    
    Related-bug: #1829724
    
    Change-Id: Ie78a434b2734d7a79717f75b53bfb24e3eb3f1e2
    Signed-off-by: Chandan Kumar (raukadah) <chkumar@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants