Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export Flow Graph #15

Open
ghost opened this issue Feb 10, 2018 · 1 comment
Open

Export Flow Graph #15

ghost opened this issue Feb 10, 2018 · 1 comment

Comments

@ghost
Copy link

ghost commented Feb 10, 2018

Copy-pasting the temporal graph works (e.g. to have the timeseries in Excel.). Same thing for the "Flow" tool does not work. Problem is reproducible with different QGIS Versions. Any easy fix for that?
(Plugin version 1.0.1? At least according to the QGIS Plugin Repository)

An error has occurred while executing Python code: 

NameError: global name 'QApplication' is not defined 
Traceback (most recent call last):
  File "C:/Users/%USER%/.qgis2/python/plugins\PostTelemac\meshlayertools\meshlayer_flow_tool.py", line 353, in copygraphclipboard
    self.clipboard = QApplication.clipboard()
NameError: global name 'QApplication' is not defined


Python version: 2.7.5 (default, May 15 2013, 22:44:16) [MSC v.1500 64 bit (AMD64)] 
QGIS version: 2.18.14 Las Palmas, ff83b9a479
@ghost
Copy link
Author

ghost commented Feb 10, 2018

Found a quick fix: It works if I insert the following line before line 353 in meshlayer_flow_tool.py

from qgis.PyQt.QtGui import QApplication

Just copy-pasted it from the working temporal graph python file, as I have a "rather limited" understanding of Python. So maybe somebody can add this (at the proper position possibly) to the main code?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants