Failure to launch: corrupted python script: /usr/bin/cherrytree/usr/bin/cherrytree

Bug #1738036 reported by David A. Cobb
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cherrytree (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

** Pasted from emacs shell buffer: **
bash $ aptitude show cherrytree
Package: cherrytree
Version: 0.37.6-1
State: installed
Automatically installed: no
Priority: optional
Section: universe/editors
Maintainer: Ubuntu Developers <email address hidden>
Architecture: all
Uncompressed Size: 2756 k
Depends: p7zip-full, python-appindicator, python-dbus, python-enchant,
         python-chardet, python-gtk2 (>= 2.16), python-gtksourceview2,
         python:any (< 2.8), python:any (>= 2.7.5-5~)
Description: hierarchical note taking application
 CherryTree is a hierarchical note taking application, featuring rich text,
 syntax highlighting, images handling, hyperlinks, import/export with support
 for multiple formats, support for multiple languages, and more.
Homepage: http://www.giuspen.com/cherrytree/

superbiskit@BiskitHome:~
bash $ cherrytree &
[1] 23856
superbiskit@BiskitHome:~
bash $ File "/usr/bin/cherrytree", line 66
    print "cherrytree [filepath [-n nodename][-x export_to_html_dir]]"
                                                                     ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(print "cherrytree [filepath [-n nodename][-x export_to_html_dir]]")?
Original exception was:
  File "/usr/bin/cherrytree", line 66
    print "cherrytree [filepath [-n nodename][-x export_to_html_dir]]"
                                                                     ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(print "cherrytree [filepath [-n nodename][-x export_to_html_dir]]")?

[1]+ Exit 1 cherrytree
****
This is one of (at least) two failures appearing to involve "corrupted" python scripts.

ProblemType: Bug
DistroRelease: Ubuntu 17.10
Package: cherrytree 0.37.6-1
ProcVersionSignature: Ubuntu 4.13.0-19.22-generic 4.13.13
Uname: Linux 4.13.0-19-generic x86_64
ApportVersion: 2.20.7-0ubuntu3.6
Architecture: amd64
CurrentDesktop: LXDE
Date: Wed Dec 13 11:10:18 2017
InstallationDate: Installed on 2017-08-29 (106 days ago)
InstallationMedia: Lubuntu 17.04 "Zesty Zapus" - Release amd64 (20170412)
PackageArchitecture: all
SourcePackage: cherrytree
UpgradeStatus: Upgraded to artful on 2017-10-25 (49 days ago)

Revision history for this message
David A. Cobb (superbiskit) wrote :
Revision history for this message
David A. Cobb (superbiskit) wrote :
Revision history for this message
David A. Cobb (superbiskit) wrote :

BAHHH! DEPENDS python:any (< 2.8), and I have set python3 as default python.

Revision history for this message
David A. Cobb (superbiskit) wrote :

Corrected this by changing Sha-Bang on /usr/bin/cherrytree
-- #! /usr/bin/python
++ #! /usr/bin/python2.7

That would seem to make this a policy issue. Should Python2.x dependencies be specific within the package? Should package depend on alternatives setting, or does that belong to the site administrator?

Revision history for this message
Mr. Asif Mohammad Mollah (mrasif) wrote :

I have opened bash file of cherrytree
$sudo vim /usr/bin/cherrytree
Then modify
#!/usr/bin/python
to
#!/usr/bin/python2.7

2.7 is a version of python.

It fixed this issue.

Revision history for this message
Rolf Leggewie (r0lf) wrote :

Unfortunately, python3 as default is not supported prior to focal.

https://irclogs.ubuntu.com/2021/02/16/#ubuntu-devel.html#t10:29

Changed in cherrytree (Ubuntu):
status: New → Invalid
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.