[GH-ISSUE #242] Usage on Python 3 Default Systems #190

Open
opened 2026-02-27 16:38:20 +03:00 by kerem · 1 comment
Owner

Originally created by @normaldotcom on GitHub (Feb 19, 2014).
Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/242

To run webvirtmgr on systems that have Python 3 as the default python installation, users have to modify manage.py, webvirtmgr-novnc, etc and change
#!/usr/bin/env python
to
#!/usr/bin/env python2
so the scripts are run with Python 2 instead of the system default Python 3. Would it be possible to explicitly specify python2 in these files to avoid this issue? The python2 binary/symlink exists in all major linux distros (as far as I know).

Originally created by @normaldotcom on GitHub (Feb 19, 2014). Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/242 To run webvirtmgr on systems that have Python 3 as the default python installation, users have to modify manage.py, webvirtmgr-novnc, etc and change `#!/usr/bin/env python` to `#!/usr/bin/env python2` so the scripts are run with Python 2 instead of the system default Python 3. Would it be possible to explicitly specify python2 in these files to avoid this issue? The python2 binary/symlink exists in all major linux distros (as far as I know).
Author
Owner

@retspen commented on GitHub (Feb 20, 2014):

Not all linux distros have jumped to new PEP8 specification for python2 and python3.

<!-- gh-comment-id:35632731 --> @retspen commented on GitHub (Feb 20, 2014): Not all linux distros have jumped to new PEP8 specification for python2 and python3.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/webvirtmgr#190
No description provided.