Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 665754 - dev-db/pgadmin4-3.3 released
Summary: dev-db/pgadmin4-3.3 released
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: Normal normal
Assignee: PgSQL Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-09-12 05:37 UTC by Arfrever Frehtes Taifersar Arahesis
Modified: 2018-10-05 10:32 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
ebuild for pgadmin-3.3 (pgadmin4-3.3.ebuild,3.45 KB, text/plain)
2018-10-02 18:10 UTC, François Valenduc
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Arfrever Frehtes Taifersar Arahesis 2018-09-12 05:37:36 UTC
dev-db/pgadmin4-3.1 was released on 2018-06-28.
dev-db/pgadmin4-3.2 was released on 2018-08-09.
dev-db/pgadmin4-3.3 was released on 2018-09-06.
Comment 1 François Valenduc 2018-10-02 15:43:05 UTC
An upgrade of pgadmin4 to 3.3 would be really useful. The update of flask to version 1.0.2 (now stable) breaks pgadmin 3.0:

[Tue Oct 02 17:29:43.503972 2018] [wsgi:error] [pid 5121] [remote 127.0.0.1:43132] mod_wsgi (pid=5121): Target WSGI script '/usr/share/pgadmin4/web/pgAdmin4.wsgi' cannot be loaded as Python module.
[Tue Oct 02 17:29:43.532818 2018] [wsgi:error] [pid 5121] [remote 127.0.0.1:43132] mod_wsgi (pid=5121): Exception occurred processing WSGI script '/usr/share/pgadmin4/web/pgAdmin4.wsgi'.
[Tue Oct 02 17:29:43.598985 2018] [wsgi:error] [pid 5121] [remote 127.0.0.1:43132] Traceback (most recent call last):
[Tue Oct 02 17:29:43.599146 2018] [wsgi:error] [pid 5121] [remote 127.0.0.1:43132]   File "/usr/share/pgadmin4/web/pgAdmin4.wsgi", line 36, in <module>
[Tue Oct 02 17:29:43.599159 2018] [wsgi:error] [pid 5121] [remote 127.0.0.1:43132]     from pgAdmin4 import app as application
[Tue Oct 02 17:29:43.599202 2018] [wsgi:error] [pid 5121] [remote 127.0.0.1:43132]   File "/usr/share/pgadmin4/web/pgAdmin4.py", line 70, in <module>
[Tue Oct 02 17:29:43.599212 2018] [wsgi:error] [pid 5121] [remote 127.0.0.1:43132]     app = create_app()
[Tue Oct 02 17:29:43.599230 2018] [wsgi:error] [pid 5121] [remote 127.0.0.1:43132]   File "/usr/share/pgadmin4/web/pgadmin/__init__.py", line 542, in create_app
[Tue Oct 02 17:29:43.599239 2018] [wsgi:error] [pid 5121] [remote 127.0.0.1:43132]     app.register_blueprint(module)
[Tue Oct 02 17:29:43.599257 2018] [wsgi:error] [pid 5121] [remote 127.0.0.1:43132]   File "/usr/lib64/python3.6/site-packages/flask/app.py", line 66, in wrapper_func
[Tue Oct 02 17:29:43.599266 2018] [wsgi:error] [pid 5121] [remote 127.0.0.1:43132]     return f(self, *args, **kwargs)
[Tue Oct 02 17:29:43.599283 2018] [wsgi:error] [pid 5121] [remote 127.0.0.1:43132]   File "/usr/lib64/python3.6/site-packages/flask/app.py", line 1115, in register_blueprint
[Tue Oct 02 17:29:43.599293 2018] [wsgi:error] [pid 5121] [remote 127.0.0.1:43132]     blueprint.register(self, options, first_registration)
[Tue Oct 02 17:29:43.599310 2018] [wsgi:error] [pid 5121] [remote 127.0.0.1:43132]   File "/usr/share/pgadmin4/web/pgadmin/utils/__init__.py", line 68, in register
[Tue Oct 02 17:29:43.599319 2018] [wsgi:error] [pid 5121] [remote 127.0.0.1:43132]     app.register_blueprint(module)
[Tue Oct 02 17:29:43.599336 2018] [wsgi:error] [pid 5121] [remote 127.0.0.1:43132]   File "/usr/lib64/python3.6/site-packages/flask/app.py", line 66, in wrapper_func
[Tue Oct 02 17:29:43.599346 2018] [wsgi:error] [pid 5121] [remote 127.0.0.1:43132]     return f(self, *args, **kwargs)
[Tue Oct 02 17:29:43.599372 2018] [wsgi:error] [pid 5121] [remote 127.0.0.1:43132]   File "/usr/lib64/python3.6/site-packages/flask/app.py", line 1115, in register_blueprint
[Tue Oct 02 17:29:43.599383 2018] [wsgi:error] [pid 5121] [remote 127.0.0.1:43132]     blueprint.register(self, options, first_registration)
[Tue Oct 02 17:29:43.599401 2018] [wsgi:error] [pid 5121] [remote 127.0.0.1:43132]   File "/usr/share/pgadmin4/web/pgadmin/utils/__init__.py", line 61, in register
[Tue Oct 02 17:29:43.599410 2018] [wsgi:error] [pid 5121] [remote 127.0.0.1:43132]     self.submodules = list(app.find_submodules(self.import_name))
[Tue Oct 02 17:29:43.599427 2018] [wsgi:error] [pid 5121] [remote 127.0.0.1:43132]   File "/usr/share/pgadmin4/web/pgadmin/__init__.py", line 64, in find_submodules
[Tue Oct 02 17:29:43.599436 2018] [wsgi:error] [pid 5121] [remote 127.0.0.1:43132]     module = import_module(module_name)
[Tue Oct 02 17:29:43.599453 2018] [wsgi:error] [pid 5121] [remote 127.0.0.1:43132]   File "/usr/lib64/python3.6/importlib/__init__.py", line 126, in import_module
[Tue Oct 02 17:29:43.599462 2018] [wsgi:error] [pid 5121] [remote 127.0.0.1:43132]     return _bootstrap._gcd_import(name[level:], package, level)
[Tue Oct 02 17:29:43.599481 2018] [wsgi:error] [pid 5121] [remote 127.0.0.1:43132]   File "/usr/share/pgadmin4/web/pgadmin/browser/server_groups/servers/__init__.py", line 1380, in <module>
[Tue Oct 02 17:29:43.599491 2018] [wsgi:error] [pid 5121] [remote 127.0.0.1:43132]     ServerNode.register_node_view(blueprint)
[Tue Oct 02 17:29:43.599509 2018] [wsgi:error] [pid 5121] [remote 127.0.0.1:43132]   File "/usr/share/pgadmin4/web/pgadmin/browser/utils.py", line 283, in register_node_view
[Tue Oct 02 17:29:43.599519 2018] [wsgi:error] [pid 5121] [remote 127.0.0.1:43132]     methods=c['methods']
[Tue Oct 02 17:29:43.599536 2018] [wsgi:error] [pid 5121] [remote 127.0.0.1:43132]   File "/usr/lib64/python3.6/site-packages/flask/blueprints.py", line 206, in add_url_rule
[Tue Oct 02 17:29:43.599556 2018] [wsgi:error] [pid 5121] [remote 127.0.0.1:43132]     assert '.' not in view_func.__name__, "Blueprint view function name should not contain dots"
[Tue Oct 02 17:29:43.599602 2018] [wsgi:error] [pid 5121] [remote 127.0.0.1:43132] AssertionError: Blueprint view function name should not contain dots
Comment 2 François Valenduc 2018-10-02 18:10:32 UTC
Created attachment 549034 [details]
ebuild for pgadmin-3.3

I made this ebuild by copying the 3.0 version. I updated the version for flask. It also needs sshtunnel which is available in this overlay: https://gpo.zugaina.org/Overlays/linuxunderground-overlay/dev-python/sshtunnel

After initial testing, it seems to work correctly.
Comment 3 Larry the Git Cow gentoo-dev 2018-10-04 17:38:28 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6129954809d3cb066e8f17d6d6940552f04ae51b

commit 6129954809d3cb066e8f17d6d6940552f04ae51b
Author:     Aaron W. Swenson <titanofold@gentoo.org>
AuthorDate: 2018-10-04 17:34:36 +0000
Commit:     Aaron W. Swenson <titanofold@gentoo.org>
CommitDate: 2018-10-04 17:37:55 +0000

    dev-python/sshtunnel: Initial commit
    
    Required by >=dev-db/pgadmin4-3.3
    
    Bug: https://bugs.gentoo.org/665754
    Package-Manager: Portage-2.3.40, Repoman-2.3.9
    Signed-off-by: Aaron Swenson <titanofold@gentoo.org>

 dev-python/sshtunnel/Manifest               |  1 +
 dev-python/sshtunnel/metadata.xml           |  8 ++++++++
 dev-python/sshtunnel/sshtunnel-0.1.4.ebuild | 29 +++++++++++++++++++++++++++++
 3 files changed, 38 insertions(+)
Comment 4 Larry the Git Cow gentoo-dev 2018-10-05 10:32:33 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=449cd949f5707c0bb7dc43f1b5346a7f5130518b

commit 449cd949f5707c0bb7dc43f1b5346a7f5130518b
Author:     Aaron W. Swenson <titanofold@gentoo.org>
AuthorDate: 2018-10-05 10:31:57 +0000
Commit:     Aaron W. Swenson <titanofold@gentoo.org>
CommitDate: 2018-10-05 10:32:07 +0000

    dev-db/pgadmin4: Bump to 3.3.
    
    Thank you François Valenduc for your assistance.
    
    Closes: https://bugs.gentoo.org/665754
    Package-Manager: Portage-2.3.49, Repoman-2.3.10
    Signed-off-by: Aaron Swenson <titanofold@gentoo.org>

 dev-db/pgadmin4/Manifest            |   1 +
 dev-db/pgadmin4/pgadmin4-3.3.ebuild | 124 ++++++++++++++++++++++++++++++++++++
 2 files changed, 125 insertions(+)