create shhs/forms/
create shhs/forms/shhs1/
Traceback (most recent call last):
23: from C:/Ruby27-x64/bin/nsrr:23:in <main>'
22: from C:/Ruby27-x64/bin/nsrr:23:in
load'
21: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/nsrr-7.0.0/bin/nsrr:6:in <top (required)>'
20: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/nsrr-7.0.0/lib/nsrr.rb:16:in
launch'
19: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/nsrr-7.0.0/lib/nsrr.rb:26:in download'
18: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/nsrr-7.0.0/lib/nsrr/commands/download.rb:14:in
run'
17: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/nsrr-7.0.0/lib/nsrr/commands/download.rb:39:in run'
16: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/nsrr-7.0.0/lib/nsrr/models/dataset.rb:81:in
download'
15: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/nsrr-7.0.0/lib/nsrr/models/dataset.rb:123:in download_helper'
14: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/nsrr-7.0.0/lib/nsrr/models/dataset.rb:123:in
each'
13: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/nsrr-7.0.0/lib/nsrr/models/dataset.rb:124:in block in download_helper'
12: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/nsrr-7.0.0/lib/nsrr/models/dataset.rb:123:in
download_helper'
11: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/nsrr-7.0.0/lib/nsrr/models/dataset.rb:123:in each'
10: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/nsrr-7.0.0/lib/nsrr/models/dataset.rb:124:in
block in download_helper'
9: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/nsrr-7.0.0/lib/nsrr/models/dataset.rb:103:in download_helper'
8: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/nsrr-7.0.0/lib/nsrr/models/dataset.rb:103:in
each'
7: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/nsrr-7.0.0/lib/nsrr/models/dataset.rb:111:in block in download_helper'
6: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/nsrr-7.0.0/lib/nsrr/models/file.rb:39:in
download'
5: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/nsrr-7.0.0/lib/nsrr/models/file.rb:61:in force_download'
4: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/nsrr-7.0.0/lib/nsrr/models/file.rb:61:in
new'
3: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/nsrr-7.0.0/lib/nsrr/helpers/download_request.rb:20:in initialize'
2: from C:/Ruby27-x64/lib/ruby/2.7.0/uri/common.rb:234:in
parse'
1: from C:/Ruby27-x64/lib/ruby/2.7.0/uri/rfc3986_parser.rb:73:in parse'
C:/Ruby27-x64/lib/ruby/2.7.0/uri/rfc3986_parser.rb:67:in
split': bad URI(is not URI?): "https://sleepdata.org/datasets/shhs/files/a/11973-EH6STKXNacFEbtA6kyBn/m/nsrr-gem-v7-0-0/forms/shhs1/SHHS 1 Adverse Events Form.pdf" (URI::InvalidURIError)
Sorry, can you post screenshots of the two commands I listed? "ruby -v" and "nsrr -v"
I can then test the same setup you have. We haven't had any reports of the gem not working. Perhaps it is something with the version of Ruby you are using and the latest NSRR gem.
I don't understand what you mean by the two orders?
I installed 2.7.4 version of ruby and 7.0.0 version of NSRR gem.
Is it the disconnection caused by large amount of data, small network bandwidth and network delay?
My C disk capacity is not big, I need to export the downloaded data several times to make room. If it's broken so often, every time you connect again, is it a download again?
You can switch to another drive before running the 'nsrr' command, which will then download to the other drive. For example, if you have an external hard drive that is the "E:" drive, then type "E:" in the Command Prompt before running the commands.
Can you please try that series of commands and post the results? Thanks!
Can not continue to download, often report errors, disconnect.It's really speechless
You are getting the same problem I did - there are spaces in the filename (SHHS 1 Adverse Event Forms.pdf) and this confuses the Ruby parser. I manually downloaded the files and put them in the shhs/data/forms/shhs1 and shhs2 directories.
You can see my post here: https://sleepdata.org/forum/shhs-dataset-fails-download-bad-uri
These are the files you need to download: https://sleepdata.org/datasets/shhs/files/forms/shhs1 and https://sleepdata.org/datasets/shhs/files/forms/shhs2
I'm really sorry. It seems that it's my network problem. Today I replaced the interface and network cable of the switch, and the network is relatively stable. Although two errors were reported, it has been downloading for more than six hours, with a total of 30g. At present, the link has not been disconnected.
No problem. I wasn't sure how to troubleshoot further since it seemed like some sort of network issue outside of sleepdata.org. I'm glad the changes you tried on your end were successful!
All the best and enjoy the data.
Hi all! A new version of the NSRR gem has been released that now properly handles downloading files and folders with spaces in the path name. You can download v8.0.0 here: https://rubygems.org/gems/nsrr, or update using gem install nsrr
. Also note that the NSRR website now puts quotes around paths that include spaces, ex: nsrr download "stages/original/Site Specific PSG Notes and Information/Site PSG Sensor Photos/St Lukes"
.