Forums

Problem with importing Moralis

Anyone experience with Moralis? I pip-installed it and the same version which runs locally does not run on PythonAnywhere. Error output: 2025-09-14 13:56:24 Traceback (most recent call last):#012 File "/home/peterS53/Wallet-Wrapper.py", line 22, in <module>#012 from cint_moralis import CintMoralis#012 File "/home/peterS53/cint_moralis.py", line 11, in <module>#012 from moralis import evm_api#012 File "/home/peterS53/.local/lib/python3.10/site-packages/moralis/init.py", line 1, in <module>#012 from .evm_api import #012 File "/home/peterS53/.local/lib/python3.10/site-packages/moralis/evm_api/init.py", line 1, in <module>#012 from .evm_api import #012 File "/home/peterS53/.local/lib/python3.10/site-packages/moralis/evm_api/evm_api.py", line 1, in <module>#012 from .balance import balance#012 File "/home/peterS53/.local/lib/python3.10/site-packages/moralis/evm_api/balance/init.py", line 1, in <module>#012 from .balance import *#012 File "/home/peterS53/.local/lib/python3.10/site-packages/moralis/evm_api/balance/balance.py", line 1, in <module>#012 from .get_native_balance import get_nati

Hi,

Are you using a virtualenv? It could be worth trying to install and run your code within a virtualenv to see if that helps resolve the issue. Virtualenvs provide a cleaner environment so there's less chance of package and dependency conflicts.

We have some information about virtualenvs here if you have not used them before.

Many thanks, I will try next week.

Let us know if you need any other help.