poetry install pendulum --git

Created on 14 Sep 2018  路  8Comments  路  Source: python-poetry/poetry

  • [x] I am on the latest Poetry version.
  • [x] I have searched the issues of this repo and believe that this is not a duplicate.
  • [x] If an exception occurs when executing a command, I executed it again in debug mode (-vvv option).
Poetry
======

 * Version: 0.11.4
 * Python:  3.6.5


Virtualenv
==========

 * Python:         3.6.5
 * Implementation: CPython
 * Path:           /Users/nackjicholson/Library/Caches/pypoetry/virtualenvs/source-data-service-py3.6


System
======

 * Platform: darwin
 * OS:       posix

Issue

Can't install pendulum from git because it doesn't have a setup.py...

[VenvCommandError]                                                                                                                                                                
Command ['pip', 'install', '--no-deps', 'git+https://github.com/sdispater/pendulum.git@7de6f28de967ea51d1f283125ecf0f578b35e185#egg=pendulum'] errored with the following outpu   
t:                                                                                                                                                                                
Collecting pendulum from git+https://github.com/sdispater/pendulum.git@7de6f28de967ea51d1f283125ecf0f578b35e185#egg=pendulum                                                      
  Cloning https://github.com/sdispater/pendulum.git (to 7de6f28de967ea51d1f283125ecf0f578b35e185) to /private/var/folders/49/7rty082j7y3gp2_804j7bpbc0000gn/T/pip-build-_dtdo8i   
a/pendulum                                                                                                                                                                        
  Could not find a tag or branch '7de6f28de967ea51d1f283125ecf0f578b35e185', assuming commit.                                                                                     
    Complete output from command python setup.py egg_info:                                                                                                                        
    Traceback (most recent call last):                                                                                                                                            
      File "<string>", line 1, in <module>                                                                                                                                        
      File "/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/tokenize.py", line 452, in open                                                 
        buffer = _builtin_open(filename, 'rb')                                                                                                                                   
    FileNotFoundError: [Errno 2] No such file or directory: '/private/var/folders/49/7rty082j7y3gp2_804j7bpbc0000gn/T/pip-build-_dtdo8ia/pendulum/setup.py'                      

    ----------------------------------------                                                                                                                                     
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/49/7rty082j7y3gp2_804j7bpbc0000gn/T/pip-build-_dtdo8ia/pendulum/                             
You are using pip version 9.0.3, however version 18.0 is available.                                                                                                              
You should consider upgrading via the 'pip install --upgrade pip' command.
Bug Installation

All 8 comments

I believe your issue is the same as #321 - it should be resolved when pip supports PEP 517

Okay, closing then. Perhaps this should be stated as "expectedly broken" somewhere. All documentation and examples led me to believe poetry could do this already and wasn't waiting on a PEP.

This was actually a bug in my opinion since Poetry should be able to handle itself.

It's has been fixed in commit 58e3676 and this something that will land in the next 0.12 release.

Thanks for the clarification!

I am still getting the same error when using poetry 0.12.4 (the FileNotFoundError for the setup.py) - is this my mistake or has it not been fixed with the 0.12 release yet?

@timonbimon There is still an issue actually. I know where it's coming from and it should be an easy fix. I will keep you posted.

awesome thanks a lot for the quick reply. and thanks even more for all the hard work, poetry is really the best :)

Release 0.12.5 should fix the issue.

Was this page helpful?
0 / 5 - 0 ratings