-
Notifications
You must be signed in to change notification settings - Fork 270
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
Adds management command for inserting safe master copy #1785
base: main
Are you sure you want to change the base?
Conversation
CLA Assistant Lite bot All contributors have signed the CLA βοΈ β |
Not able to run local tests due to an issue Using cached pyasn1-0.5.1-py2.py3-none-any.whl (84 kB)
Building wheels for collected packages: psycopg2
Building wheel for psycopg2 (setup.py) ... error
error: subprocess-exited-with-error
Γ python setup.py bdist_wheel did not run successfully.
β exit code: 1
β°β> [149 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-13-arm64-cpython-311
creating build/lib.macosx-13-arm64-cpython-311/psycopg2
copying lib/_json.py -> build/lib.macosx-13-arm64-cpython-311/psycopg2
copying lib/extras.py -> build/lib.macosx-13-arm64-cpython-311/psycopg2
copying lib/errorcodes.py -> build/lib.macosx-13-arm64-cpython-311/psycopg2
copying lib/tz.py -> build/lib.macosx-13-arm64-cpython-311/psycopg2
copying lib/_range.py -> build/lib.macosx-13-arm64-cpython-311/psycopg2
copying lib/_ipaddress.py -> build/lib.macosx-13-arm64-cpython-311/psycopg2
copying lib/__init__.py -> build/lib.macosx-13-arm64-cpython-311/psycopg2
copying lib/extensions.py -> build/lib.macosx-13-arm64-cpython-311/psycopg2
copying lib/errors.py -> build/lib.macosx-13-arm64-cpython-311/psycopg2
copying lib/sql.py -> build/lib.macosx-13-arm64-cpython-311/psycopg2
copying lib/pool.py -> build/lib.macosx-13-arm64-cpython-311/psycopg2
running build_ext
building 'psycopg2._psycopg' extension
creating build/temp.macosx-13-arm64-cpython-311
creating build/temp.macosx-13-arm64-cpython-311/psycopg
clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall "-
...
...
...
...
...
ld: library not found for -lssl
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command '/usr/bin/clang' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for psycopg2
Running setup.py clean for psycopg2
Failed to build psycopg2
ERROR: Could not build wheels for psycopg2, which is required to install pyproject.toml-based projects |
Hey thanks for your PR. |
@moisses89 Alright alright, I managed to google and fix itπ First time pythoners on MacOs Sillicon might run into this install issue as well. If so, fix it with an alias for your openssl lib. This assumes you install(ed) openssl using brew: brew install openssl
export LIBRARY_PATH=$LIBRARY_PATH:/opt/homebrew/opt/openssl/lib
pip install -r requirements.txt
Sure! Similar command for inserting a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contribution! Remember to also sign the CLA
safe_transaction_service/history/management/commands/insert_safe_master_copy.py
Outdated
Show resolved
Hide resolved
safe_transaction_service/history/management/commands/insert_safe_master_copy.py
Outdated
Show resolved
Hide resolved
safe_transaction_service/history/management/commands/insert_safe_master_copy.py
Outdated
Show resolved
Hide resolved
safe_transaction_service/history/management/commands/insert_safe_master_copy.py
Outdated
Show resolved
Hide resolved
@moisses89 I changed my mind about that, we can accept this PR and add proxy factory support when we need it π |
I have read the CLA Document and I hereby sign the CLA |
Make sure these boxes are checked! π¦β
./run_tests.sh
pre-commit run -a
setup_service.py
, provide a link to yoursafe-deployments PR and check network name
exists in safe-eth-py
What was wrong? πΎ
There was no programmatic way available to easily insert a SafeMasterCopy address into the database. This made it cumbersome to run txs in an isolated CI environment using a local node and Safe contracts to test against.
Closes safe-global/safe-infrastructure#102
How was it fixed? π―
Added a python management command for inserting the mastercopy address into the database, allowing for programmatic insert of SafeMasterCopy objects.