Opened 3 years ago

Closed 3 years ago

#56176 closed defect (duplicate)

py27-pyface @5.1.0_0+pyqt4: missing py-pygemnts as a dependency?

Reported by: MoogHub Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.4.2
Keywords: Cc:
Port: py-pyface



I've encountered the following error with "py27-pyface @5.1.0_0+pyqt4":

  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/mayavi/core/", line 21, in <module>
    from pyface import api as pyface
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pyface/", line 34, in <module>
    from .python_editor import PythonEditor
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pyface/", line 21, in <module>
    PythonEditor = toolkit_object('python_editor:PythonEditor')
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pyface/", line 129, in toolkit_object
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pyface/ui/qt4/", line 27, in <module>
    from pyface.ui.qt4.code_editor.code_widget import AdvancedCodeWidget
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pyface/ui/qt4/code_editor/", line 23, in <module>
    from .pygments_highlighter import PygmentsHighlighter
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pyface/ui/qt4/code_editor/", line 14, in <module>
    from pygments.lexer import RegexLexer, _TokenType, Text, Error
ImportError: No module named pygments.lexer

Could it be that there's a missing dependency in "py-pyface"?

The following patch to the port file fixed that bug for me:

--- Portfile.orig	2018-03-29 11:46:10.000000000 +0200
+++ Portfile	2018-03-29 11:49:53.000000000 +0200
@@ -36,6 +36,7 @@
     variant pyqt4 description "Qt backend using PyQt4" {
         depends_lib-append  port:py${python.version}-pyqt4
+        depends_lib-append  port:py${python.version}-pygments
     variant pyside description "Qt backend using PySide" {

Bw, D.

Attachments (1)

patch-pygents-dep-fix.diff (373 bytes) - added by MoogHub 3 years ago.
Patch: Portfile (py-pyface).

Download all attachments as: .zip

Change History (4)

Changed 3 years ago by MoogHub

Attachment: patch-pygents-dep-fix.diff added

Patch: Portfile (py-pyface).

comment:1 Changed 3 years ago by MoogHub

Cc: MoogHub added

comment:2 Changed 3 years ago by MoogHub

This ticket is obsolete, please go to #56178.

comment:3 Changed 3 years ago by mf2k (Frank Schima)

Cc: MoogHub removed
Keywords: dependency bug missing error removed
Resolution: duplicate
Status: newclosed
Note: See TracTickets for help on using tickets.