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

Package not installing with pip install git+https://github.com/nathanrchn/perplexityai.git #60

Open
laserman2000 opened this issue Jul 23, 2024 · 2 comments

Comments

@laserman2000
Copy link

I get the following error on Google Colab and Binder

Collecting git+https://github.com/nathanrchn/perplexityai.git
Cloning https://github.com/nathanrchn/perplexityai.git to /tmp/pip-req-build-cswwt4hf
Running command git clone --filter=blob:none --quiet https://github.com/nathanrchn/perplexityai.git /tmp/pip-req-build-cswwt4hf
Resolved https://github.com/nathanrchn/perplexityai.git to commit d61c40b
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
Preparing metadata (setup.py) ... error
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.

@Feya
Copy link

Feya commented Aug 15, 2024

I have the same issue.

This is an explain from copilot:

The error message indicates that there was an issue while trying to install the package from the GitHub repository https://github.com/nathanrchn/perplexityai.git. Specifically, the error occurred during the setup.py egg_info step, which is part of the package's metadata generation process.

Here's a breakdown of the error:

Cloning the Repository: The repository was successfully cloned to a temporary directory.
Running setup.py: The setup.py script was executed to generate package metadata.
Error in setup.py: The script failed with a ValueError due to an issue in the set_requires method of the setuptools library. The error message "expected parenthesized list: '-client'" suggests that there is a problem with the format of the requirements specified in the setup.py file.
The root cause is likely a malformed requirement in the setup.py file of the perplexityai package. The set_requires method expects a parenthesized list, but it encountered '-client', which is not in the expected format.

@ablokr
Copy link

ablokr commented Aug 15, 2024

fix it
setup.py

setup(
name="perplexityai",
version="0.1",
description="A python api to use perplexity.ai",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/nathanrchn/perplexityai",
packages=find_packages(),
install_requires=["requests", "websocket-client"]
)

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

3 participants