Opened 10 years ago
Closed 9 years ago
#14359 closed defect (fixed)
My system uses python3 as the default causing the install script to error out
Reported by: | B. J. Potter | Owned by: | |
---|---|---|---|
Component: | installer | Version: | VirtualBox 5.0.0 |
Keywords: | python | Cc: | |
Guest type: | all | Host type: | Linux |
Description
I use python3 as my default python. This causes the VirtualBox-5.0.0-101573-Linux_amd64.run
script to errror because print is a function instead of a statement in python3 so it needs parenthesis. I suggest making the script compatible with python2 & python3 through use of from future import print_statement
and if needed the six library.
Here is the output from a script run:
┌[root@lore] [/dev/pts/3] └[/opt/virtualbox]> ./VirtualBox-5.0.0-101573-Linux_amd64.run Verifying archive integrity... All good. Uncompressing VirtualBox for Linux installation........... VirtualBox Version 5.0.0 r101573 (2015-07-09T10:41:09Z) installer Failed to stop vboxautostart-service.service: Unit vboxautostart-service.service not loaded. Failed to stop vboxballoonctrl-service.service: Unit vboxballoonctrl-service.service not loaded. Failed to stop vboxweb-service.service: Unit vboxweb-service.service not loaded. Installing VirtualBox to /opt/VirtualBox Python found: python, installing bindings... File "vboxapisetup.py", line 21 print "Cleaning COM cache at",comCache1,"and",comCache2 ^ SyntaxError: Missing parentheses in call to 'print'
Change History (2)
comment:1 by , 9 years ago
comment:2 by , 9 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
This should be fixed in 5.1.2 but better install the latest 5.1.x maintenance release (5.1.4).
Note:
See TracTickets
for help on using tickets.
this issue is fixed I think, at least that line 21 is not written in Python3 compatible mode.