Closed Wretnuh closed 7 months ago
Python 3.11 support hasn't been released yet, so the first thing I would try is downgrading to Python 3.10 and see if that fixes things. Let me know if it doesn't fix it and I can take a deeper look.
Compilation does not want to pack dictionaries.
It is possible to force the compiler to pack dictionaries, but I decided to just keep the wordlist folder with the necessary dictionaries next to the .exe file.
if not getattr(sys, 'frozen', False): WORDLIST_DIR = Path(__file__).parent / "wordlist" else: WORDLIST_DIR = Path(os.path.dirname(sys.executable)) / 'wordlist'
This just came up in our discord. Thanks for the response to this, @JustRomanBZK. It looks like if you're using Pyinstaller, you need to tell it where to find the files. Found in this SO answer. Closing because I don't think there is anything for us to do here.
If this is a bug report, please fill in the following sections. If this is a feature request, delete and describe what you would like with examples.
What was wrong?
After compiling via pyinstaller, the below python code would not work. It throws this error, which is found in "detect_language": "Language not detected for word(s): face business large tissue print box fix maple arena help critic border".
Code that produced the error
` from eth_account import Account
try: mnemonic_words = ('face', 'business', 'large', 'tissue', 'print', 'box', 'fix', 'maple', 'arena', 'help', 'critic', 'border')
except Exception as exception: print('failed') print(exception) input('wait') `
Full error output
Since this error is only reproducible when compiled, this is the extent of the error I am getting: "Language not detected for word(s): face business large tissue print box fix maple arena help critic border".
Environment
How can it be fixed?
Not able to find a fix