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

Installation fails #35

Closed
petrbel opened this issue Mar 26, 2019 · 13 comments
Closed

Installation fails #35

petrbel opened this issue Mar 26, 2019 · 13 comments
Assignees
Labels
bug Something isn't working

Comments

@petrbel
Copy link
Member

petrbel commented Mar 26, 2019

Iinstallation is ok in tag v0.2.0 but not in dev.

@Teyras shouldn't also CI-test that the installation is successful?

bunny /tmp $ git clone git@github.com:iterait/apistrap.git
Cloning into 'apistrap'...
remote: Enumerating objects: 236, done.
remote: Counting objects: 100% (236/236), done.
remote: Compressing objects: 100% (149/149), done.
remote: Total 538 (delta 153), reused 156 (delta 84), pack-reused 302
Receiving objects: 100% (538/538), 121.06 KiB | 1.05 MiB/s, done.
Resolving deltas: 100% (340/340), done.
bunny /tmp $ cd apistrap 
bunny apistrap $ pip install --user -e .                                                                                                                                                                                                                                  dev 
Obtaining file:///tmp/apistrap
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
    Preparing wheel metadata ... done
Requirement already satisfied: schematics in /home/petrbel/.local/lib/python3.7/site-packages (from apistrap==0.2.0) (2.1.0)
Requirement already satisfied: apispec in /home/petrbel/.local/lib/python3.7/site-packages (from apistrap==0.2.0) (1.1.0)
Requirement already satisfied: more-itertools in /usr/lib/python3.7/site-packages (from apistrap==0.2.0) (4.3.0)
Requirement already satisfied: six<2.0.0,>=1.0.0 in /home/petrbel/.local/lib/python3.7/site-packages (from more-itertools->apistrap==0.2.0) (1.12.0)
Installing collected packages: apistrap
  Found existing installation: apistrap 0.2.0
    Uninstalling apistrap-0.2.0:
      Successfully uninstalled apistrap-0.2.0
  Running setup.py develop for apistrap
    Complete output from command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/apistrap/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" develop --no-deps --user --prefix=:
    usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
       or: -c --help [cmd1 cmd2 ...]
       or: -c --help-commands
       or: -c cmd --help
    
    error: option --user not recognized
    
    ----------------------------------------
  Rolling back uninstall of apistrap
  Moving to /home/petrbel/.local/lib/python3.7/site-packages/apistrap.egg-link
   from /tmp/pip-uninstall-yifhdf40/apistrap.egg-link
Command "/usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/apistrap/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" develop --no-deps --user --prefix=" failed with error code 1 in /tmp/apistrap/
@petrbel petrbel added the bug Something isn't working label Mar 26, 2019
@janbuchar
Copy link
Collaborator

I could not reproduce this in a fresh virtualenv and have no idea what is happening in your system-wide Python installation. Any ideas what to do?

@petrbel
Copy link
Member Author

petrbel commented Mar 26, 2019

no idea :-/ weird, I have this issue both locally and on Kyle... and @gdynusa got the same thing (that's the reason I tried that)

what's really weird is that v0.2.0 is fine

@blazekadam
Copy link
Contributor

Try pip install -e . --user

@janbuchar
Copy link
Collaborator

janbuchar commented Mar 26, 2019

Try putting user before the dot. The command you posted is invalid and the error kinda suggests that (very subtly)

EDIT: this shouldn't really behave differently in 0.2.0, but try it anyway

@petrbel
Copy link
Member Author

petrbel commented Mar 26, 2019

pip install -e . --user

same error, I believe that the order of flags isn't important

pip install -e --user .                                                                                                                                                                                                                                
--user should either be a path to a local project or a VCS url beginning with svn+, git+, hg+, or bzr+

invalid since you can't put another flag (--user) between a flag (-e) and its value (.)

weird

@blazekadam
Copy link
Contributor

--user is a flag while -e is followed by an argument I guess... nevermind...

@janbuchar
Copy link
Collaborator

Hm, the flag order makes sense now. Still, the rest does not

@janbuchar
Copy link
Collaborator

pypa/pip#5317

@petrbel
Copy link
Member Author

petrbel commented Mar 27, 2019

huh, after deleting ~/.local/lib/python3.6/ still same error :-/

passing --no-build-isolation to pip helped, thanks!

FYI @gdynusa

@petrbel petrbel closed this as completed Mar 27, 2019
@arielnmz
Copy link

arielnmz commented Apr 4, 2019

Passing --no-build-isolation didn't help me, it fails with this:

Obtaining pipenv from git+https://github.com/pypa/pipenv.git@master#egg=pipenv
  Updating ./src/pipenv clone (to revision master)
    Preparing wheel metadata ... error
    Complete output from command /usr/bin/python3.7 /home/ariel/.local/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py prepare_metadata_for_build_wheel /tmp/tmpfehwzxhc:
    running dist_info
    creating /home/ariel/test-pipenv/src/pipenv/pip-wheel-metadata/pipenv.egg-info
    writing /home/ariel/test-pipenv/src/pipenv/pip-wheel-metadata/pipenv.egg-info/PKG-INFO
    writing dependency_links to /home/ariel/test-pipenv/src/pipenv/pip-wheel-metadata/pipenv.egg-info/dependency_links.txt
    writing entry points to /home/ariel/test-pipenv/src/pipenv/pip-wheel-metadata/pipenv.egg-info/entry_points.txt
    writing requirements to /home/ariel/test-pipenv/src/pipenv/pip-wheel-metadata/pipenv.egg-info/requires.txt
    writing top-level names to /home/ariel/test-pipenv/src/pipenv/pip-wheel-metadata/pipenv.egg-info/top_level.txt
    writing manifest file '/home/ariel/test-pipenv/src/pipenv/pip-wheel-metadata/pipenv.egg-info/SOURCES.txt'
    reading manifest file '/home/ariel/test-pipenv/src/pipenv/pip-wheel-metadata/pipenv.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    warning: no previously-included files found matching '.gitmodules'
    warning: no previously-included files found matching '.editorconfig'
    warning: no previously-included files found matching '.travis.yml'
    warning: no previously-included files found matching '.env'
    warning: no previously-included files found matching 'appveyor.yml'
    warning: no previously-included files found matching 'tox.ini'
    warning: no previously-included files found matching 'pytest.ini'
    warning: no previously-included files found matching 'Pipfile*'
    warning: no previously-included files found matching 'CHANGELOG.draft.rst'
    warning: no previously-included files found matching 'docker-compose.yml'
    warning: no previously-included files found matching 'Dockerfile'
    warning: no previously-included files found matching 'run-tests.sh'
    warning: no previously-included files found matching 'run-tests.bat'
    warning: no previously-included files matching 'requirements*.txt' found under directory 'docs'
    warning: no previously-included files matching '*.pyi' found under directory 'pipenv'
    warning: no previously-included files matching '*.typed' found under directory 'pipenv'
    no previously-included directories found matching 'peeps'
    no previously-included directories found matching '.azure-pipelines'
    no previously-included directories found matching '.buildkite'
    no previously-included directories found matching '.github'
    no previously-included directories found matching '.vsts-ci'
    no previously-included directories found matching 'docs/build'
    no previously-included directories found matching 'news'
    no previously-included directories found matching 'tasks'
    no previously-included directories found matching 'tests'
    writing manifest file '/home/ariel/test-pipenv/src/pipenv/pip-wheel-metadata/pipenv.egg-info/SOURCES.txt'
    creating '/home/ariel/test-pipenv/src/pipenv/pip-wheel-metadata/pipenv.dist-info'
    error: invalid command 'bdist_wheel'
    
    ----------------------------------------
Command "/usr/bin/python3.7 /home/ariel/.local/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py prepare_metadata_for_build_wheel /tmp/tmpfehwzxhc" failed with error code 1 in /home/ariel/test-pipenv/src/pipenv

Pip version:

[ariel@host]~/test-pipenv% pip -V                                                                                                    
pip 19.0.3 from /home/ariel/.local/lib/python3.7/site-packages/pip (python 3.7)

@janbuchar
Copy link
Collaborator

Hi @arielnmz, we have never tested this with pipenv, so I'm afraid I cannot help you right now. But there's a chance we'll look into this later.

@arielnmz
Copy link

arielnmz commented Apr 5, 2019

I'm so sorry I meant to post this on pips tracker not here. My apologies

@petrbel
Copy link
Member Author

petrbel commented Apr 5, 2019

@arielnmz no problem :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants