From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Jun 16 19:10:11 2015 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8F7174B2 for ; Tue, 16 Jun 2015 19:10:11 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 785CAA11 for ; Tue, 16 Jun 2015 19:10:11 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id t5GJABBn015367 for ; Tue, 16 Jun 2015 19:10:11 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 200920] editors/leo: does not start after pkg install / ValueError exception is thrown Date: Tue, 16 Jun 2015 19:10:11 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: hippodriver@codunix.org X-Bugzilla-Status: New X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-ports-bugs@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Jun 2015 19:10:11 -0000 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@FreeBSD.org Reporter: hippodriver@codunix.org I am running FreeBSD 10.1 Release: /------------- root@gandalf:/usr/ports/editors/leo # freebsd-version 10.1-RELEASE-p12 \------------- Installed leo package is: /-------------- root@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@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@gandalf ~]$ leo Traceback (most recent call last): File "/usr/local/bin/leo", line 5, in from pkg_resources import load_entry_point File "/usr/local/lib/python2.7/site-packages/pkg_resources.py", line 2876, in 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@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.