From owner-freebsd-questions@freebsd.org Fri Jul 17 19:22:12 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A270E9A20A6 for ; Fri, 17 Jul 2015 19:22:12 +0000 (UTC) (envelope-from bah@bananmonarki.se) Received: from feeder.usenet4all.se (1-1-1-38a.far.sth.bostream.se [82.182.32.53]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 0DAAC1CC4 for ; Fri, 17 Jul 2015 19:22:10 +0000 (UTC) (envelope-from bah@bananmonarki.se) Received: from testbox.news4all.se (testbox.usenet4all.se [10.0.0.3]) by feeder.usenet4all.se (8.13.1/8.13.1) with ESMTP id t6HJM1JZ066038 for ; Fri, 17 Jul 2015 21:22:02 +0200 (CEST) (envelope-from bah@bananmonarki.se) Message-ID: <55A955E1.9070601@bananmonarki.se> Date: Fri, 17 Jul 2015 21:22:09 +0200 From: Bernt Hansson User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Re: Python and matplotlib problems SOLVED. References: <55A7CFFC.4010900@bananmonarki.se> In-Reply-To: <55A7CFFC.4010900@bananmonarki.se> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Jul 2015 19:22:12 -0000 On 2015-07-16 17:38, Bernt Hansson wrote: > Hello list. > > Trying to get a python program to work on 10.1. > Got it working for a while on 9.3 but it stopped there too. > > This is the error I get when moving /lib/libgcc_s.so.1 out. > > > > python FlatCAM.py > EndFontMetrics0 ; N L55896 ; B 0 0 1000 1000 ;0 ;ted. All Rights > Reserved.. > EndFontMetricsPCC z 0 0 ; PCC caron 37 0 ;83 0 ; 0 ; 0 ; 0 ;ights > Reserved.Shannon is a trademark of Agfa Corporation. > Traceback (most recent call last): > File "FlatCAM.py", line 3, in > from FlatCAMApp import App > File "/usr/home/bernt/vebbnerladdningar/flatcam/FlatCAMApp.py", line > 18, in > from ObjectCollection import * > File > "/usr/home/bernt/vebbnerladdningar/flatcam/ObjectCollection.py", line > 2, in > from FlatCAMObj import * > File "/usr/home/bernt/vebbnerladdningar/flatcam/FlatCAMObj.py", line > 5, in > from camlib import * > File "/usr/home/bernt/vebbnerladdningar/flatcam/camlib.py", line 15, > in > from matplotlib.figure import Figure > File "/usr/local/lib/python2.7/site-packages/matplotlib/figure.py", > line 38, in > import matplotlib.colorbar as cbar > File > "/usr/local/lib/python2.7/site-packages/matplotlib/colorbar.py", line > 34, in > import matplotlib.collections as collections > File > "/usr/local/lib/python2.7/site-packages/matplotlib/collections.py", > line 27, in > import matplotlib.backend_bases as backend_bases > File > "/usr/local/lib/python2.7/site-packages/matplotlib/backend_bases.py", > line 56, in > import matplotlib.textpath as textpath > File > "/usr/local/lib/python2.7/site-packages/matplotlib/textpath.py", line > 19, in > import matplotlib.font_manager as font_manager > File > "/usr/local/lib/python2.7/site-packages/matplotlib/font_manager.py", > line 1415, in > _rebuild() > File > "/usr/local/lib/python2.7/site-packages/matplotlib/font_manager.py", > line 1400, in _rebuild > fontManager = FontManager() > File > "/usr/local/lib/python2.7/site-packages/matplotlib/font_manager.py", > line 1059, in __init__ > self.afmlist = createFontList(self.afmfiles, fontext='afm') > File > "/usr/local/lib/python2.7/site-packages/matplotlib/font_manager.py", > line 568, in createFontList > font = afm.AFM(fh) > File "/usr/local/lib/python2.7/site-packages/matplotlib/afm.py", > line 346, in __init__ > parse_afm(fh) > File "/usr/local/lib/python2.7/site-packages/matplotlib/afm.py", > line 335, in parse_afm > doptional = _parse_optional(fh) > File "/usr/local/lib/python2.7/site-packages/matplotlib/afm.py", > line 317, in _parse_optional > d[key] = optional[key](fh) > File "/usr/local/lib/python2.7/site-packages/matplotlib/afm.py", > line 250, in _parse_kern_pairs > c1, c2, val = _to_str(vals[1]), _to_str(vals[2]), _to_float(vals[3]) > ValueError: could not convert string to float: B > > > At the beginning this was the error > > > python FlatCAM.py > Traceback (most recent call last): > File "FlatCAM.py", line 3, in > from FlatCAMApp import App > File > "/usr/home/bernt/vebbnerladdningar/FlatCAM-8.3/FlatCAM-8.3/FlatCAMApp.py", > line 18, in > from ObjectCollection import * > File > "/usr/home/bernt/vebbnerladdningar/FlatCAM-8.3/FlatCAM-8.3/ObjectCollection.py", > line 2, in > from FlatCAMObj import * > File > "/usr/home/bernt/vebbnerladdningar/FlatCAM-8.3/FlatCAM-8.3/FlatCAMObj.py", > line 5, in > from camlib import * > File > "/usr/home/bernt/vebbnerladdningar/FlatCAM-8.3/FlatCAM-8.3/camlib.py", > line 12, in > from numpy import arctan2, Inf, array, sqrt, pi, ceil, sin, cos, > dot, float32, \ > File "/usr/local/lib/python2.7/site-packages/numpy/__init__.py", > line 170, in > from . import add_newdocs > File "/usr/local/lib/python2.7/site-packages/numpy/add_newdocs.py", > line 13, in > from numpy.lib import add_newdoc > File "/usr/local/lib/python2.7/site-packages/numpy/lib/__init__.py", > line 18, in > from .polynomial import * > File > "/usr/local/lib/python2.7/site-packages/numpy/lib/polynomial.py", line > 19, in > from numpy.linalg import eigvals, lstsq, inv > File > "/usr/local/lib/python2.7/site-packages/numpy/linalg/__init__.py", > line 51, in > from .linalg import * > File > "/usr/local/lib/python2.7/site-packages/numpy/linalg/linalg.py", line > 29, in > from numpy.linalg import lapack_lite, _umath_linalg > ImportError: /lib/libgcc_s.so.1: version GCC_4.6.0 required by > /usr/local/lib/gcc48/libgfortran.so.3 not found > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" > >