kintsuba / trailer-bot

Trailer-chan Bot for Misskey
8 stars 0 forks source link

Error: attempting to call undeclared routine: 'getGMTime' #6

Closed mendakon closed 2 years ago

mendakon commented 3 years ago

はじめまして。すしすき~の管理人をやっております。 git clone で引っ張ってきて、nimbleでビルドしようとしたら次のようなエラーが出ました。 環境はubuntu20.10です。 制作者の知恵を貸していただきたく思います。 ちなみにnimの知識は全くありません


/trailer-bot# nimble build --verbose
  Verifying dependencies for trailer_bot@0.1.1
    Reading official package list
   Checking for yaml@>= 0.13.0
      Info: Dependency on yaml@>= 0.13.0 already satisfied
  Verifying dependencies for yaml@0.14.0
   Building trailer_bot/trailer_bot using c backend
  Executing /root/.nimble/bin/nim c --colors:on --noNimblePath -d:NimblePkgVersion=0.1.1 --path:/root/.nimble/pkgs/yaml-0.14.0 -o:/usr/local/trailer-bot/trailer_bot /usr/local/trailer-bot/src/trailer_bot.nim
Hint: used config file '/root/.choosenim/toolchains/nim-1.4.4/config/nim.cfg' [Conf]
Hint: used config file '/root/.choosenim/toolchains/nim-1.4.4/config/config.nims' [Conf]
Hint: used config file '/usr/local/trailer-bot/src/trailer_bot.nim.cfg' [Conf]
..........................................................
/root/.nimble/pkgs/yaml-0.14.0/yaml/serialization.nim(407, 18) Error: attempting to call undeclared routine: 'getGMTime'
     Error: Build failed for package: trailer_bot
        ... Execution failed with exit code 1
        ... Command: /root/.nimble/bin/nim c --colors:on --noNimblePath -d:NimblePkgVersion=0.1.1 --path:/root/.nimble/pkgs/yaml-0.14.0 -o:/usr/local/trailer-bot/trailer_bot /usr/local/trailer-bot/src/trailer_bot.nim```
kintsuba commented 3 years ago

うーむ、nimble install yaml の時点でこけちゃいますね……

kintsuba commented 3 years ago

https://github.com/flyx/NimYAML を別途 git clone して nimble install した後、改めてこちらで nimble install すると動きますね。nimble に登録されてるパッケージがおかしいのかな

mendakon commented 3 years ago

とりあえず動きました!ありがとうございます☺