fetchai / cosmpy

A Python client library for interacting with blockchains based on the Cosmos-SDK
Apache License 2.0
129 stars 75 forks source link

No module named 'gogoproto' when using pyinstaller #399

Open henzycuong1 opened 2 months ago

henzycuong1 commented 2 months ago

Prerequisites

Category

Other

Expected Behavior

No response

Observed Behavior

I used pyinstaller to generate the exe file but when I run the file it gives me an error "No module named 'gogoproto' " while I can still run it on my source code.

Traceback (most recent call last):
  File "swap.py", line 9, in <module>
  File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module
  File "cosmpy\aerial\client\__init__.py", line 34, in <module>
  File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module
  File "cosmpy\aerial\client\bank.py", line 23, in <module>
  File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module
  File "cosmpy\protos\cosmos\bank\v1beta1\tx_pb2.py", line 15, in <module>
ModuleNotFoundError: No module named 'gogoproto'
[15000] Failed to execute script 'swap' due to unhandled exception!

To Reproduce

No response

Version

0.5.0

Environment Details (Optional)

No response

Failure Logs (Optional)

No response

Additional Information (Optional)

No response

kshipra-fetch commented 2 months ago

Hi @henzycuong1

Thank you for reporting this issue. @pbukva Could you please take a look at this issue?