sethmlarson / virtualbox-python

Complete implementation of VirtualBox's COM API with a Pythonic interface.
https://pypi.org/project/virtualbox
Apache License 2.0
354 stars 75 forks source link

More Python3 issues #12

Closed maxfragg closed 10 years ago

maxfragg commented 10 years ago

Importing with ipython3 (v 0.13.2) fails, since the pythonic_name creation for enums in library seams not to work

/usr/local/lib/python3.3/dist-packages/pyvbox-0.1.2-py3.3.egg/virtualbox/__init__.py in <module>()
      9 from threading import current_thread
     10 
---> 11 from virtualbox.library_ext import library
     12 
     13 __doc__ = library.__doc__

/usr/local/lib/python3.3/dist-packages/pyvbox-0.1.2-py3.3.egg/virtualbox/library_ext/__init__.py in <module>()
      2 
      3 import virtualbox
----> 4 from virtualbox import library
      5 
      6 """

/usr/local/lib/python3.3/dist-packages/pyvbox-0.1.2-py3.3.egg/virtualbox/library.py in <module>()
  23192 
  23193 
> 23194 class IMachineEvent(IEvent):
  23195     """
  23196     Base abstract interface for all machine events.

/usr/local/lib/python3.3/dist-packages/pyvbox-0.1.2-py3.3.egg/virtualbox/library.py in IMachineEvent(__locals__)
  23198     __uuid__ = '92ed7b1a-0d96-40ed-ae46-a564d484325e'
  23199     __wsmap__ = 'managed'
> 23200     id = VBoxEventType.machine_event
  23201     @property
  23202     def machine_id(self):

AttributeError: type object 'VBoxEventType' has no attribute 'machine_event'
mjdorma commented 10 years ago

It'd be great if you could let me know if you're getting success with py3 with the latest master.

Once you let me know the status of py3 I"ll push out a 0.1.3 release to pypi.

Cheers

maxfragg commented 10 years ago

I will test it, though no promisies that i can still do it this week, since I'm on an other project this week, i will be back on my bachelor thesis, which uses your project next week ;-) greetings Max On 03/12/2014 11:14, Michael Dorman wrote:

It'd be great if you could let me know if you're getting success with py3 with the latest master.

Once you let me know the status of py3 I"ll push out a 0.1.3 release to pypi.

Cheers

— Reply to this email directly or view it on GitHub https://github.com/mjdorma/pyvbox/issues/12#issuecomment-37392718.

maxfragg commented 10 years ago

Thx for you're work, but i give up, now that the python3 errors in pyvbox are fixed, i get errors form the layer below:

File "/usr/share/pyshared/vboxapi/init.py", line 428 except AttributeError, e: ^ SyntaxError: invalid syntax

(eg, using ',' instead of 'as') which is part of the official virtualbox api, as i understand, for me python3 compatibility was always a stretch goal. thx for you're work, never the less Max

On 12.03.2014 11:14, Michael Dorman wrote:

It'd be great if you could let me know if you're getting success with py3 with the latest master.

Once you let me know the status of py3 I"ll push out a 0.1.3 release to pypi.

Cheers

— Reply to this email directly or view it on GitHub https://github.com/mjdorma/pyvbox/issues/12#issuecomment-37392718.

mjdorma commented 10 years ago

Lol... That's a shame! The reason I created this library was to make using vboxapi easy. Now that you posted this, I remember now why I stopped testing in Py3. :/.

I'll close this off for now... At least pyvbox is now ready (more then less) for the day vboxapi is updated to support Py3.

maxfragg commented 10 years ago

Hey, I thought I let you know, that my project using pyvbox is now public and can be found on https://github.com/maxfragg/ForGeOSI mfg Max

On 03/19/2014 09:40 PM, Michael Dorman wrote:

Lol... That's a shame! The reason I created this library was to make using vboxapi easy. Now that you posted this, I remember now why I stopped testing in Py3. :/.

I'll close this off for now... At least pyvbox is now ready (more then less) for the day vboxapi is updated to support Py3.

— Reply to this email directly or view it on GitHub https://github.com/mjdorma/pyvbox/issues/12#issuecomment-38103905.

mjdorma commented 10 years ago

Nice work!