question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No such file or directory: '/Applications/Electrum.app/Contents/MacOS/mnemonic/wordlist/english.txt'

See original GitHub issue

Attempting 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:open
  • Created 2 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
SomberNightcommented, Sep 15, 2021

Yes.

1reaction
SomberNightcommented, Sep 15, 2021

Note that electrum.mnemonic is a module inside electrum for Electrum seeds, while mnemonic 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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found