cosmpy icon indicating copy to clipboard operation
cosmpy copied to clipboard

No module named 'gogoproto' when using pyinstaller

Open henzycuong1 opened this issue 1 year ago • 1 comments

Prerequisites

  • [X] I checked the documentation and found no answer to my problem
  • [X] I checked the existing issues and made sure there are no similar bug reports

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

henzycuong1 avatar Jul 30 '24 12:07 henzycuong1

Hi @henzycuong1

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

kshipra-fetch avatar Aug 01 '24 09:08 kshipra-fetch