Skip to content
This repository was archived by the owner on Aug 17, 2024. It is now read-only.

Error: cannot open file: httpauthpkg/base on nim 0.20 #16

@archaistvolts

Description

@archaistvolts

I have nim 0.20.0 on windows 10. When I try to nimble install httpauth@#head, I get:
Error: cannot open file: subexes

I see that subexes has been moved to the nim graveyard but can still be installed with nimble install subexes.

output below:

Expand
λ nimble install httpauth@#head
Downloading https://github.com/FedericoCeratto/nim-httpauth using git
  Verifying dependencies for httpauth@#head
      Info: Dependency on libsodium@any version already satisfied
  Verifying dependencies for libsodium@0.4.1
 Installing httpauth@#head
   Building httpauth/httpauth.exe using c backend
       Tip: 4 messages have been suppressed, use --verbose to show them.
     Error: Build failed for package: httpauth
        ... Details:
        ... Execution failed with exit code 1
        ... Command: "F:\Users\Travis\AppData\Local\nim-0.20.0\bin\nim.exe" c --noBabelPath -d:release --path:"F:\Users\Travis\.nimble\pkgs\libsodium-0.4.1"  -o:"C:\Users\Travis\AppData\Local\Temp\nimble_240\githubcom_FedericoCerattonimhttpauth_#head\httpauth.exe" "C:\Users\Travis\AppData\Local\Temp\nimble_240\githubcom_FedericoCerattonimhttpauth_#head\httpauth.nim"
        ... Output: Hint: used config file 'F:\Users\Travis\AppData\Local\nim-0.20.0\config\nim.cfg' [Conf]
        ... Hint: used config file 'C:\Users\Travis\AppData\Local\Temp\nimble_240\githubcom_FedericoCerattonimhttpauth_#head\nim.cfg' [Conf]
        ... Hint: used config file 'F:\Users\Travis\AppData\Local\nim-0.20.0\config\config.nims' [Conf]
        ... Hint: system [Processing]
        ... Hint: widestrs [Processing]
        ... Hint: io [Processing]
        ... Hint: httpauth [Processing]
        ... Hint: asyncdispatch [Processing]
        ... Hint: os [Processing]
        ... Hint: strutils [Processing]
        ... Hint: parseutils [Processing]
        ... Hint: math [Processing]
        ... Hint: bitops [Processing]
        ... Hint: macros [Processing]
        ... Hint: algorithm [Processing]
        ... Hint: unicode [Processing]
        ... Hint: pathnorm [Processing]
        ... Hint: osseps [Processing]
        ... Hint: winlean [Processing]
        ... Hint: dynlib [Processing]
        ... Hint: times [Processing]
        ... Hint: options [Processing]
        ... Hint: typetraits [Processing]
        ... Hint: time_t [Processing]
        ... Hint: tables [Processing]
        ... Hint: hashes [Processing]
        ... Hint: heapqueue [Processing]
        ... Hint: lists [Processing]
        ... Hint: asyncstreams [Processing]
        ... Hint: asyncfutures [Processing]
        ... Hint: deques [Processing]
        ... Hint: cstrutils [Processing]
        ... Hint: nativesockets [Processing]
        ... Hint: net [Processing]
        ... Hint: sets [Processing]
        ... Hint: openssl [Processing]
        ... Hint: cookies [Processing]
        ... Hint: strtabs [Processing]
        ... Hint: logging [Processing]
        ... Hint: httpcore [Processing]
        ... Hint: json [Processing]
        ... Hint: lexbase [Processing]
        ... Hint: streams [Processing]
        ... Hint: parsejson [Processing]
        ... C:\Users\Travis\AppData\Local\Temp\nimble_240\githubcom_FedericoCerattonimhttpauth_#head\httpauth.nim(19, 6) Error: cannot open file: subexes

So I cloned this repo and changed httpauth.nimble(12) to

requires "nim >= 0.19.0", "libsodium", "subexes"

which got past the error.

Then, there is an error:
httpauth.nim(25, 19) Error: cannot open file: httpauthpkg/base

It seems that all the files in httpauthpkg/ aren't being copied by nimble install. Any ideas? I forked the repo with these changes and also tried adding a copyFiles task which runs after install. But that doesn't seem to work.

I'm getting the same error when I try to deploy to heroku on ubuntu 16.

Thanks for sharing this and for any ideas you might have.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions