"..python" in /usr/bin/openteacher should be "..python2

Bug #849769 reported by Bersam Karbasion
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenTeacher
Status tracked in 3.x
3.x
Fix Released
Wishlist
Marten de Vries

Bug Description

after installing openteacher in archlinux, it give you this error:
Traceback (most recent call last):
  File "/usr/bin/openteacher", line 22, in <module>
    import openteacher as parent
ImportError: No module named openteacher

this is because of python's version in archlinux. in archlinux python means python3 so #! needed to be python2 instead of python.

#!/usr/bin/python
should be:
#!/usr/bin/python2

Tags: packaging
Revision history for this message
Milan Boers (milan-boers) wrote :

Thanks for reporting your bug!
This is true. The OpenTeacher ArchLinux package was made a year ago, before the default python was python3 in ArchLinux. Because of the rolling release, this broke many packages, including OpenTeacher.
Packages for ArchLinux haven't been updated since, so the latest OpenTeacher with an ArchLinux package is 2.0.
If you don't mind not using pacman, we recommend you to download the source, and make your own shortcuts.
I will make sure there is an updated ArchLinux package when OpenTeacher 3.0 comes out.

Changed in openteacher:
status: New → Incomplete
status: Incomplete → Confirmed
assignee: nobody → Milan Boers (milan-boers)
importance: Undecided → Wishlist
Changed in openteacher:
status: Confirmed → Triaged
milestone: none → 3.0
tags: added: packaging
Revision history for this message
Charlie_Smotherman (cjsmo) wrote :

FYI if this change is made it will break the debian and ubuntu packages.

In Ubuntu
#!/usr/bin/env python == python 2.7
#!/usr/bin/env python3 == python 3.x

In Debian
#!/usr/bin/env python == python 2.6 and 2.7
#!/usr/bin/env python3 == python 3.x

So clearly someone is going to have to add some regex magic into their packaging.

Revision history for this message
Marten de Vries (marten-de-vries) wrote :

My preference would be to follow Ubuntu here for the main source, since that's what Cas and me are using. Agreed we need a fix for Arch in 3.0 though.

Revision history for this message
Marten de Vries (marten-de-vries) wrote :

The arch packaging script now changes the shebang line on the fly.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.