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

Uploading .whl and pip search #222

Open
LanDeQuHuXi opened this issue Jun 27, 2018 · 3 comments
Open

Uploading .whl and pip search #222

LanDeQuHuXi opened this issue Jun 27, 2018 · 3 comments

Comments

@LanDeQuHuXi
Copy link

Hey guys,

First, I want to say thanks for this great work.

I'm trying out elasticpypi but I have encountered some problems:

  1. If I upload a .whl with twine. It seems the name and version is totally correct on the dynamoDB table,
    but I cannot pip install it.

  2. pip search seems not working?
    I'm getting: pip._vendor.requests.exceptions.HTTPError: 400 Client Error: Bad Request for url

  3. from the output of the deploy, I get output for functions and endpoints, which corresponds to the lambda functions and api gateway created:
    Do i need to interact with them? or it's just for information purpose that
    when I upload or pip install, elasticpypi will itself figure out which function and api to call?

Overall, I think the documentation is somewhat lacking for this project.
But I guess it's because it's a relatively new project or lacking of manpower.

Cheers!

@khornberg
Copy link
Owner

Thank you for the feedback @LanDeQuHuXi

Can you provide the output of pip when trying to install the wheel?

pip search has not been implemented. I don't know if there is a PEP for that API. I have not had the time to look into it.

I don't think you need any of the output from the deploy, except for the main url. All of the output is the default from the serverless framework.

I agree that that documentation is light. As the creator, I am sure that my previous knowledge of the project leaves things out. If you have any specific thoughts on where it can be improved, I'd gladly add to the documentation.

@LanDeQuHuXi
Copy link
Author

LanDeQuHuXi commented Jun 28, 2018

When installing the wheel, I tried both "pip install curses" and "pip install curses==2.2", and the output are:
Could not find a version that satisfies the requirement curses (from versions: )
No matching distribution found for curses

Could not find a version that satisfies the requirement curses==2.2 (from versions: )
No matching distribution found for curses==2.2

And I have the following in my dynamoDB:
image

The documentation kind of stopped at deploy, I was a little bit lost after that, as some other private pypi has some specific commands for uploading.
Also without search and index page, I only realized I can find all the packages after I checked the serverless.yml finding a DynamoDB role was created.
In short, I guess the documentation can include a few lines about how to interact with it after deployment.

Thank a lot for the reply!

@khornberg
Copy link
Owner

Thank you!

From the tests, it seems that the wheel should be found. I've added another test for this situation specifically in #230

Are you sure you have the correct wheel for the architecture you are trying to install it on?

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

2 participants