Open morvan68 opened 3 years ago
Sorry for the late reply,
If anyone has this issue in the future, Denis has some fixes for this, you'll need to use an older version of matplotlib: https://github.com/wmpg/WesternMeteorPyLib#importerror-cannot-import-name-dedent-from-matplotlibcbook-error
error importing dedent from basemap see https://github.com/matplotlib/basemap/issues/494 when installing wmpg, basemap from conda-forge is too old/superceded, and clashes with matplotlib version? fixed it with a hack of editing basemap/proj.py, to read: from inspect import cleandoc as dedent
trace: (wmpl) martin@work-desktop-debian:~/uwo/Supracenter$ python -m supra.bam Matplotlib is building the font cache; this may take a moment. Traceback (most recent call last): File "/home/martin/miniconda2/envs/wmpl/lib/python3.7/runpy.py", line 193, in _run_module_as_main "main", mod_spec) File "/home/martin/miniconda2/envs/wmpl/lib/python3.7/runpy.py", line 85, in _run_code exec(code, run_globals) File "/home/martin/uwo/Supracenter/supra/bam.py", line 7, in
from supra.GUI.Dialogs.SolutionGUI import SolutionGUI
File "/home/martin/uwo/Supracenter/supra/GUI/Dialogs/SolutionGUI.py", line 45, in
from supra.Fireballs.SeismicTrajectory import timeOfArrival, trajSearch, estimateSeismicTrajectoryAzimuth, plotStationsAndTrajectory, waveReleasePointWindsContour
File "/home/martin/uwo/Supracenter/supra/Fireballs/SeismicTrajectory.py", line 32, in
from supra.Utils.AngleConv import loc2Geo, angle2NDE, geo2Loc, angleBetweenVect
File "/home/martin/uwo/Supracenter/supra/Utils/AngleConv.py", line 6, in
from wmpl.Utils.TrajConversions import latLonAlt2ECEF, ecef2ENU, enu2ECEF, ecef2LatLonAlt
File "/home/martin/miniconda2/envs/wmpl/lib/python3.7/site-packages/westernmeteorpylib-1.0-py3.7-linux-x86_64.egg/wmpl/init.py", line 35, in
module = loader.find_module(module_name).load_module(module_name)
File "/home/martin/miniconda2/envs/wmpl/lib/python3.7/site-packages/westernmeteorpylib-1.0-py3.7-linux-x86_64.egg/wmpl/CAMO/MarkFragments.py", line 12, in
from wmpl.Formats.Met import loadMet
File "/home/martin/miniconda2/envs/wmpl/lib/python3.7/site-packages/westernmeteorpylib-1.0-py3.7-linux-x86_64.egg/wmpl/Formats/Met.py", line 11, in
from wmpl.Formats.GenericFunctions import addSolverOptions
File "/home/martin/miniconda2/envs/wmpl/lib/python3.7/site-packages/westernmeteorpylib-1.0-py3.7-linux-x86_64.egg/wmpl/Formats/GenericFunctions.py", line 8, in
from wmpl.Trajectory.Trajectory import Trajectory
File "/home/martin/miniconda2/envs/wmpl/lib/python3.7/site-packages/westernmeteorpylib-1.0-py3.7-linux-x86_64.egg/wmpl/Trajectory/Trajectory.py", line 27, in
Basemap = importBasemap()
File "/home/martin/miniconda2/envs/wmpl/lib/python3.7/site-packages/westernmeteorpylib-1.0-py3.7-linux-x86_64.egg/wmpl/Utils/OSTools.py", line 49, in importBasemap
from mpl_toolkits.basemap import Basemap
File "/home/martin/miniconda2/envs/wmpl/lib/python3.7/site-packages/mpl_toolkits/basemap/init.py", line 50, in
from .proj import Proj
File "/home/martin/miniconda2/envs/wmpl/lib/python3.7/site-packages/mpl_toolkits/basemap/proj.py", line 6, in
from matplotlib.cbook import dedent
ImportError: cannot import name 'dedent' from 'matplotlib.cbook' (/home/martin/miniconda2/envs/wmpl/lib/python3.7/site-packages/matplotlib/cbook/init.py)
versions: (wmpl) martin@work-desktop-debian:~$ conda env export name: wmpl channels: