novaclient

David Scott dmscott100 at gmail.com
Fri Apr 20 04:41:41 PDT 2012


Here is the output from head. The reference to 2.6.8 seems odd to me.

$ head /opt/local/bin/nova-2.7
#!/opt/local/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
# EASY-INSTALL-ENTRY-SCRIPT: 'python-novaclient==2.6.8','console_scripts','nova'
__requires__ = 'python-novaclient==2.6.8'
import sys
from pkg_resources import load_entry_point

if __name__ == '__main__':
    sys.exit(
        load_entry_point('python-novaclient==2.6.8',
'console_scripts', 'nova')()
    )



On 20 April 2012 12:27, Daniel Ericsson <deric at macports.org> wrote:
> On 20 apr 2012, at 13:07, David Scott wrote:
>
>> I have installed py27-novaclient. When I try to run the client
>> 'argparse' is not found.
>> $ nova-2.7
>> Traceback (most recent call last):
>>  File "/opt/local/bin/nova-2.7", line 5, in <module>
>>    from pkg_resources import load_entry_point
>>  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources.py",
>> line 2711, in <module>
>>    working_set.require(__requires__)
>>  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources.py",
>> line 690, in require
>>    needed = self.resolve(parse_requirements(requirements))
>>  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources.py",
>> line 588, in resolve
>>    raise DistributionNotFound(req)
>> pkg_resources.DistributionNotFound: argparse
>>
>> Now for Python 2.7 argparse is meant to be part of the standard
>> library so what can I do to correct this problem?
>
> I can't reproduce, but what does `head /opt/local/bin/nova-2.7` output? I'm interested in the shebang-line specifically.
>
> -- Daniel


More information about the macports-users mailing list