Hi thanks for answering. On Tue, Sep 12, 2017 at 12:45 PM, Dave Page <dp...@pgadmin.org> wrote:
> Hi > > On Tue, Sep 12, 2017 at 11:24 AM, Willy-Bas Loos <willy...@gmail.com> > wrote: > >> >> I tried entering the web directory and running yarn install, and that's >> where i find the same error again: >> ERROR: [Errno 2] No such file or directory: 'install' >> The same goes for "yarn run" and "yarn --run=bundle:dev" >> > > If you're getting those errors when running yarn directly, that implies > there's something wrong with your yarn installation. What is the full > output from "yarn install" when run from the web/ directory? > It seems that we were talking about different products that both go by the name "yarn". I deinstalled cmdtest and installed the yarn that is a dependency manager for javascript. I also checked out REL-2_0-RC1 again. Then: (pgadmin4) wbloos@wb:~/python-files/pgadmin4/web$ yarn install yarn install v1.0.1 warning package.json: No license field warning No license field [1/4] Resolving packages... [2/4] Fetching packages... info fsevents@1.1.2: The platform "linux" is incompatible with this module. info "fsevents@1.1.2" is an optional dependency and failed compatibility check. Excluding it from installation. error extract-text-webpack-plugin@2.1.2: The engine "node" is incompatible with this module. Expected version ">=4.3.0 < 5.0.0 || >= 5.10". error Found incompatible module info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command. (pgadmin4) wbloos@wb:~/python-files/pgadmin4/web$ python pgAdmin4.py Starting pgAdmin 4. Please navigate to http://127.0.0.1:5050 in your browser. The errors persist. > >> >> >> Also, the desktop runtime is (still) not building (same in both checked >> out versions). >> >> If you're using QT 5.0+, then it'll default to QtWebEngine, which I guess > you don't have installed. QtWebKit is generally preferred for performance > reasons; you can force the use of that with: > > qmake "DEFINES += PGADMIN4_USE_WEBKIT" > Ah, when i use that, it builds. With the warning that i should definitely use Qt 5.5.0 Which i do, afaik. dpkg -l tells me that i have version 5.5.1 of qt5-default:amd64, qt5-qmake:amd6, pyqt5-dev, python3-pyqt5 and many more derived package names. When i run the runtime, it misses flask. Which is in the requirements. pip freeze says: Flask==0.11.1 (pgadmin4) wbloos@wb:~/python-files/pgadmin4/runtime$ ./pgAdmin4 Python path: "/home/wbloos/.virtualenvs/pgadmin4/bin/" Python Home: "" Webapp path: "/home/wbloos/python-files/pgadmin4/web/pgAdmin4.py" Traceback (most recent call last): File "/home/wbloos/python-files/pgadmin4/web/pgAdmin4.py", line 34, in <module> import config File "/home/wbloos/python-files/pgadmin4/web/config.py", line 30, in <module> from pgadmin.utils import env, IS_PY2, IS_WIN, fs_short_path File "/home/wbloos/python-files/pgadmin4/web/pgadmin/__init__.py", line 17, in <module> from flask import Flask, abort, request, current_app, session, url_for ImportError: No module named flask "Failed to launch the application server, server thread exiting." -- Willy-Bas Loos