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

auth-type error #24

Closed
phrend opened this issue Jul 11, 2022 · 5 comments
Closed

auth-type error #24

phrend opened this issue Jul 11, 2022 · 5 comments

Comments

@phrend
Copy link

phrend commented Jul 11, 2022

Running on MacOS in a virtualenv, I get the following (as is mentioned in your README):

usage:
    http [--auth-type {basic,bearer,digest}] [METHOD] URL [REQUEST_ITEM ...]

error:
    argument --auth-type/-A: invalid choice: 'edgegrid' (choose from 'basic', 'bearer', 'digest')
$ pip freeze
certifi==2022.6.15
cffi==1.15.1
charset-normalizer==2.1.0
cryptography==37.0.4
defusedxml==0.7.1
edgegrid-python==1.2.1
httpie==3.1.0
idna==3.3
multidict==6.0.2
ndg-httpsclient==0.5.1
pyasn1==0.4.8
pycparser==2.21
Pygments==2.12.0
pyOpenSSL==22.0.0
PySocks==1.7.1
requests==2.28.1
requests-toolbelt==0.9.1
urllib3==1.26.10

any ideas?

@robertolopezlopez
Copy link
Contributor

hi @phrend ,

Thank you for opening this issue ticket. From what pip freeze is showing us, you do not seem to have httpie-edgegrid installed in your VE. Maybe that's the reason.

As we have some PyPI problems publishing the latest release, for the moment I can recommend you to follow these steps to install httpie-edgegrid:

  1. git clone https://github.com/akamai/httpie-edgegrid
  2. source yourVe/bin/activate
  3. cd httpie-edgegrid
  4. python setup.py install

(Just out of my head, but I believe they will be enough)

I will close this issue now, if the problem persist please do not hesitate about reopening it.

Regards,

Roberto

@phrend
Copy link
Author

phrend commented Jul 12, 2022

My mistake - I had done pip install -r requirements.txt rather than python setup.py install
Thank you for the quick reply!

@alexholtz
Copy link

alexholtz commented Aug 8, 2022

While setting up a new mac (Apple silicon, MacOS 12.4) with httpie-edgegrid I ran into this same problem. It's a minor thing but in case it saves anyone else a few minutes I discovered that after installing with pip I had to deactivate and reactivate the venv for some reason, otherwise I was getting the same error as @phrend.

In other words:

$ python3 -m venv venv
$ . venv/bin/activate
$ pip install httpie-edgegrid
$ deactivate
$ . venv/bin/activate

@Slonimskaia
Copy link
Contributor

Hi @alexholtz,

thank you for reporting this issue. We will try to do investigation from our side.

Best regards,
Tatiana

@kaush-
Copy link
Contributor

kaush- commented Aug 24, 2022

@alexholtz thank you for your comment.

Can we request you to open a new issue as it seems to be unrelated with the parent issue here? Also can you please provide more details, such as screenshots and some logs that will help us further deep dive into the issue.

Looking forward to hearing from you.

Regards,
Piyush

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

No branches or pull requests

5 participants