themasterminds-tech / discord-friends

Backup your discord friends incase of account loss
MIT License
5 stars 0 forks source link

Doesnt work - error during package installation #6

Closed ririko5834 closed 1 year ago

ririko5834 commented 1 year ago

Tried on both python v3.7 and 3.9 but it doesn't work, error during pip install

~/discord-friends$ pip install -r requirements.txt
Defaulting to user installation because normal site-packages is not writeable
Collecting django==3.1.12
  Using cached Django-3.1.12-py3-none-any.whl (7.8 MB)
Collecting requests==2.25.1
  Using cached requests-2.25.1-py2.py3-none-any.whl (61 kB)
Collecting psycopg2==2.8.6
  Using cached psycopg2-2.8.6.tar.gz (383 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [23 lines of output]
      running egg_info
      creating /tmp/pip-pip-egg-info-r9gl33jh/psycopg2.egg-info
      writing /tmp/pip-pip-egg-info-r9gl33jh/psycopg2.egg-info/PKG-INFO
      writing dependency_links to /tmp/pip-pip-egg-info-r9gl33jh/psycopg2.egg-info/dependency_links.txt
      writing top-level names to /tmp/pip-pip-egg-info-r9gl33jh/psycopg2.egg-info/top_level.txt
      writing manifest file '/tmp/pip-pip-egg-info-r9gl33jh/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'.

container@pterodactyl~ Server marked as running...
      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
      <https://www.psycopg.org/docs/install.html>).

      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
WARNING: You are using pip version 22.0.4; however, version 23.0.1 is available.
You should consider upgrading via the '/usr/local/bin/python -m pip install --upgrade pip' command.
oyedejioyewole commented 1 year ago

hey, this repository is no longer being maintained in favour of https://github.com/OyewoleOyedeji/prodis, which is currently being maintained

ririko5834 commented 1 year ago

But that doesnt backup your friends

oyedejioyewole commented 1 year ago

It's a work in progress, once Discord whitelists the bot. The bot will be able to get user data (including the friends). Sorry for the inconvenience. I'm finding other ways of doing the same thing though 😄

oyedejioyewole commented 1 year ago

@ririko5834 with https://prodis.vercel.app you can now get the friends attached to your an already logged in profile (you just need the token of the session)

oyedejioyewole commented 1 year ago

I'm going to delete this repository