VirtualBox

Ticket #15926 (new defect)

Opened 3 years ago

Last modified 3 years ago

Python API on mac throwing syntax error

Reported by: nickpick Owned by:
Component: other Version: VirtualBox 5.1.6
Keywords: API MAC Python Cc:
Guest type: OSX Server Host type: Mac OS X

Description (last modified by frank) (diff)

API cannot be initialised because of a syntax error in the python bindings in xpcom/python/xpcom/init.py

 File "/Users/nd/PycharmProjects/Poker/vboxapi/__init__.py", line 786, in __init__
    import xpcom.vboxxpcom

  File "/Applications/VirtualBox.app/Contents/MacOS/sdk/bindings/xpcom/python/xpcom/__init__.py", line 128
    except IOError, why:
                  ^
SyntaxError: invalid syntax

Change History

comment:1 Changed 3 years ago by frank

  • Description modified (diff)

comment:2 Changed 3 years ago by frank

Which Python version are you using? I guess it's older than 2.6?

Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use