Bug 203798

Summary: [PATCH] games/py-mnemosyne: Fix runtime error
Product: Ports & Packages Reporter: tkato432
Component: Individual Port(s)Assignee: Mathieu Arnold <mat>
Status: Closed FIXED    
Severity: Affects Only Me CC: aeuii, python
Priority: --- Keywords: needs-qa, patch
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
games_py-mnemosyne.diff
none
games_py-mnemosyne.diff
none
games_py-mnemosyne.diff
none
games_py-mnemosyne.diff none

Description tkato432 2015-10-15 18:31:35 UTC
Created attachment 162088 [details]
games_py-mnemosyne.diff
Comment 1 Martin Wilke freebsd_committer freebsd_triage 2015-12-05 09:34:27 UTC
Take.
Comment 2 tkato432 2015-12-08 10:30:06 UTC
Created attachment 163982 [details]
games_py-mnemosyne.diff

Version 2.3.5 has been released.
Comment 3 tkato432 2015-12-09 09:30:07 UTC
Created attachment 164009 [details]
games_py-mnemosyne.diff

Chase r403358
Comment 4 aeuii 2016-02-16 14:33:16 UTC
I have a runtime error on 10.2-RELEASE-p12 too [1].

Could it be fixed by the patch?


[1]

Traceback (innermost last):
  File "/usr/local/bin/mnemosyne", line 191, in <module>
    debug_file=options.debug_file)
  File "/usr/local/lib/python2.7/site-packages/mnemosyne/libmnemosyne/__init__.py", line 174, in initialise
    self.register_components()
  File "/usr/local/lib/python2.7/site-packages/mnemosyne/libmnemosyne/__init__.py", line 244, in register_components
    exec("from %s import %s" % (module_name, class_name))
  File "<string>", line 1, in <module>
  File "/usr/local/lib/python2.7/site-packages/mnemosyne/pyqt_ui/statistics_wdgts_plotting.py", line 7, in <module>
    from matplotlib import use
  File "/usr/local/lib/python2.7/site-packages/matplotlib/__init__.py", line 122, in <module>
    from matplotlib.cbook import is_string_like, mplDeprecation, dedent, get_label
  File "/usr/local/lib/python2.7/site-packages/matplotlib/cbook.py", line 32, in <module>
    import numpy as np
  File "/usr/local/lib/python2.7/site-packages/numpy/__init__.py", line 180, in <module>
    from . import add_newdocs
  File "/usr/local/lib/python2.7/site-packages/numpy/add_newdocs.py", line 13, in <module>
    from numpy.lib import add_newdoc
  File "/usr/local/lib/python2.7/site-packages/numpy/lib/__init__.py", line 8, in <module>
    from .type_check import *
  File "/usr/local/lib/python2.7/site-packages/numpy/lib/type_check.py", line 11, in <module>
    import numpy.core.numeric as _nx
  File "/usr/local/lib/python2.7/site-packages/numpy/core/__init__.py", line 14, in <module>
    from . import multiarray
 ImportError: /lib/libgcc_s.so.1: version GCC_4.6.0 required by /usr/local/lib/gcc48/libgfortran.so.3 not found
Comment 5 aeuii 2016-02-16 14:35:24 UTC
(In reply to aeuii from comment #4)

My current workaround is to start mnemosyne in the following way:

LD_LIBRARY_PATH=/usr/local/lib/gcc48 mnemosyne
Comment 6 tkato432 2016-02-16 15:20:10 UTC
Oh, it seems recent update of math/py-matplotlib affects this port.
I wiil take a look at that ASAP.
Comment 7 tkato432 2016-02-16 18:30:10 UTC
Created attachment 167086 [details]
games_py-mnemosyne.diff

It is certain that passing LD_LIBRARY_PATH of fortran lib is necessary
for all FreeBSD versions.
Comment 8 Martin Wilke freebsd_committer freebsd_triage 2016-03-14 02:36:04 UTC
back to pool
Comment 9 commit-hook freebsd_committer freebsd_triage 2016-03-14 14:25:37 UTC
A commit references this bug:

Author: mat
Date: Mon Mar 14 14:24:38 UTC 2016
New revision: 411078
URL: https://svnweb.freebsd.org/changeset/ports/411078

Log:
  Fix runtime error.

  PR:		203798
  Submitted by:	tkato432 yahoo com
  Sponsored by:	Absolight

Changes:
  head/games/py-mnemosyne/Makefile