Skip to content

No module named 'gogoproto' when using pyinstaller #399

@henzycuong1

Description

@henzycuong1

Prerequisites

  • I checked the documentation and found no answer to my problem
  • 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

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions