Ticket #17448 (new defect)

Opened 4 years ago

Python bindings for Python 3.x fail on sys.abiflag() because of module and init name mismatch

Reported by: SethMichaelLarson Owned by:
Component: VM control Version: VirtualBox 5.2.4
Keywords: vboxapi Cc:
Guest type: all Host type: all


Reporting an issue where if sys.abiflags() != '' you will not be able to import vboxapi on Python 3.x systems because of how the PyInit function is named.

Python requires .so modules to have an exported function with the name PyInit_[MODULE NAME] and in this case when the user installed via the .deb file for Ubuntu 16.04 the .so file was named but when examining the exported function names we received only PyInit_VBoxPython3_5 (note that there is no m at the end).

This mismatch makes it tough for users to install vboxapi without having to take additional steps such as renaming their .so file to not include the m.

Source file where this PyInit function is generated:

See for the original issue reported by another user.

Note: See TracTickets for help on using tickets.
ContactPrivacy policyTerms of Use