Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

psycopg2 dependency causing pipx install failure #28

Open
TheFern2 opened this issue Aug 23, 2023 · 0 comments
Open

psycopg2 dependency causing pipx install failure #28

TheFern2 opened this issue Aug 23, 2023 · 0 comments

Comments

@TheFern2
Copy link

pipx install py-nest-thermostat
Fatal error from pip prevented installation. Full pip output in file:
    /Users/fernandob/.local/pipx/logs/cmd_2023-08-23_15.33.07_pip_errors.log

pip seemed to fail to build package:
    psycopg2<3.0.0,>=2.9.1

Some possibly relevant errors from pip install:
    error: subprocess-exited-with-error
    Error: pg_config executable not found.
    error: metadata-generation-failed

Error installing py-nest-thermostat.

Looking at the log it looks like is looking for some pg binary for psycopg2. I don't have pg on my local machine because I use docker for all my projects. Honestly your everyday users is going to have no clue how to install any of this properly. I suggest removing this dependency and go with something lighter like sqlite. I would remove db stuff all together and create an option for mqtt or some queue publisher for advance users. Then those users can read the queue from whatever they want and write to whatever db they want. Obviously this is a big change, so if you don't want to I understand. I'll just make a clean clone without forking.

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:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant