Code Monkey home page Code Monkey logo

Comments (13)

michaelbynum avatar michaelbynum commented on May 29, 2024 1

from wntr.

michaelbynum avatar michaelbynum commented on May 29, 2024 1

No apologies necessary. We are happy to (at least try) to help. We appreciate you bringing the matplotlib dependency issue to our attention.

from wntr.

kaklise avatar kaklise commented on May 29, 2024

Matplotlib should be a optional dependency and we have that issue fixed on a different branch. I'll get that update pushed to USEPA/master as soon as possible. Thanks!

from wntr.

samhatchett avatar samhatchett commented on May 29, 2024

in addition to it being documented as an optional dependency, I've also found that pyplot doesn't import in the 64-bit Python interpreter. No issues using 32-bit - so that was also a complicating factor in the above. thanks!

from wntr.

kaklise avatar kaklise commented on May 29, 2024

We are using 64-bit Python without issue. Travis CI also tests against 64-bit Python. It might be an issue with the matplotlib installation. Anaconda installers are generally seemless, but sometimes issues crop up. Travis is currently testing against Matlab 2.1.1, but we have not had issues with older versions of Matplotlib (going back to 1.5.1).

from wntr.

kaklise avatar kaklise commented on May 29, 2024

That should not be a problem. I'm working on a windows machine.

from wntr.

dbhart avatar dbhart commented on May 29, 2024

I have tested on 64-bit Python on Mac and we test travis on 64-bit Python on Linux and kaklise uses 64-bit windows Python. That said, it may depend on what version of conda and/or base python mixture you are using. Can you tell us that info?

from wntr.

kaklise avatar kaklise commented on May 29, 2024

PR #36 removes the hard dependency on matplotlib. We'll still want to figure out the issue above so you can generate graphics.

from wntr.

samhatchett avatar samhatchett commented on May 29, 2024

sorry - I'm on a Mac. matplotlib v2.0.2

from wntr.

dbhart avatar dbhart commented on May 29, 2024

from wntr.

samhatchett avatar samhatchett commented on May 29, 2024

I may have some configuration issues on my machine (perhaps missing some libs like libpng), but it wouldn't explain the weirdness with the Anaconda3 docker image. In any case, that's not the primary concern of this project.

sorry to stir up trouble here related to other-party packages. the main point of the issue is that matplotlib was a hard dependency for using wntr, which disagreed with the docs.

I was trying to run WNTR in a dockerized environment, and having some trouble picking a base image. Finally settled on the Python3 base, installing corequisites via pip.

But for those interested:

$ docker run -it continuumio/anaconda3:latest python -c '\
> import matplotlib; \
> import matplotlib.pyplot as plt; \
> '
Traceback (most recent call last):
  File "<string>", line 3, in <module>
  File "/opt/conda/lib/python3.6/site-packages/matplotlib/pyplot.py", line 113, in <module>
    _backend_mod, new_figure_manager, draw_if_interactive, _show = pylab_setup()
  File "/opt/conda/lib/python3.6/site-packages/matplotlib/backends/__init__.py", line 60, in pylab_setup
    [backend_name], 0)
  File "/opt/conda/lib/python3.6/site-packages/matplotlib/backends/backend_qt5agg.py", line 16, in <module>
    from .backend_qt5 import (
  File "/opt/conda/lib/python3.6/site-packages/matplotlib/backends/backend_qt5.py", line 18, in <module>
    import matplotlib.backends.qt_editor.figureoptions as figureoptions
  File "/opt/conda/lib/python3.6/site-packages/matplotlib/backends/qt_editor/figureoptions.py", line 20, in <module>
    import matplotlib.backends.qt_editor.formlayout as formlayout
  File "/opt/conda/lib/python3.6/site-packages/matplotlib/backends/qt_editor/formlayout.py", line 56, in <module>
    from matplotlib.backends.qt_compat import QtGui, QtWidgets, QtCore
  File "/opt/conda/lib/python3.6/site-packages/matplotlib/backends/qt_compat.py", line 137, in <module>
    from PyQt5 import QtCore, QtGui, QtWidgets
ImportError: libGL.so.1: cannot open shared object file: No such file or directory

... which is probably unexpected.

from wntr.

dbhart avatar dbhart commented on May 29, 2024

from wntr.

kaklise avatar kaklise commented on May 29, 2024

closed by PR #36.

from wntr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.