-
-
Notifications
You must be signed in to change notification settings - Fork 18
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
Cant connect to database #133
Comments
Hi @moritzsproll . This error is probably because you are using the version of the plugin at QGIS-hub with pgRouting v3 (there are some incompatibilities). We are preparing a new version these days so you can wait for this new upgrade to test again (the new version probably will be available this week). |
@cayetanobv Thanks a lot for your help ! Can I get the updated version out of the QGIS plugin "store" or should I download it manually from github and put it in the plugins folder of QGIS ? |
You can take the code from github for now and test it. Soon you can have the new version in plugin hub. Remember to change folder name to |
@cayetanobv i downloaded the plugin and renamed the folder, but I am getting an error. Where exactly should i change the name to pgRoutingLayer ? Thanks for your help ! |
@cayetanobv i almost tried everything, but im still getting this error. I think i named the folder correctly. Everything looks similar to the directory of other installed plugins. |
@cayetanobv : I think it is not a bug. Well, database configuration may have some caveats, and so far I do not have any trouble for operating pgRoutingLayer. Here is my environment: I use QGIS 3.16.4 Hannover (LTR) and pgRoutingLayer 3.0.1, to be connected with PostgreSQL 13 + PostGIS 3.1.0. When configuring database connection via Data Source Manager, make sure DB username and password are stored. I noticed that whenever I stored them, and refresh the connection list in pgRoutingLayer, the database connection would appear successfully. If I create another connection and not store the username and password, it will never be listed in pgRoutingLayer. I hope this will help. |
Addition: Perhaps it is closely related to this #44 issue. |
After having stored username and passaword I ve got "definition of service "NULL" not found" |
Connection is OK with pgRoutingLayer 3.0.2 However none of the functions work with directed option enabled (pgrouting 3.3.0 , osm2pgrouting 2.3.8.1)
Thanks |
@jonath35 Okay, thanks for confirmation! About directed option issue, I will check it a bit. |
I have a connection to the database with postgis, but i cant connect the database with pgrouting. (refer to screenshots) The field where i should put the database is grey. The SQL-Query in the DB Manager "SELECT pgr_version from pgr_version();" is giving me a result. My version is 3.00-rc1.
The python console is giving that error if i click the green reload button:
File "C:/Users/User/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\pgRoutingLayer\pgRoutingLayer.py", line 1255, in openHelp
db = self.actionsDb[dbname].connect()
KeyError: ''
Im just a starter with pgrouting, so excuse me if it's not a bug and maybe help me to solve my problem :D
The text was updated successfully, but these errors were encountered: