Issues detecting __file__ parent apparently

72 views
Skip to first unread message

Panda

unread,
Sep 1, 2023, 3:48:30 AM9/1/23
to PyInstaller
I am trying to make a pyinstaller for a simple script but it keeps giving me this error

eth_utils.exceptions.ValidationError: Language not detected for word(s): quote cheese ski humble clever visa jaguar reward zebra behind extend balcony
[34364] Failed to execute script 'main' due to unhandled exception!

which seems to make me think that its not properly reading this __FILE__.parent properly


Sample Code:

```
from web3 import Web3

w3 = Web3()

w3.eth.account.enable_unaudited_hdwallet_features()
mnemonic = "quote cheese ski humble clever visa jaguar reward zebra behind extend balcony"        
acc = w3.eth.account.from_mnemonic(mnemonic, account_path=f"m/44'/60'/0'/0/1")```

bwoodsend

unread,
Sep 3, 2023, 6:08:03 AM9/3/23
to PyInstaller

That WORDLIST_DIR won’t exist by default because PyInstaller needs to be told to collect data files. Adding --collect-data=eth_acount.hdaccount to your pyinstaller command should do it.

Reply all
Reply to author
Forward
0 new messages