[Bug 200920] editors/leo: does not start after pkg install / ValueError exception is thrown
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Tue Jun 16 19:10:11 UTC 2015
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=200920
Bug ID: 200920
Summary: editors/leo: does not start after pkg install /
ValueError exception is thrown
Product: Ports & Packages
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: Individual Port(s)
Assignee: freebsd-ports-bugs at FreeBSD.org
Reporter: hippodriver at codunix.org
I am running FreeBSD 10.1 Release:
/-------------
root at gandalf:/usr/ports/editors/leo # freebsd-version
10.1-RELEASE-p12
\-------------
Installed leo package is:
/--------------
root at gandalf:/usr/ports/editors/leo # pkg info leo
leo-5.1_1
Name : leo
Version : 5.1_1
Installed on : Tue Jun 16 19:01:20 CEST 2015
Origin : editors/leo
Architecture : freebsd:10:*
Prefix : /usr/local
Categories : python editors
Licenses : MIT
Maintainer : ports at FreeBSD.org
WWW : http://leoeditor.com/
Comment : Advanced outline editor for programmers
Options :
DOCS : on
PYENCHANT : off
Annotations :
repo_type : binary
repository : FreeBSD
Flat size : 38.9MiB
Description :
* Leo is a programmer's editor and a flexible browser for projects,
[...]
\-----------
After installing the leo package by "pkg install leo" the program can not be
started because a ValueError exception is thrown:
/-----------------
[mickraus at gandalf ~]$ leo
Traceback (most recent call last):
File "/usr/local/bin/leo", line 5, in <module>
from pkg_resources import load_entry_point
File "/usr/local/lib/python2.7/site-packages/pkg_resources.py", line 2876, in
<module>
working_set = WorkingSet._build_master()
File "/usr/local/lib/python2.7/site-packages/pkg_resources.py", line 449, in
_build_master
ws.require(__requires__)
File "/usr/local/lib/python2.7/site-packages/pkg_resources.py", line 745, in
require
needed = self.resolve(parse_requirements(requirements))
File "/usr/local/lib/python2.7/site-packages/pkg_resources.py", line 603, in
resolve
requirements = list(requirements)[::-1]
File "/usr/local/lib/python2.7/site-packages/pkg_resources.py", line 2721, in
parse_requirements
"version spec")
File "/usr/local/lib/python2.7/site-packages/pkg_resources.py", line 2686, in
scan_list
raise ValueError(msg, line, "at", line[p:])
ValueError: ('Expected version spec in', 'leo===5.1-final', 'at',
'===5.1-final')
\-------------------
I fixed the issue locally by replacing "===" with "==":
/-----------------
root at gandalf:/usr/ports/editors/leo # diff -u /usr/local/bin/leo_old
/usr/local/bin/leo
--- /usr/local/bin/leo_old 2015-06-16 20:42:55.000000000 +0200
+++ /usr/local/bin/leo 2015-06-16 20:45:07.000000000 +0200
@@ -1,10 +1,10 @@
#!/usr/local/bin/python2.7
-# EASY-INSTALL-ENTRY-SCRIPT: 'leo===5.1-final','gui_scripts','leo'
-__requires__ = 'leo===5.1-final'
+# EASY-INSTALL-ENTRY-SCRIPT: 'leo==5.1-final','gui_scripts','leo'
+__requires__ = 'leo==5.1-final'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
- load_entry_point('leo===5.1-final', 'gui_scripts', 'leo')()
+ load_entry_point('leo==5.1-final', 'gui_scripts', 'leo')()
)
\-------------------
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list