nim-lang / packages

List of packages for Nimble
Creative Commons Attribution 4.0 International
450 stars 703 forks source link

downloading the packages.json is timing out. So not able to do nimble install #2748

Open bhagihp opened 1 year ago

PhilippMDoerner commented 1 year ago

Could you provide a small way on how to reproduce? Just randomly running nimble install didn't trigger anything on my end.

Worst case scenario, can you replicate the issue when using atlas (you should have atlas implicitly installed if you have nim2.0 installed)

bhagihp commented 1 year ago

@PhilippMDoerner

i had 2 dependecies in .nimble file. Now when it is trying to download jester, it is internally trying to download httpbeast@>= 0.3.0. But it is failing with this error.

Upon debugging found that, when it was trying to download packages.json from this repository, it is taking long time due to size and request is getting timed out. But, when i download packages.json manually and keep it in the project, it is able to download the packages.

.nimble file

requires "nim >= 1.6.10"
requires "jester#baca3f"

Error:

86.22  Installing httpbeast@>= 0.3.0
86.22        Tip: 12 messages have been suppressed, use --verbose to show them.
86.22 nimble.nim(683)          getDownloadInfo
86.22 
86.22     Error:  Package httpbeast@>= 0.3.0 not found.
PhilippMDoerner commented 1 year ago

I'm running into a bit of a problem here because I can't replicate either problem:

  1. Downloading packges.json functions without issue
  2. Running nimble install in a dummy project with these requires statements functions without issue:
    requires "nim >= 1.6.10"
    requires "jester#baca3f"

This was done under nim version:

Nim Compiler Version 2.0.0 [Linux: amd64]
Compiled at 2023-08-01
Copyright (c) 2006-2023 by Andreas Rumpf

git hash: a488067a4130f029000be4550a0fb1b39e0e9e7c
active boot switches: -d:release

nimble version:

nimble v0.14.2 compiled at 2023-08-01 01:21:33

Run on Arch Linux with a 100 MBit connection (either of which may be influencing this issue).

ringabout commented 11 months ago

You should add --verbose or --debug to get more useful information