No such file or directory: '/Applications/Electrum.app/Contents/MacOS/mnemonic/wordlist/english.txt'
See original GitHub issueAttempting to generate BIPS39 seed words from console on Mac OS using the below command
import mnemonic
mnemonic.Mnemonic('english').generate(256)
throws the following error
Traceback (most recent call last):
FileNotFoundError: [Errno 2] No such file or directory: '/Applications/Electrum.app/Contents/MacOS/mnemonic/wordlist/english.txt'
There is no /mnemonic
directory within the Electrum package but I was able to locate the wordlist
directory at /Applications/Electrum.app/Contents/Resources/electrum/wordlist
Electrum 4.1.5 Mac OS 11.5.2 Big Sur
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
no such file or directory error(python) - Stack Overflow
You need to join the basename to the root directory unless your cwd is where the files are located which by your error...
Read more >spesmilo/electrum
No such file or directory : '/Applications/Electrum.app/Contents/MacOS/mnemonic/wordlist/english.txt'. Attempting to generate BIPS39 seed words from console ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes.
Note that
electrum.mnemonic
is a module inside electrum for Electrum seeds, whilemnemonic
is a python package maintained by Trezor for bip39 seeds. The former is a core part of electrum, while the latter is an indirect dependency as some hardware wallets depend on it.