I'm encountering an issue with the eth-ape tool in Python 3.9.17.
Hello, I am currently facing a problem with the eth-ape tool in Python 3.9.17. Although I have installed it successfully, I am encountering a syntax error related to the 'print' statement, which is commonly associated with Python 2 syntax. Here is the error message I received:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.10/bin/ape", line 6, in <module>
from ape.main import main
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/ape/__init__.py", line 109
print inspect.getdoc(self._tasks)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
I am confused about why this issue is happening since I am using Python 3 to run eth-ape. Here is the version of Python I am using:
python --version
Python 3.9.17
And I have confirmed that eth-ape is installed in my Python 3 environment:
python3 -m pip install eth-ape
Requirement already satisfied: ape in ./env/lib/python3.9/site-packages (0.4.0)
Requirement already satisfied: featuremonkey>=0.2.2 in ./env/lib/python3.9/site-packages (from ape) (0.3.1)
below is my deloy.py code:
from brownie import accounts
def deploy_simple_storage():
account = accounts[0]
print(account)
def main():
deploy_simple_storage()
Can someone please help me find a solution to this problem? I would greatly appreciate any suggestions or guidance provided. Thank you in advance!