[vbox-dev] python: Cannot create HDD

Nikolay Igotti nikolay.igotti at oracle.com
Mon Mar 14 08:59:12 PDT 2011


  Looks like a name clash with standard COM variant. with your Python 
version.
Consider using more recent Python (I have no problems like that with 
Python 2.7 on Windows), if you can't - just use constant value (0).

  Nikolay

Alexey Eromenko wrote:
> It seems one vbox constant fails: (MediumVariant_Standard)
>
> from vboxapi import VirtualBoxManager
> globalmgr = VirtualBoxManager(None, None)
> ...
> progress = medium.createBaseStorage(1024*1024*1024,
> globalmgr.constants.MediumVariant_Standard)
>
> results in:
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File "D:\DOCUME~1\User\LOCALS~1\Temp\gen_py\2.5\46137EEC-703B-4FE5-AFD4-7C9BBB
> BA0259x0x1x3\IMedium.py", line 53, in CreateBaseStorage
>     , aVariant)
> TypeError: The VARIANT type is unknown (0x00000014)
>
> I tried to use official program "vboxshell.py", and same result:
> vbox> createHdd 1000 C:/123tst.vdi
> The VARIANT type is unknown (0x00000014)
>
> any ideas?
>   





More information about the vbox-dev mailing list