-
Notifications
You must be signed in to change notification settings - Fork 68
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
Library needs to be updated. Requests- Toolsbelt was updated today and Pyrebase4 now throws import error #62
Comments
Downgrading requests-toolbelt to the previous version fixes the problem for the moment:
|
To add onto this, looks like Requests was also updated today to add support for In order to fix that, pin to the previous version of requests: |
Thank you , I was getting same issue |
doesn't work at my end
File "main.py", line 35, in
File "/home/appuser/venv/lib/python3.9/site-packages/pyrebase/init.py", line 1, in
File "/home/appuser/venv/lib/python3.9/site-packages/pyrebase/pyrebase.py", line 19, in
ModuleNotFoundError: No module named 'requests.packages.urllib3.contrib.appengine' |
facing the same issue |
Add these dependencies in requirements.txt
|
Yes, you are right but if the problem exists then install this library separately such as
|
fixed in v4.7.0 |
Still getting this error after updating version
when i freeze the versions of other packages it will worked
|
That is exactly what is in requirements.txt now (even though it's bad practice and should be changed) |
@nhorvath hi. what is the purpose of requirements.txt? im new. |
The requirements.txt file is used for specifying what python packages are required to run the project. It stores the information of what packages with specified versions are needed for running the project.
The latest version of these library has a breaking change, and that change is causing the error you're facing. |
@AsifArmanRahman Hi, thankyou for replying. can you tell me how can i add requests and toolbelt versions to my requirements.txt file. so that they wont show error 'in question at top' on running my android app. |
Based on the deps of the libraries you're using to build your app; it could be because of that. Find a suitable version of libraries which work with the exact version of the 3 mentioned libraries in your original question. |
Still happening even after 4.7.0 |
I'm trying to compile my apk and apk crashes on android. I tried with the version of the packs you wrote on this post but does not work for me. Thank you in advance. |
|
I tried like this with pyrebase 4.6.0. It is necessary to use 4.7.0? |
No , for now you have to install these 3 packages with pyrebase 4.6.0 and 4.7.0 You can read some comments above for more details |
Changing versions in |
Thanks... I can't belive I missed that. Will fix today.
…On Mon, Jun 12, 2023, 12:21 AM KAWAKUBO Toru ***@***.***> wrote:
Changing versions in requirements.txt doesn't affect user installation.
install_requires in setup.py should be updated to fix user installation.
—
Reply to this email directly, view it on GitHub
<#62 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABIJXATKN2PR4FA3WFTGMTXK2KLZANCNFSM6AAAAAAXSGMCF4>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Fixed requirements in https://pypi.org/manage/project/Pyrebase4/release/4.7.1/ thanks for the help. |
File "/home/appuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 565, in _run_script
exec(code, module.dict)
File "/app/cleeve-2/main.py", line 35, in
import pyrebase
File "/home/appuser/venv/lib/python3.9/site-packages/pyrebase/init.py", line 1, in
from .pyrebase import initialize_app
File "/home/appuser/venv/lib/python3.9/site-packages/pyrebase/pyrebase.py", line 20, in
from requests_toolbelt.adapters import appengine
File "/home/appuser/venv/lib/python3.9/site-packages/requests_toolbelt/adapters/appengine.py", line 42, in
from .._compat import gaecontrib
The text was updated successfully, but these errors were encountered: