q9f / bip39.cr

a native library implementing bip-39 purely for the crystal language.
https://q9f.github.io/bip39.cr/
Apache License 2.0
16 stars 1 forks source link

Error opening file with mode 'r': 'dict/english.txt': No such file or directory (File::NotFoundError) on Crystal 1.5.0 #8

Closed zw963 closed 2 years ago

zw963 commented 2 years ago

Please check following backtrace, thank you.

  from /usr/share/crystal/src/crystal/system/unix/file.cr:11:7 in 'open'
  from /usr/share/crystal/src/file.cr:120:5 in 'new'
  from /usr/share/crystal/src/file.cr:656:5 in 'read'
  from /usr/share/crystal/src/file.cr:670:3 in 'read'
  from lib/bip39/src/util.cr:27:5 in 'word_list'
  from lib/bip39/src/bip39.cr:164:7 in 'to_words'
  from src/project_root.cr:37:1 in '->'
  from lib/kemal/src/kemal/route.cr:12:26 in '->'
  from lib/kemal/src/kemal/route_handler.cr:49:39 in 'process_request'
  from lib/kemal/src/kemal/route_handler.cr:17:7 in 'call'
  from /usr/share/crystal/src/http/server/handler.cr:28:7 in 'call_next'
  from lib/kemal/src/kemal/websocket_handler.cr:13:14 in 'call'
  from /usr/share/crystal/src/http/server/handler.cr:28:7 in 'call_next'
  from lib/kemal/src/kemal/filter_handler.cr:21:7 in 'call'
  from /usr/share/crystal/src/http/server/handler.cr:28:7 in 'call_next'
  from lib/kemal/src/kemal/static_file_handler.cr:75:9 in 'call'
  from /usr/share/crystal/src/http/server/handler.cr:28:7 in 'call_next'
  from lib/kemal/src/kemal/exception_handler.cr:8:7 in 'call'
  from /usr/share/crystal/src/http/server/handler.cr:28:7 in 'call_next'
  from lib/kemal/src/kemal/log_handler.cr:8:37 in 'call'
  from /usr/share/crystal/src/http/server/handler.cr:28:7 in 'call_next'
  from lib/kemal/src/kemal/init_handler.cr:12:7 in 'call'
  from /usr/share/crystal/src/http/server/request_processor.cr:51:11 in 'process'
  from /usr/share/crystal/src/http/server.cr:515:5 in 'handle_client'
  from /usr/share/crystal/src/http/server.cr:468:13 in '->'
  from /usr/share/crystal/src/fiber.cr:146:11 in 'run'
  from /usr/share/crystal/src/fiber.cr:98:34 in '->'
zw963 commented 2 years ago

I create a PR #9 for fix this, thank you.