Comments (13)
from wntr.
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.
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.
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.
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.
That should not be a problem. I'm working on a windows machine.
from wntr.
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.
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.
sorry - I'm on a Mac. matplotlib v2.0.2
from wntr.
from wntr.
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.
from wntr.
closed by PR #36.
from wntr.
Related Issues (20)
- Epaneet dylib not available for Darwin HOT 2
- wntr.network.io.from_gis does not capture vertices
- `network_animation` does not behave as intended in Jupyter Notebooks HOT 1
- POSSIBILITY OF NEGATIVE PRESSURE HOT 5
- Questions about optimal scheduling of pumping stations HOT 1
- runnin the program HOT 3
- wntr.network.options has some abnormal annotation contents HOT 1
- Writing an inp file 'self' argument error message HOT 2
- Create a control object or rule object from text input HOT 5
- Get the reactions tab in the inp file from a water network instance HOT 1
- Add PBV support to [VALVES] section
- Generating Interactive leaflet networks HOT 7
- Pipe status problem HOT 4
- AttributeError: 'WaterNetworkModel' object has no attribute 'write_inpfile' HOT 3
- Differences with my epanet from zero model and inp from wntr model HOT 4
- Values in [DEMANDS] section are repetead and others are missing HOT 8
- Unable to remove leaks from network model HOT 3
- Not able to save the network with modified elements as an INP file. HOT 2
- EPANET Error 110 HOT 1
- leaflet map popups HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wntr.