Cant' launch pgadmin4 on ubuntu hirsute - pgadmin-4

I'm trying to launch pgdamin4 on my ubuntu device, and I just get this error again and again despite every solution I tried.
I followed this to install my pgdamin4 : https://www.pgadmin.org/download/pgadmin-4-apt/
Do you have any solutions?
Traceback (most recent call last):
File "/usr/pgadmin4/web/pgAdmin4.py", line 39, in <module>
import config
File "/usr/pgadmin4/web/config.py", line 25, in <module>
from pgadmin.utils import env, IS_WIN, fs_short_path
File "/usr/pgadmin4/web/pgadmin/__init__.py", line 23, in <module>
from flask import Flask, abort, request, current_app, session, url_for
ModuleNotFoundError: No module named 'flask'

Related

Installing ZPsycopgDA on Zope

So, I'm trying to install ZPsycopgDA on Zope, but it keeps giving me the following error on the log file:
2022-02-13T02:11:01 ERROR Application Couldn't install ZPsycopgDA
Traceback (most recent call last):
File "/home/rubens/zope/lib64/python2.7/site-packages/OFS/Application.py", line 660, in install_product
global_dict, global_dict, silly)
File "/home/rubens/zope/instance/Products/ZPsycopgDA/__init__.py", line 21, in <module>
import DA
File "/home/rubens/zope/instance/Products/ZPsycopgDA/DA.py", line 21, in <module>
import db
File "/home/rubens/zope/instance/Products/ZPsycopgDA/db.py", line 18, in <module>
from Shared.DC.ZRDB.TM import TM
ImportError: No module named ZRDB.TM
I added the Zope lib directory to PYTHONPATH (/home/rubens/zope/lib64) as instructed, but still gives me this error. Any clues? I'm using Zope2==2.13.30.
Found the solution. Had to install Products.ZSQLMethods (pip install Products.ZSQLMethods==2.13.4). I've installed this version because of Zope2==2.13.30 compatibility.

Install Airflow - ImportError: No module named clsregistry

Hi I am new to airflow and try to install it. And I can install airflow successfully but when I do an airflow initdb, the error is :
(airflow_virtualenv) C02CF6JRMD6R:bin ybao$ airflow initdb
Traceback (most recent call last): File "/Users/ybao/airflow_virtualenv/bin/airflow", line 26, in <module>
from airflow.bin.cli import CLIFactory File "/Users/ybao/airflow_virtualenv/lib/python2.7/site-packages/airflow/bin/cli.py", line 82, in <module>
from airflow.www.app import (cached_app, create_app) File "/Users/ybao/airflow_virtualenv/lib/python2.7/site-packages/airflow/www/app.py", line 42, in <module>
from airflow.www.blueprints import routes File "/Users/ybao/airflow_virtualenv/lib/python2.7/site-packages/airflow/www/blueprints.py", line 25, in <module>
from airflow.www import utils as wwwutils File "/Users/ybao/airflow_virtualenv/lib/python2.7/site-packages/airflow/www/utils.py", line 40, in <module>
import flask_admin.contrib.sqla.filters as sqlafilters File "/Users/ybao/airflow_virtualenv/lib/python2.7/site-packages/flask_admin/contrib/sqla/__init__.py", line 2, in <module>
from .view import ModelView File "/Users/ybao/airflow_virtualenv/lib/python2.7/site-packages/flask_admin/contrib/sqla/view.py", line 18, in <module>
from flask_admin.contrib.sqla.tools import is_relationship File "/Users/ybao/airflow_virtualenv/lib/python2.7/site-packages/flask_admin/contrib/sqla/tools.py", line 4, in <module>
from sqlalchemy.ext.declarative.clsregistry import _class_resolver ImportError: No module named clsregistry
Where should I install the packages?
Thanks!!
What version of airflow are you using?
I just ran into this issue using apache-airflow 1.10.14.
This issue was linked to the recent release of SQLAlchemy (1.4.2) or Flask-SQLAlchemy (2.5.1)
Reverting those dependencies to the previous version fixed it for me:
pip install SQLAlchemy==1.3.23
pip install Flask-SQLAlchemy==2.4.4

ModuleNotFoundError : No module named 'django' when i tried to start

I tried to set up the Apollo and React environment.
This is material that I used https://github.com/mbrochh/react-apollo-graphql-demo
when the error occurred?
whe i did
./manage.py runserver 0.0.0.0:8000
Traceback (most recent call last):
File "./manage.py", line 8, in <module>
from django.core.management import execute_from_command_line
ModuleNotFoundError: No module named 'django'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "./manage.py", line 14, in <module>
import django
ModuleNotFoundError: No module named 'django'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "./manage.py", line 16, in <module>
raise ImportError(
ImportError: Couldn't import Django. Are you sure it's installed and available on your PYTHONPATH environment variable? Did you forget to activate a virtual environment?

AppEngine: ImportError: cannot import name docker

I have recently updated my environment using gcloud component update. I am now having the following issue:
xxxxxx-MacBook-Air:~ poiuytrez$ dev_appserver.py .
Traceback (most recent call last):
File "/usr/local/bin/dev_appserver.py", line 83, in <module>
_run_file(__file__, globals())
File "/usr/local/bin/dev_appserver.py", line 79, in _run_file
execfile(_PATHS.script_file(script_name), globals_)
File "/Applications/Miscelaneous/google-cloud-sdk/.install/.backup/platform/google_appengine/google/appengine/tools/devappserver2/devappserver2.py", line 36, in <module>
from google.appengine.tools.devappserver2 import dispatcher
File "/Applications/Miscelaneous/google-cloud-sdk/.install/.backup/platform/google_appengine/google/appengine/tools/devappserver2/dispatcher.py", line 29, in <module>
from google.appengine.tools.devappserver2 import module
File "/Applications/Miscelaneous/google-cloud-sdk/.install/.backup/platform/google_appengine/google/appengine/tools/devappserver2/module.py", line 75, in <module>
from google.appengine.tools.devappserver2 import vm_runtime_factory
File "/Applications/Miscelaneous/google-cloud-sdk/.install/.backup/platform/google_appengine/google/appengine/tools/devappserver2/vm_runtime_factory.py", line 25, in <module>
from google.appengine.tools.devappserver2 import vm_runtime_proxy
File "/Applications/Miscelaneous/google-cloud-sdk/.install/.backup/platform/google_appengine/google/appengine/tools/devappserver2/vm_runtime_proxy.py", line 29, in <module>
from google.appengine.tools.devappserver2 import log_manager
File "/Applications/Miscelaneous/google-cloud-sdk/.install/.backup/platform/google_appengine/google/appengine/tools/devappserver2/log_manager.py", line 34, in <module>
from google.appengine.tools.docker import containers
File "/Applications/Miscelaneous/google-cloud-sdk/.install/.backup/platform/google_appengine/google/appengine/tools/docker/containers.py", line 48, in <module>
from docker import docker
ImportError: cannot import name docker
I am not sure what to do.
As per Google Cloud SDK - Release Notes for 0.9.68 (2015/07/08)
The standalone App Engine SDKs are no longer distributed through the Cloud SDK.
App Engine functionality can still be used through the gcloud preview app command group.
The gae-java, gae-python, gae-php, and gae-go components no longer exist in the component manager.
If you need to use appcfg or dev_appserver directly, these are still
available in the App Engine SDK downloads that can be found here:
https://cloud.google.com/appengine/downloads
So your options are:
Run gcloud preview app run app.yaml from your project's home directory
Install the Google App Engine SDK for python and use its bundled dev_appserver
Install docker-py to "fix" it.
More info in this bug report

Impossible to start demo app in Go on Google App Engine on my local

I followed the tutorial from google here: https://console.developers.google.com/start/appengine
After what I tried started the demo application and got the following error:
$ goapp serve appengine-try-go
Traceback (most recent call last):
File "/home/nek/google-cloud-sdk/platform/google_appengine/dev_appserver.py", line 83, in <module>
_run_file(__file__, globals())
File "/home/nek/google-cloud-sdk/platform/google_appengine/dev_appserver.py", line 79, in _run_file
execfile(_PATHS.script_file(script_name), globals_)
File "/home/nek/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/devappserver2.py", line 36, in <module>
from google.appengine.tools.devappserver2 import dispatcher
File "/home/nek/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/dispatcher.py", line 29, in <module>
from google.appengine.tools.devappserver2 import module
File "/home/nek/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/module.py", line 71, in <module>
from google.appengine.tools.devappserver2 import vm_runtime_factory
File "/home/nek/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/vm_runtime_factory.py", line 25, in <module>
from google.appengine.tools.devappserver2 import vm_runtime_proxy
File "/home/nek/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/vm_runtime_proxy.py", line 29, in <module>
from google.appengine.tools.devappserver2 import log_manager
File "/home/nek/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/log_manager.py", line 34, in <module>
from google.appengine.tools.docker import containers
File "/home/nek/google-cloud-sdk/platform/google_appengine/google/appengine/tools/docker/containers.py", line 47, in <module>
import docker
ImportError: No module named docker
error while running dev_appserver.py: exit status 1
I'm using it on Ubuntu 14.04 with zsh and python 2.7.6.
Does somebody understand why ?
After installed pip, I executed the following command:
sudo pip install docker-py
Now it works.

Resources