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

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

Open
travisstaloch opened this issue Jul 15, 2019 · 1 comment
Open

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

travisstaloch opened this issue Jul 15, 2019 · 1 comment

Comments

@travisstaloch
Copy link

travisstaloch commented Jul 15, 2019

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.

@travisstaloch travisstaloch changed the title Error: cannot open file: subexes on windows, nim 0.20 Error: cannot open file: httpauthpkg/base on nim 0.20 Jul 15, 2019
@FedericoCeratto
Copy link
Owner

It should be fixed in 7959aa6 - please confirm :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants