Hi. Subj, pgAdmin4 hangs on splash screen. $ pgAdmin4 qt5ct: using qt5ct plugin Python path: "/usr/lib64/python3.4/site-packages" Python Home: "" Webapp path: "/usr/share/pgadmin4/web/pgAdmin4.py" Traceback (most recent call last): File "/usr/share/pgadmin4/web/pgAdmin4.py", line 34, in <module> import config File "/usr/share/pgadmin4/web/config.py", line 30, in <module> from pgadmin.utils import env, IS_PY2, IS_WIN, fs_short_path File "/usr/share/pgadmin4/web/pgadmin/__init__.py", line 25, in <module> from flask_paranoid import Paranoid ImportError: No module named 'flask_paranoid' Looks like the needed package is only in overlay: https://gpo.zugaina.org/dev-python/flask-paranoid
# emerge --info Portage 2.3.8 (python 3.4.5-final-0, default/linux/amd64/13.0/desktop, gcc-6.4.0, glibc-2.24-r4, 4.12.12-gentoo x86_64) ================================================================= System uname: Linux-4.12.12-gentoo-x86_64-AMD_Ryzen_7_1800X_Eight-Core_Processor-with-gentoo-2.4.1 KiB Mem: 65988944 total, 51903476 free KiB Swap: 0 total, 0 free Timestamp of repository gentoo: Sat, 07 Oct 2017 17:15:02 +0000 Head commit of repository gentoo: 9718d86b91aa160e66bf32bcd7f63b76cd8be55b sh bash 4.3_p48-r1 ld GNU ld (Gentoo 2.28.1 p1.0) 2.28.1 app-shells/bash: 4.3_p48-r1::gentoo dev-java/java-config: 2.2.0-r3::gentoo dev-lang/perl: 5.24.1-r2::gentoo dev-lang/python: 2.7.12::gentoo, 3.4.5::gentoo dev-util/cmake: 3.7.2::gentoo dev-util/pkgconfig: 0.28-r2::gentoo sys-apps/baselayout: 2.4.1-r2::gentoo sys-apps/openrc: 0.28::gentoo sys-apps/sandbox: 2.10-r3::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69::gentoo sys-devel/automake: 1.11.6-r1::gentoo, 1.15-r2::gentoo sys-devel/binutils: 2.28.1::gentoo sys-devel/gcc: 6.4.0::gentoo sys-devel/gcc-config: 1.8-r1::gentoo sys-devel/libtool: 2.4.6-r3::gentoo sys-devel/make: 4.2.1::gentoo sys-kernel/linux-headers: 4.7::gentoo (virtual/os-headers) sys-libs/glibc: 2.24-r4::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.europe.gentoo.org/gentoo-portage priority: -1000 science location: /var/lib/layman/science masters: gentoo priority: 50 sft location: /var/lib/layman/sft masters: gentoo priority: 50 steam-overlay location: /var/lib/layman/steam-overlay masters: gentoo priority: 50 local location: /usr/local/portage masters: gentoo priority: 999 ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /var/bind" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-march=native -O2 -pipe" DISTDIR="/usr/portage-distfiles" EMERGE_DEFAULT_OPTS="--color=y --with-bdeps=y --verbose-conflicts --autounmask-keep-masks -j14" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://mirror.yandex.ru/gentoo-distfiles/ http://gentoo-mirror.spb.ru/ " LANG="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j14 --load-average=15" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" USE="X a52 aac acl acpi alsa amd64 bash-completion berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gif glamor gpm gtk iconv ipv6 jpeg lcms libnotify mad mng modules mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds qt3support qt5 readline scanner sdl seccomp session spell ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vim-syntax vorbis wayland wxwidgets x264 xattr xcb xml xv xvid zlib" ABI_X86="32 64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" L10N="en en-GB en-US ru" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en-GB en-US ru" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby22" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
This helped: # echo "=dev-python/flask-paranoid-0.1.0" >> /etc/portage/package.accept_keywords # layman -a archenroot # emerge flask-paranoid
(In reply to Dmitry Grigoriev from comment #0) > Hi. Subj, pgAdmin4 hangs on splash screen. > > $ pgAdmin4 > qt5ct: using qt5ct plugin > Python path: "/usr/lib64/python3.4/site-packages" > Python Home: "" > Webapp path: "/usr/share/pgadmin4/web/pgAdmin4.py" > Traceback (most recent call last): > File "/usr/share/pgadmin4/web/pgAdmin4.py", line 34, in <module> > import config > File "/usr/share/pgadmin4/web/config.py", line 30, in <module> > from pgadmin.utils import env, IS_PY2, IS_WIN, fs_short_path > File "/usr/share/pgadmin4/web/pgadmin/__init__.py", line 25, in <module> > from flask_paranoid import Paranoid > ImportError: No module named 'flask_paranoid' I can confirm that it hangs and after a while shows an graphical error dialog, with the title "Fatal Error" and message "The application server could not be contacted.". Additionally, compiling pgadmin4 with USE=doc seems to fail with due to the same reasons: make -j12 docs LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 make -C docs/en_US -f Makefile.sphinx html make[1]: Entering directory '/var/tmp/portage/dev-db/pgadmin4-2.0/work/pgadmin4-2.0/docs/en_US' Generating code-snippet.rst for some of the important classes... Traceback (most recent call last): File "build_code_snippet.py", line 22, in <module> from pgadmin.utils import PgAdminModule File "/var/tmp/portage/dev-db/pgadmin4-2.0/work/pgadmin4-2.0/web/pgadmin/__init__.py", line 25, in <module> from flask_paranoid import Paranoid ImportError: No module named 'flask_paranoid' make[1]: [Makefile.sphinx:22: code_snippet] Error 1 (ignored) sphinx-build -W -b html -d _build/doctrees . _build/html Running Sphinx v1.6.3 making output directory... Exception occurred: File "/var/tmp/portage/dev-db/pgadmin4-2.0/work/pgadmin4-2.0/web/pgadmin/__init__.py", line 25, in <module> from flask_paranoid import Paranoid ImportError: No module named 'flask_paranoid' The full traceback has been saved in /var/tmp/portage/dev-db/pgadmin4-2.0/temp/sphinx-err-ayl8h26r.log, if you want to report the issue to the developers. Please also report this if it was a user error, so that a better error message can be provided next time. A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks! make[1]: *** [Makefile.sphinx:47: html] Error 1 make[1]: Leaving directory '/var/tmp/portage/dev-db/pgadmin4-2.0/work/pgadmin4-2.0/docs/en_US' make: *** [Makefile:74: docs] Error 2
(In reply to Jaak Ristioja from comment #3) > I can confirm that it hangs and after a while shows an graphical error > dialog, with the title "Fatal Error" and message "The application server > could not be contacted.". Indeed that was the message. :) Just forgot about it when tried to pin down the problem starting pgAdmin4 from console.
I encountered the same bug as Jaak. Emerge failed with USE="doc".
It seems the package 'Flask-Paranoid' https://pypi.python.org/pypi/Flask-Paranoid/0.1.0 is missing. When i add an ebuild and install it it works. So either we make pgadmin4 build without this paranoid things, or a new gentoo-package is required (and the respective dependency in pgadmin4).
commit e01efecbe1b8d455bf94b47b9a97feefbac4ad46 (HEAD -> master, origin/master, origin/HEAD) Author: Aaron W. Swenson <titanofold@gentoo.org> Date: Sat Oct 14 19:29:51 2017 -0400 dev-db/pgadmin4: Add dev-python/flask-paranoid dep Gentoo-Bug: 633732 Package-Manager: Portage-2.3.8, Repoman-2.3.3 commit d5e70722e497f8d9acecc000d2709a0bd1eb0c78 Author: Aaron W. Swenson <titanofold@gentoo.org> Date: Sat Oct 14 19:28:03 2017 -0400 dev-python/flask-paranoid: Initial Commit Required by dev-db/pgadmin4. Gentoo-Bug: 633732 Package-Manager: Portage-2.3.8, Repoman-2.3.3