You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Did you perform a cursory search of open issues? Yes Is this bug already reported elsewhere? NO
Are you running the latest SDK version? Yes
Are you reporting to the correct repository (magic-admin-python)? Yes
🐛 Description
When installing some dependencies like the google sdk in python 3.10.8. Dependencies won't resolve. If you use a package manager like poetry and force the dependencies, poetry will detect incompatible dependencies and will downgrade version of web3.py from 5.31 to v4, which in turns downgrades eth-account, websockets and dependent packages.
This leads to an error in the sdk initialization:
migrate-1 | from magic_admin import Magic
migrate-1 | File "/usr/local/lib/python3.10/site-packages/magic_admin/__init__.py", line 1, in <module>
migrate-1 | from magic_admin.magic import Magic
migrate-1 | File "/usr/local/lib/python3.10/site-packages/magic_admin/magic.py", line 8, in <module>
migrate-1 | from magic_admin.resources.base import ResourceComponent
migrate-1 | File "/usr/local/lib/python3.10/site-packages/magic_admin/resources/__init__.py", line 1, in <module>
migrate-1 | from magic_admin.resources.token import Token
migrate-1 | File "/usr/local/lib/python3.10/site-packages/magic_admin/resources/token.py", line 4, in <module>
migrate-1 | from eth_account.messages import defunct_hash_message
migrate-1 | File "/usr/local/lib/python3.10/site-packages/eth_account/__init__.py", line 1, in <module>
migrate-1 | from eth_account.account import Account # noqa: F401
migrate-1 | File "/usr/local/lib/python3.10/site-packages/eth_account/account.py", line 1, in <module>
migrate-1 | from collections import (
migrate-1 | ImportError: cannot import name 'Mapping' from 'collections' (/usr/local/lib/python3.10/collections/__init__.py)
🧩 Steps to Reproduce
Install and use poetry. And then isntall the sdk to exemplify: poetry add magic-admin
run poetry install it should install websockets v6, web3 v5.31 and so on.
run poetry add google-cloud-bigquery
You will notice that the command hangs indefinitely when resolving deps.
Kill the above command and force the installation to replicate the error. Manually add google-cloud-bigquery to the pyproject.toml file and run poetry lock to sync the lock file
Run poetry install again
You should see how google deps are added while web3.py and related deps get downgraded for some reason:
After that, the magic admin sdk will stop working throwing the mentioned error.
🤔 Expected behavior
Expected to install an unrelated dependency with no issues
😮 Actual behavior
Dependencies would not resolve for the google-sdk and if forced via a package manage, it will downgrade web3 to make it compatible, but this will break the magic sdk
💻 Code Sample
NA
🌎 Environment
Software
Version(s)
magic-admin-python
1.0.0
python
3.10.8
Operating System
macOS catalina
The text was updated successfully, but these errors were encountered:
✅ Prerequisites
magic-admin-python
)? Yes🐛 Description
When installing some dependencies like the google sdk in python 3.10.8. Dependencies won't resolve. If you use a package manager like poetry and force the dependencies, poetry will detect incompatible dependencies and will downgrade version of web3.py from 5.31 to v4, which in turns downgrades eth-account, websockets and dependent packages.
This leads to an error in the sdk initialization:
🧩 Steps to Reproduce
poetry add magic-admin
poetry install
it should install websockets v6, web3 v5.31 and so on.poetry add google-cloud-bigquery
google-cloud-bigquery
to thepyproject.toml
file and runpoetry lock
to sync the lock filepoetry install
againAfter that, the magic admin sdk will stop working throwing the mentioned error.
🤔 Expected behavior
Expected to install an unrelated dependency with no issues
😮 Actual behavior
Dependencies would not resolve for the google-sdk and if forced via a package manage, it will downgrade web3 to make it compatible, but this will break the magic sdk
💻 Code Sample
NA
🌎 Environment
magic-admin-python
python
The text was updated successfully, but these errors were encountered: