question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

does not provide the extra 'wtf'

See original GitHub issue

Environment

  • pip version: 19.2.1
  • Python version: 3.6.8
  • OS: macos linux

Description

  1. Create a setup.py like this:
from setuptools import setup, find_packages

setup(
    name='wtf',
    version='1.0.0',
    description='wtf\'s common tools and utils',
    classifiers=[
        'Programming Language :: Python :: 3.6',
    ],
    packages=find_packages('.', exclude=['tests']),
    entry_points={
        'console_scripts': ['wtf=wtf.cmd.cmd:main']
    },
    install_requires=[
        'cerberus',
    	'PyJWT',
        'python-jose[cryptography]',
    	'python-json-logger', 
    	'pyhive[hive]',
        'requests'
   	],
    extras_require={
        'wtf': [
            'flask',
            'pytest',
            'pytest-cov',
            'pylint',
            'pylint-exit',
            'autopep8',
            'scspell3k',
            'bandit'
        ]
    }
)
  1. Run pip install .[wtf]

I get a warning that says

  WARNING: wtf-1.0.0 1.0.0 does not provide the extra 'wtf'

Expected behavior It should install the libs in the ‘wtf’ extras dict.

How to Reproduce

  1. Create a setup.py like this:
from setuptools import setup, find_packages

setup(
    name='wtf',
    version='1.0.0',
    description='wtf\'s tools and utils',
    classifiers=[
        'Programming Language :: Python :: 3.6',
    ],
    packages=find_packages('.', exclude=['tests']),
    entry_points={
        'console_scripts': ['wtf=wtf.cmd.cmd:main']
    },
    install_requires=[
        'cerberus',
    	'PyJWT',
        'python-jose[cryptography]',
    	'python-json-logger', 
    	'pyhive[hive]',
        'requests'
   	],
    extras_require={
        'wtf': [
            'flask',
            'pytest',
            'pytest-cov',
            'pylint',
            'pylint-exit',
            'autopep8',
            'scspell3k',
            'bandit'
        ]
    }
)
  1. Run pip install .[wtf]

Output

21:31 $ pip install .[wtf]
Processing /Users/clint/code/github/wtf/scr/wtf
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
    Preparing wheel metadata ... done
  WARNING: wtf-1.0.0 1.0.0 does not provide the extra 'wtf'
Requirement already satisfied: PyJWT in ./venv/lib/python3.6/site-packages (from wtf==1.0.0) (1.7.1)
Requirement already satisfied: cerberus in ./venv/lib/python3.6/site-packages (from wtf==1.0.0) (1.3.1)
Requirement already satisfied: pyhive in ./venv/lib/python3.6/site-packages (from wtf==1.0.0) (0.6.1)
Requirement already satisfied: request in ./venv/lib/python3.6/site-packages (from wtf==1.0.0) (2019.4.13)
Requirement already satisfied: python-json-logger in ./venv/lib/python3.6/site-packages (from wtf==1.0.0) (0.1.11)
Requirement already satisfied: python-jose in ./venv/lib/python3.6/site-packages (from wtf==1.0.0) (3.0.1)
Requirement already satisfied: future in ./venv/lib/python3.6/site-packages (from pyhive->wtf==1.0.0) (0.17.1)
Requirement already satisfied: python-dateutil in ./venv/lib/python3.6/site-packages (from pyhive->wtf==1.0.0) (2.8.0)
Requirement already satisfied: get in ./venv/lib/python3.6/site-packages (from request->wtf==1.0.0) (2019.4.13)
Requirement already satisfied: post in ./venv/lib/python3.6/site-packages (from request->wtf==1.0.0) (2019.4.13)
Requirement already satisfied: setuptools in ./venv/lib/python3.6/site-packages (from request->wtf==1.0.0) (40.6.2)
Requirement already satisfied: rsa in ./venv/lib/python3.6/site-packages (from python-jose->wtf==1.0.0) (4.0)
Requirement already satisfied: ecdsa<1.0 in ./venv/lib/python3.6/site-packages (from python-jose->wtf==1.0.0) (0.13.2)
Requirement already satisfied: six<2.0 in ./venv/lib/python3.6/site-packages (from python-jose->wtf==1.0.0) (1.12.0)
Requirement already satisfied: query_string in ./venv/lib/python3.6/site-packages (from get->request->wtf==1.0.0) (2019.4.13)
Requirement already satisfied: pyasn1>=0.1.3 in ./venv/lib/python3.6/site-packages (from rsa->python-jose->wtf==1.0.0) (0.4.6)
Requirement already satisfied: public in ./venv/lib/python3.6/site-packages (from query_string->get->request->wtf==1.0.0) (2019.4.13)
Building wheels for collected packages: wtf
  Building wheel for wtf (PEP 517) ... done
  Created wheel for wtf: filename=wtf-1.0.0-cp36-none-any.whl size=22582 sha256=ec6ef9becbb6a43d3675d8aac5cccdf3b364ab75b163ee26b074812a0af81b9e
  Stored in directory: /Users/clint/Library/Caches/pip/wheels/a3/1a/5c/955b22e328c1b0b955c6c0bb707eb1555f6cf7305e957c4288
Successfully built wtf
Installing collected packages: wtf
  Found existing installation: wtf 1.0.0
    Uninstalling wtf-1.0.0:
      Successfully uninstalled wtf-1.0.0
Successfully installed wtf-1.0.0

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
clintmodcommented, Sep 4, 2019

I couldn’t repro this just now… it must have been something in my environment.

0reactions
chrahuntcommented, Sep 1, 2019

Still not able to reproduce this in a virtual environment with unquoted .[wtf]. You still see the same issue?

Can you copy this into a script, run it, and see if you see the same result? If this succeeds for you, can you try to edit it until the install fails consistently in the way you see?

repro.sh
#!/bin/sh
cd $(mktemp -d)
python -m venv venv
. venv/bin/activate
set -x
pip install --upgrade pip

cat <<EOF > setup.py
from setuptools import setup, find_packages

setup(
    name='wtf',
    version='1.0.0',
    description='wtf\'s tools and utils',
    classifiers=[
        'Programming Language :: Python :: 3.6',
    ],
    packages=find_packages('.', exclude=['tests']),
    entry_points={
        'console_scripts': ['wtf=wtf.cmd.cmd:main']
    },
    install_requires=[
        'cerberus',
        'PyJWT',
        'python-jose[cryptography]',
        'python-json-logger',
        'pyhive[hive]',
        'requests'
        ],
    extras_require={
        'wtf': [
            'flask',
            'pytest',
            'pytest-cov',
            'pylint',
            'pylint-exit',
            'autopep8',
            'scspell3k',
            'bandit'
        ]
    }
)
EOF

pip install .[wtf]
Read more comments on GitHub >

github_iconTop Results From Across the Web

XUR IS SUPER BUGGED! EXTRA PERKS ON WEAPONS ...
Your browser can't play this video. ... EXTRA PERKS ON WEAPONS! WTF BUNGIE! ... Why Bungie Doesn't Make Your Exotic Ideas.
Read more >
WTF Moments in Football - YouTube
Your browser can 't play this video. Learn more. Switch camera ... WTF Moments in Football. 628K views 3 months ago. SEN31 Extra....
Read more >
pip install hypothesis[pandas] says hypothesis3.82.1 does not ...
extra has django but not pandas. Any idea what is going on with the pip install for pandas and numpy extras? python-hypothesis.
Read more >
WTF is link decoration? - Digiday
This extra information doesn't change the link's destination but provides a way to pass information to the destination site.
Read more >
Episodes — WTF with Marc Maron Podcast
Elvis Mitchell waited his entire life to make the new documentary Is That Black ... to talk about Sam's new novel, No One...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found