Hello,
I'm a beginner using API.
I have a Linux Server (Alma Linux 9.2) with VirtualBox 7.0.12r159484 and Python 3.9.16 installed.
I want to use the API with webserver.
I first tested the API with xpcom, it works. I wrote a small program and I also use vboxshell Sometimes it crashes with the following message "*** Error in `/usr/bin/python3': corrupted size vs. prev_size: 0x00000000014074d0 ***" but that is not my currently my main problem.
At the moment my problem is with webserver. For instance if I run vboxshell -w.
It crashes File "/usr/lib/virtualbox/sdk/bindings/webservice/python/lib/VirtualBox_client", line 37
raise TypeError, "%s incorrect request type" % (request.__class__)
I copied webservice bindings from sdk to /usr/lib/virtualbox/sdk/bindings/. I don't know why they weren't installed.
I wonder if I must install Python ZSI SOAP. If yes is it compatible with python3 ? How I can install it ?
Thanks in advance,
API - WEBSERVICE - ZSI ?
-
- Site Moderator
- Posts: 5229
- Joined: 13. Jan 2012, 11:14
- Primary OS: Debian other
- VBox Version: OSE Debian
- Guest OSses: Debian, Win 2k8, Win 7
- Contact:
Re: API - WEBSERVICE - ZSI ?
Please try with pthon 2.x
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Manage your VirtualBox infrastructure the free way!
Re: API - WEBSERVICE - ZSI ?
Unfortunately there is no SOAP library available for Python 3 which would come close to ZSI (which is for Python 2 only). Everything the dev team looked at would need a ton of work to get something with reasonable functionality. Not saying that one can't do SOAP with Python 3, but it's much more tedious.