![]() ![]() You are unlikely to need multiple postgres installations side by side.Ĭonda remove postgresql sudo apt install postgresql If you want convenience, then sudo apt install postgresql will be best for you - this is tailored for your Ubuntu version and you won't need to care about starting/stopping the server. it provides a simple way for, say, a python package to automatically install postgresql as a dependency on Linux, MacOS and Windows (which is great for developers).Īt the time of writing, however, it does not also provide an integration of the installed binaries into the service architecture of the operating system (which would depend even more on the details of the operating system). It just installs the necessary software.Ĭonda is a cross-platform package manager, i.e. How to fix this situation in the best possible way?Ĭonda does not install postgresql as a system service.When installing postgresql, is it good to install it in an environment on the first place, or is it better to use sudo apt install postgresql and have it installed on the server globally?.Why did the server not start on his own?.Now, I can find my way around and start the server eventually, but I don't understand how I got myself in this situation. Is the server running locally and acceptingĬonnections on Unix domain socket "/tmp/.s.PGSQL.5432"?įinally, when checking my running processes, there is nothing for postgres, so I guess that the server is not running at all. Then I ran only psql which yielded another error: psql: could not connect to server: No such file or directory Instead, when I run this command, I get: sudo: unknown user: postgres My understanding is that the postgres server should start automatically, so when I run sudo -u postgres psql I will log in as user postgres. Now I have postgresql 11.2 installed only in my environment. I installed postgresql by typing conda install postgresql in my conda environment. In /Users/lidashuang/Projects/starservices/venv/lib/python3.8/site-packages/psycopg2/_ am running an Ubuntu 18.04.2 LTS. Referenced from: /Users/lidashuang/Projects/starservices/venv/lib/python3.8/site-packages/psycopg2/_ ImportError: dlopen(/Users/lidashuang/Projects/starservices/venv/lib/python3.8/site-packages/psycopg2/_, 2): Symbol not found: _PQbackendPID Return _bootstrap._gcd_import(name, package, level)įile "", line 975, in _find_and_load_unlockedįile "", line 219, in _call_with_frames_removedįile "./api/api_v1/endpoints/status.py", line 10, in Įngine = create_engine(config.SQLALCHEMY_DATABASE_URI, pool_pre_ping=True)įile "/Users/lidashuang/Projects/starservices/venv/lib/python3.8/site-packages/sqlalchemy/engine/_init_.py", line 500, in create_engineįile "/Users/lidashuang/Projects/starservices/venv/lib/python3.8/site-packages/sqlalchemy/engine/strategies.py", line 87, in createįile "/Users/lidashuang/Projects/starservices/venv/lib/python3.8/site-packages/sqlalchemy/dialects/postgresql/psycopg2.py", line 753, in dbapiįile "/Users/lidashuang/Projects/starservices/venv/lib/python3.8/site-packages/psycopg2/_init_.py", line 51, in Module = importlib.import_module(module_str)įile "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/amework/Versions/3.8/lib/python3.8/importlib/_init_.py", line 127, in import_module Self.loaded_app = import_from_string(self.app)įile "/Users/lidashuang/Projects/starservices/venv/lib/python3.8/site-packages/uvicorn/importer.py", line 23, in import_from_stringįile "/Users/lidashuang/Projects/starservices/venv/lib/python3.8/site-packages/uvicorn/importer.py", line 20, in import_from_string n_until_complete(rve(sockets=sockets))įile "uvloop/loop.pyx", line 1456, in _until_completeįile "/Users/lidashuang/Projects/starservices/venv/lib/python3.8/site-packages/uvicorn/main.py", line 389, in serveįile "/Users/lidashuang/Projects/starservices/venv/lib/python3.8/site-packages/uvicorn/config.py", line 288, in load Self._target(*self._args, **self._kwargs)įile "/Users/lidashuang/Projects/starservices/venv/lib/python3.8/site-packages/uvicorn/subprocess.py", line 62, in subprocess_startedįile "/Users/lidashuang/Projects/starservices/venv/lib/python3.8/site-packages/uvicorn/main.py", line 382, in run ![]() Uvloop=0.14.0 sys_platform != 'win32' and sys_platform != 'cygwin' and platform_python_implementation != 'PyPy'įull error message Process SpawnProcess-1:įile "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/amework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrapįile "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/amework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 108, in run Httptools=0.1.1 sys_platform != 'win32' and sys_platform != 'cygwin' and platform_python_implementation != 'PyPy' Requirements.txt venv ❯ cat requirements.txt Applications/Postgres.app/Contents/Versions/latest/bin/pg_config
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |