ebroecker / canmatrix

Converting Can (Controller Area Network) Database Formats .arxml .dbc .dbf .kcd ...
BSD 2-Clause "Simplified" License
907 stars 400 forks source link

Converted exe file issue using pyinstaller #491

Closed manjushmk closed 4 years ago

manjushmk commented 4 years ago

Hello,

First of all: Great work on CANMATRIX......

The converted file doesn't work.

#################################### from canmatrix import convert, canmatrix

convert.convert('D:\Script\1.dbc', 'D:\Script\1.csv')

####################################

Any lead could be helpful

ebroecker commented 4 years ago

I usually do it this way:

pyinstaller.exe --hidden-import=canmatrix.cli.convert --hidden-import=canmatrix.formats.dbc --hidden-import=canmatrix.formats.csv --hidden-import=canmatrix.formats.json --hidden-import=canmatrix.formats.dbc --hidden-import=canmatrix.formats.dbf --hidden-import=canmatrix.formats.fibex --hidden-import=canmatrix.formats.kcd --hidden-import=canmatrix.formats.sym --hidden-import=canmatrix.formats.xls --hidden-import=canmatrix.formats.xls_common --hidden-import=canmatrix.formats.xlsx --hidden-import=canmatrix.formats.yaml --hidden-import=canmatrix.formats.arxml --hidden-import=canmatrix.formats.scapy --hidden-import=canmatrix.formats.wireshark --onefile canmatrix\examples\convert.py

manjushmk commented 4 years ago

Hello @ebroecker , Worked like charm.... The complete code is working now as single exe.

Thanks for your quick reply....

Keep rocking...

manjushmk commented 4 years ago

As the issue is resolved, closing the issue.