[ovirt-users] ovirt shell on mac OS ?

Fabrice Bacchella fabrice.bacchella at orange.fr
Thu Aug 20 14:32:21 UTC 2015


> Le 20 août 2015 à 16:03, Juan Hernández <jhernand at redhat.com> a écrit :
> 

>> This is related to the cli/platform/__init__.py, there we check what is
>> the platform using the Python "sys.platform" variable. Currently we only
>> check for "linux2" and "win32". I think that in Mac OS the value of
>> "sys.platform" is "darwin". So, if you can, try to modify that file so
>> that it has this content:
>> 
>> import sys
>> 
>> if sys.platform in ['linux2', 'darwin']:
>>    from cli.platform.posix.terminal import PosixTerminal as Terminal
>>    from cli.platform.posix.util import *
>> 
>> elif sys.platform in ('win32',):
>>    pass
>> 
>> Then check if it works correctly.
>> 
> 

yes !
But now I'm getting a lot of :
[oVirt shell ([1;31mdisconnected[1;m)]# connect --url XXX --user admin at internal --password XXX --insecure
WARNING: Couldn't write lextab module 'cli.parser_lex'. [Errno 20] Not a directory: '/tmp/ovirt/lib/python2.7/site-packages/ovirt_shell-3.5.0.6-py2.7.egg/cli/parser_lex.py'
WARNING: Couldn't create 'cli.parser_tab'. [Errno 20] Not a directory: '/tmp/ovirt/lib/python2.7/site-packages/ovirt_shell-3.5.0.6-py2.7.egg/cli/parser_tab.py'
/tmp/ovirt/lib/python2.7/site-packages/pkg_resources/__init__.py:197: RuntimeWarning: You have iterated over the result of pkg_resources.parse_version. This is a legacy behavior which is inconsistent with the new version class introduced in setuptools 8.0. In most cases, conversion to a tuple is unnecessary. For comparison of versions, sort the Version instances directly. If you have another use case requiring the tuple, please file a bug with the setuptools project describing that need.
  stacklevel=1,





More information about the Users mailing list