-
Notifications
You must be signed in to change notification settings - Fork 175
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
Sir/python_3114 #211
base: master
Are you sure you want to change the base?
Sir/python_3114 #211
Conversation
…thon 3.11.4 definition in corresponding files
…by upgraded packages
I would like to install the client for v3 alongside v4 for Python 3.11.x via poetry. $ poetry add git+https://github.com/sirEven/dydx-v3-python.git#sir/python_3114
$ poetry add git+https://github.com/dydxprotocol/v4-clients.git@main#subdirectory=v4-client-py Unfortunately, this raises a conflict with the sympy dependency. |
Hello guys, |
Hey there, i just tried to up the constraint to sympy<=1.12.0 - which would be fine as far as i can tell! Edit: Never mind my hesitation, i just upped the constraint to your needs and fixed the test along the way by changing the user name to smth else. I hope your undertaking works now! |
Many thanks! I am just wondering why you wouldn't change it to |
Hey man, so sorry, i misunderstood you! I Hope it works now for you as i just pushed them to >= 1.12.0 :) |
@christophlins Do you have any plans to make a repo source release? I have prepared a conda recipe, but since there is not a repo release, I used the pypi package with heavy modifications (along the lines of @sirEven PR). This may not be accepted (recipe maintainers are not allowed to make changes) |
No. For the time being, I rely on this PR until it gets merged and eventually releases by the dydx folks. |
Unfortunately, more dependencies mismatches popped up... Comparing v3 with v4 requirements, I think the following changes are necessary:
Would you mind giving it a spin? If it doesn't work straight away, it might not be worth the effort... |
hey @christophlins I just upped the dependencies as you suggested, let me know if that helps! |
@sirEven It works like a charm. Many thanks for the quick turnaround. Highly appreciated! |
@christophlins Cool, I mistakenly thought you were a maintainer
|
This PR solves compatibility issues when using
dydx-v3-python
withpython 3.11.4
The issues stem from conflicting imports by the
parsimonious
package, which is used byeth-abi
package, which in turn is used by botheth-account
andweb3
packages.The following github issues seem related to this PR:
As well as this older PR:
What this PR does:
move upper version constraint for the following packages to current versions in both requirements.txt and requirements-test.txt:
eth-account
web3
modify to include new package versions and
python 3.11.4
here:tox.ini
setup.py
change source code to rename these function calls (see corresponding resources in parentheses):
solidityKeccak
-> solidity_keccak (https://web3py.readthedocs.io/en/stable/releases.html#id54)signTypedData
-> sign_typed_data (https://web3py.readthedocs.io/en/stable/releases.html#id124)defaultAccount
-> default_account (https://web3py.readthedocs.io/en/stable/releases.html#id129)recoverHash
-> _recover_hash (https://web3py.readthedocs.io/en/v5/web3.eth.account.html)