[SOLVED] Installation error

Python 3 Server Controller for Trackmania and Shootmania for script-only modes.

Moderators: TheM, toffe, NADEO

Locked
benj9029
Posts: 39
Joined: 17 Jul 2018, 10:31

[SOLVED] Installation error

Post by benj9029 »

Hey

Recently bought a vps on debian 9. When I execute command "pip install pyplanet" or event "pip3 install pyplanet" on the pyenv. an error comes out

Code: Select all

ERROR: Command errored out with exit status 1:
     command: /root/.pyenv/versions/3.7.0/envs/my-env/bin/python3.7 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-jwsyjjn3/psycopg2/setup.py'"'"'; __file__='"'"'/tmp/pip-install-jwsyjjn3/psycopg2/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base pip-egg-info
         cwd: /tmp/pip-install-jwsyjjn3/psycopg2/
    Complete output (23 lines):
    running egg_info
    creating pip-egg-info/psycopg2.egg-info
    writing pip-egg-info/psycopg2.egg-info/PKG-INFO
    writing dependency_links to pip-egg-info/psycopg2.egg-info/dependency_links.txt
    writing top-level names to pip-egg-info/psycopg2.egg-info/top_level.txt
    writing manifest file 'pip-egg-info/psycopg2.egg-info/SOURCES.txt'

    Error: pg_config executable not found.

    pg_config is required to build psycopg2 from source.  Please add the directory
    containing pg_config to the $PATH or specify the full executable path with the
    option:

        python setup.py build_ext --pg-config /path/to/pg_config build ...

    or with the pg_config option in 'setup.cfg'.

    If you prefer to avoid building psycopg2 from source, please install the PyPI
    'psycopg2-binary' package instead.

    For further information please check the 'doc/src/install.rst' file (also at
    <http://initd.org/psycopg/docs/install.html>).

    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
MosKi.
Discord: MosKi#4531
User avatar
toffe
Posts: 782
Joined: 15 Jun 2013, 10:57
Location: The Netherlands
Contact:

Re: Installation error

Post by toffe »

Hi,

Are you using PostgreSQL? If so, please go ahead and install the Debian/Ubuntu package libpq-dev with:

Code: Select all

sudo apt install libpq-dev
And try again.

Please let me know if it works.
benj9029
Posts: 39
Joined: 17 Jul 2018, 10:31

Re: Installation error

Post by benj9029 »

it worked :P ty
Discord: MosKi#4531
User avatar
toffe
Posts: 782
Joined: 15 Jun 2013, 10:57
Location: The Netherlands
Contact:

Re: Installation error

Post by toffe »

Nice, good to hear.
Tip if you start developing, please turn the debug mode on with changing the debug line so DEBUG reflects to True in your settings.
This will prevent any exceptions to get reported to the PyPlanet team and you get more information on what is going on at specific times.

You can simply replace the DEBUG line by this to enable:

Code: Select all

DEBUG = True
Toffe
Locked

Return to “PyPlanet”

Who is online

Users browsing this forum: No registered users and 3 guests