-
Notifications
You must be signed in to change notification settings - Fork 78
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
Ocean-lib may not work when using a version of Python installed on the machine via Anaconda #1352
Comments
@mariacarmina @calina-c Tagging you here because I do not have the permissions yet to assign this issue directly to you. |
I don't think is due to ocean-lib and it seems to come from your python setup. I have searched the problem a bit and found an answer here. It seems that mixes Python 2 with Python 3. |
As a user, I shouldn't have to update my main_wrapper.c file on my machine to run ocean-lib properly. Here is a screen recording to show my installation process from the readmes and the import failure. |
There is a problem related on how did you manage to install python on your machine. It's a Python version issue that you have encountered, not an ocean-lib issue. |
So what you're saying is that I can't run Ocean-lib with Python 3.9.12 as installed by Anaconda? |
Anaconda is not yet fully supported, check in install.md https://github.com/oceanprotocol/ocean.py/blob/main/READMEs/install.md#install-oceanpy-library. The comment right above |
It shouldn't be a problem with Python 3.9.12 being installed by Anaconda... That comment refers to not being able to use a conda virtual environment. Either way, I will go through uninstalling python entirely on my system and install an old version of python to try to get this working. Will report back. |
Resolved by installing Python 3.10.4. Takeaway: Cannot use either conda virtual environment, nor even a Python install by Anaconda with ocean-lib. |
I got the following import error message after setting up my virtual enviornment and installing ocean-lib. I am using Windows. ImportError: cannot import name 'Accounts' from partially initialized module 'brownie.network.account' (most likely due to a circular import) (C:\Users\Chris\oceanpy\venv\lib\site-packages\brownie\network\account.py) |
@graceful-coder it seems from your comment the issue was solved? |
Closing as discussed on Slack with Christian. |
Describe the bug
Cannot import connect_to_network module when following the setup-local.md instructions on Mac M1.
To Reproduce
Steps to reproduce the behavior:
1. Go to setup-local.md README
2. Follow the steps 1-4 on a Mac or Windows
3. See error on 4th step
Expected behavior
No python errors when setting up Alice and Bob in python with ETH and OCEAN.
Desktop (please complete the following information):
Screenshots
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: