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

requests has no attribute '__description__' #63

Closed
suthree opened this issue Jan 3, 2019 · 6 comments
Closed

requests has no attribute '__description__' #63

suthree opened this issue Jan 3, 2019 · 6 comments

Comments

@suthree
Copy link

suthree commented Jan 3, 2019

requests == 2.13.0
requests has no attribute __description__
instead only has

  '__author__',
  '__build__',
  '__builtins__',
 '__cached__',
 '__copyright__',
 '__doc__',
 '__file__',
 '__license__',
 '__loader__',
 '__name__',
 '__package__',
 '__path__',
 '__spec__',
 '__title__',
 '__version__',
 '_internal_utils',

so i use the __doc__
am i right?
Thank you

@rajgoesout
Copy link
Contributor

rajgoesout commented Jan 4, 2019

requests==2.20.1 does have attribute __description__

Use the latest version of requests, install it using the requirements.txt file

@Eurus-Holmes
Copy link

@rajdeepbharati I have installed the requests==2.20.1, but the error still exists...
2019-01-05 1 17 45

the error:

Traceback (most recent call last):
  File "sherlock.py", line 379, in <module>
    main()
  File "sherlock.py", line 301, in main
    f"{requests.__description__}:  {requests.__version__}\n" + \
AttributeError: module 'requests' has no attribute '__description__'

@rajgoesout
Copy link
Contributor

@Eurus-Holmes Perhaps you used the wrong version of python. Can you install a virtualenv and try again. Although this line isn't really important for sherlock to work.
This is what requests.__description__ is: 'Python HTTP for Humans.'

@Eurus-Holmes
Copy link

@rajdeepbharati oh, thanks, It works when I used a virtualenv environment.

@rajgoesout
Copy link
Contributor

@TheYahya I think this issue may be closed

@hoadlck hoadlck closed this as completed Jan 5, 2019
@7amod
Copy link

7amod commented Sep 8, 2019

How can i use the virtualen environment?

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

5 participants