Python and matplotlib problems
Bernt Hansson
bah at bananmonarki.se
Thu Jul 16 15:38:14 UTC 2015
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 <module>
from FlatCAMApp import App
File "/usr/home/bernt/vebbnerladdningar/flatcam/FlatCAMApp.py", line
18, in <module>
from ObjectCollection import *
File "/usr/home/bernt/vebbnerladdningar/flatcam/ObjectCollection.py",
line 2, in <module>
from FlatCAMObj import *
File "/usr/home/bernt/vebbnerladdningar/flatcam/FlatCAMObj.py", line
5, in <module>
from camlib import *
File "/usr/home/bernt/vebbnerladdningar/flatcam/camlib.py", line 15,
in <module>
from matplotlib.figure import Figure
File "/usr/local/lib/python2.7/site-packages/matplotlib/figure.py",
line 38, in <module>
import matplotlib.colorbar as cbar
File "/usr/local/lib/python2.7/site-packages/matplotlib/colorbar.py",
line 34, in <module>
import matplotlib.collections as collections
File
"/usr/local/lib/python2.7/site-packages/matplotlib/collections.py", line
27, in <module>
import matplotlib.backend_bases as backend_bases
File
"/usr/local/lib/python2.7/site-packages/matplotlib/backend_bases.py",
line 56, in <module>
import matplotlib.textpath as textpath
File "/usr/local/lib/python2.7/site-packages/matplotlib/textpath.py",
line 19, in <module>
import matplotlib.font_manager as font_manager
File
"/usr/local/lib/python2.7/site-packages/matplotlib/font_manager.py",
line 1415, in <module>
_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 <module>
from FlatCAMApp import App
File
"/usr/home/bernt/vebbnerladdningar/FlatCAM-8.3/FlatCAM-8.3/FlatCAMApp.py",
line 18, in <module>
from ObjectCollection import *
File
"/usr/home/bernt/vebbnerladdningar/FlatCAM-8.3/FlatCAM-8.3/ObjectCollection.py",
line 2, in <module>
from FlatCAMObj import *
File
"/usr/home/bernt/vebbnerladdningar/FlatCAM-8.3/FlatCAM-8.3/FlatCAMObj.py",
line 5, in <module>
from camlib import *
File
"/usr/home/bernt/vebbnerladdningar/FlatCAM-8.3/FlatCAM-8.3/camlib.py",
line 12, in <module>
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 <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 18, in <module>
from .polynomial import *
File
"/usr/local/lib/python2.7/site-packages/numpy/lib/polynomial.py", line
19, in <module>
from numpy.linalg import eigvals, lstsq, inv
File
"/usr/local/lib/python2.7/site-packages/numpy/linalg/__init__.py", line
51, in <module>
from .linalg import *
File "/usr/local/lib/python2.7/site-packages/numpy/linalg/linalg.py",
line 29, in <module>
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
More information about the freebsd-questions
mailing list