Recently we get enormous amount of spam registration. We have closed the registration for new members, sorry...
0 votes
593 views
by

Hej!

I try to use rivergis for preparing the inpu data in hec-ras. First I created a database and the extensions as described, but when I open rivergis-Plug in and select the created database I always get this error:

Traceback (most recent call last):
  File "/home/amrei-linux/.qgis2/python/plugins/rivergis/rivergis.py", line 268, in connChanged
    self.rdb.connect_pg()
  File "/home/amrei-linux/.qgis2/python/plugins/rivergis/river_database.py", line 81, in connect_pg
    self.rgis.addInfo(msg)
  File "/home/amrei-linux/.qgis2/python/plugins/rivergis/rivergis.py", line 195, in addInfo
    self.ui.textEdit.append(text)
TypeError: QTextEdit.append(QString): argument 1 has unexpected type 'OperationalError'


Python-Version:
2.7.6 (default, Jun 22 2015, 18:01:27)
[GCC 4.8.2]


QGIS-Version:
2.8.1-Wien Wien, exported

Python-Pfad: ['/usr/share/qgis/python/plugins/processing', '/usr/share/qgis/python', u'/home/amrei-linux/.qgis2/python', u'/home/amrei-linux/.qgis2/python/plugins', '/usr/share/qgis/python/plugins', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages/PILcompat', '/usr/lib/python2.7/dist-packages/gtk-2.0', '/usr/lib/pymodules/python2.7', '/usr/lib/python2.7/dist-packages/ubuntu-sso-client', '/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode', u'/home/amrei-linux/.qgis2//python', '/usr/share/qgis/python/plugins/fTools/tools']

Can you help me with that?

1 Answer

0 votes
by (3.8k points)
Amgeda,

Could you check the suggestions given in:

https://q2a.rivergis.com/81/problem-with-db-connection

and let us know if you can successfully connect to your database from DB Manager?
Welcome to RiverGIS Q&A, where you can ask questions and receive answers from other members of the community.

Visit rivergis.com for documentation and general info about the QGIS plugin.

Categories

...