question-mark

Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AttributeError: module 'requests' has no attribute 'get'

See original GitHub issue

Issue Description

Hello,

i’ve followed all the steps to configure the ATM. When i execute ./app.py i recieve this error: AttributeError: module ‘requests’ has no attribute ‘get’.

Traceback (most recent call last):
  File "./app.py", line 12, in <module>
    import config
  File "/home/pi/LightningATM/config.py", line 192, in <module>
    BTCPRICE = utils.get_btc_price(conf["atm"]["cur"])
  File "/home/pi/LightningATM/utils.py", line 51, in get_btc_price
    price = requests.get(
AttributeError: module 'requests' has no attribute 'get'

Can you help me?

Thanks

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
cryptopotamocommented, Mar 12, 2022

So, i’ve formatted everything and reinstalled. Now it works like a charm. 😃

Thanks for the help anyway!

0reactions
cryptopotamocommented, Mar 12, 2022

Thank you very much. I’ll try again and let you know.

This is a correct first execution with the orignal image from 2019.

image

Read more comments on GitHub >

github_iconTop Results From Across the Web

'Module object has no attribute 'get' Python error Requests?
is the problem, I wrote a file named requests.py and here i imported "requests" module.So python engine look get method in the nearest...
Read more >
AttributeError: module 'requests' has no attribute ... - GitHub
Attribute ConnectError was added to requests in 2014 somewhere around version 2.3.0 . Solution for that is to upgrade the requests package with...
Read more >
Python requests module issue - Google Groups
I've been working on the deployment of a Flask application using mod_wsgi4.5.18 (compiled against Python3.6.1) and have been encountering issues with the ...
Read more >
Keep getting "AttributeError: 'module' has no attribute 'get'?
I'm very new to Python, and am practicing using the Requests library. ... AttributeError: 'module' object has no attribute 'get'.
Read more >
AttributeError: module 'requests' has no attribute 'get'
问题描述执行python程序时报错:AttributeError: module 'requests' has no attribute 'get'解决方案原始的requests版本过低, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found