forum.vmspython.org Forum Index forum.vmspython.org
Forum system
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

PYVMOMI for OpenVMS

 
Post new topic   Reply to topic    forum.vmspython.org Forum Index -> Python for OpenVMS
View previous topic :: View next topic  
Author Message
cdan



Joined: 21 Jun 2016
Posts: 5

PostPosted: Tue Oct 16, 2018 4:11 pm    Post subject: PYVMOMI for OpenVMS Reply with quote

How difficult would be to port pyVmomi to OpenVMS? It's not in the list of supported os and install fails with a file version error.

pyVmomi is the Python SDK for the VMware vSphere API that allows you to manage
ESX, ESXi, and vCenter.

https://github.com/vmware/pyvmomi
_________________
CD
Back to top
View user's profile Send private message
jfp



Joined: 12 Jul 2004
Posts: 625

PostPosted: Fri Oct 19, 2018 9:38 am    Post subject: Reply with quote

Can you post the installation error log ?

You can also try to manually install the two libraries pyVim and pyVmomi.
Just copy the two directories and try to use it.

JF
Back to top
View user's profile Send private message Send e-mail Visit poster's website
cdan



Joined: 21 Jun 2016
Posts: 5

PostPosted: Mon Oct 29, 2018 12:08 pm    Post subject: install errors Reply with quote

First there is error trying to write to the LD device where python_root resides, but is not able to correctly translate to VMS path (folder python2^.7.DIR )

python setup.py install
running install
install_dir /python_root/lib/python2.7/site-packages/
running bdist_egg
running egg_info
creating pyvmomi.egg-info
error: could not create 'pyvmomi.egg-info': bad file version number

Then trying to install to a different location

python setup.py install --root sys$sysdevice:[python_pyvmomi]
running install
Traceback (most recent call last):
File "setup.py", line 68, in <module>
zip_safe=True
File "/python_root/lib/distutils/core.py", line 151, in setup
dist.run_commands()
File "/python_root/lib/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
File "/python_root/lib/distutils/dist.py", line 971, in run_command
cmd_obj.ensure_finalized()
File "/python_root/lib/distutils/cmd.py", line 109, in ensure_finalized
self.finalize_options()
File "/python_root/local/setuptools/command/install.py", line 29, in finalize_options
_install.finalize_options(self)
File "/python_root/lib/distutils/command/install.py", line 314, in finalize_options
self.expand_basedirs()
File "/python_root/lib/distutils/command/install.py", line 490, in expand_basedirs
'root'])
File "/python_root/lib/distutils/command/install.py", line 483, in _expand_attrs
val = subst_vars(val, self.config_vars)
File "/python_root/lib/distutils/util.py", line 210, in subst_vars
raise ValueError, "invalid variable '$%s'" % var
ValueError: invalid variable '$'
_________________
CD
Back to top
View user's profile Send private message
jfp



Joined: 12 Jul 2004
Posts: 625

PostPosted: Thu Nov 15, 2018 9:09 am    Post subject: Reply with quote

You can try
Code:

$ python setup.py build


Or as I have previously mentioned just copy the library directory.

JF
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vmspython.org Forum Index -> Python for OpenVMS All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group