pgAdmin 4 v3.0 Query Tool Initialize Error

你。 提交于 2020-01-02 00:59:12

问题


I recently got a new laptop and downloaded pgAdmin 4 v3.0. Before now, I had been running pgAdmin 4 v2.0 with no issues. However, now whenever I try to open the Query Tool (just by going through the drop down Tools menu), I receive the error message "Query Tool Initialize Error". The Query Tool worked for two or three queries after the initial error message, but has been returning the error message whenever selected in the days since then. I am able to create and edit tables and views, but only by right clicking the icons on the left-hand side of the screen. I tried uninstalling and reinstalling pgAdmin to no effect.

Has anyone encountered this issue before?

Query Tool Initialize Error


回答1:


In Ubuntu 16.04 I updated my pgAdmin 4 version 2.1 to 3.0 and saw the same thing when attempting to open the Query Tool through the drop down menus. While this is not a fix, instead of browsing to http://12.70.0.1:5050 I changed the URL to http://localhost:5050. Then I was able to use the Query Tool via the drop down menus.

Edit: What I did was edit the pgAdmin4/lib/python3.5/site-packages/pgadmin4/config.py file by updating the line:

DEFAULT_SERVER = '127.0.0.1'

to

DEFAULT_SERVER = 'localhost'

Now when I open pgAdmin, the Query Tool works accordingly.




回答2:


Try resetting your layout, under the File entry in the top menu. I suspect that there's something in the layout settings saved under v2.0 that's incompatible with the v3.0 release.



来源:https://stackoverflow.com/questions/50355462/pgadmin-4-v3-0-query-tool-initialize-error

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!