Dataset Viewer
Auto-converted to Parquet Duplicate
html_url
stringlengths
48
51
title
stringlengths
5
280
comments
stringlengths
63
51.8k
body
stringlengths
0
36.2k
comment_length
int64
16
1.52k
text
stringlengths
159
54.1k
embeddings
sequencelengths
768
768
https://github.com/huggingface/datasets/issues/7033
`from_generator` does not allow to specify the split name
Thanks for reporting, @pminervini. I agree we should give the option to define the split name. Indeed, there is a PR that addresses precisely this issue: - #7015 I am reviewing it.
### Describe the bug I'm building train, dev, and test using `from_generator`; however, in all three cases, the logger prints `Generating train split:` It's not possible to change the split name since it seems to be hardcoded: https://github.com/huggingface/datasets/blob/main/src/datasets/packaged_modules/generator/generator.py ### Steps to reproduce the bug ``` In [1]: from datasets import Dataset In [2]: def gen(): ...: yield {"pokemon": "bulbasaur", "type": "grass"} ...: In [3]: ds = Dataset.from_generator(gen) Generating train split: 1 examples [00:00, 133.89 examples/s] ``` ### Expected behavior It should be possible to specify any split name ### Environment info - `datasets` version: 2.19.2 - Platform: macOS-10.16-x86_64-i386-64bit - Python version: 3.8.5 - `huggingface_hub` version: 0.23.3 - PyArrow version: 15.0.0 - Pandas version: 2.0.3 - `fsspec` version: 2023.10.0
32
`from_generator` does not allow to specify the split name ### Describe the bug I'm building train, dev, and test using `from_generator`; however, in all three cases, the logger prints `Generating train split:` It's not possible to change the split name since it seems to be hardcoded: https://github.com/huggingface/datasets/blob/main/src/datasets/packaged_modules/generator/generator.py ### Steps to reproduce the bug ``` In [1]: from datasets import Dataset In [2]: def gen(): ...: yield {"pokemon": "bulbasaur", "type": "grass"} ...: In [3]: ds = Dataset.from_generator(gen) Generating train split: 1 examples [00:00, 133.89 examples/s] ``` ### Expected behavior It should be possible to specify any split name ### Environment info - `datasets` version: 2.19.2 - Platform: macOS-10.16-x86_64-i386-64bit - Python version: 3.8.5 - `huggingface_hub` version: 0.23.3 - PyArrow version: 15.0.0 - Pandas version: 2.0.3 - `fsspec` version: 2023.10.0 Thanks for reporting, @pminervini. I agree we should give the option to define the split name. Indeed, there is a PR that addresses precisely this issue: - #7015 I am reviewing it.
[ -0.08032244443893433, -0.18822568655014038, 0.051649514585733414, 0.3789212703704834, 0.34946805238723755, -0.0962342619895935, 0.585552990436554, 0.1975223571062088, -0.230672687292099, 0.3274785876274109, 0.14162872731685638, 0.3702322840690613, -0.09433481842279434, 0.24470113217830658, 0.10003866255283356, -0.50593101978302, 0.22616001963615417, -0.06333015859127045, -0.0542992502450943, 0.0856567919254303, -0.18264730274677277, 0.2803378105163574, -0.051301419734954834, 0.33398640155792236, -0.4956894516944885, 0.14584285020828247, 0.10439357161521912, -0.10102932900190353, -0.08404656499624252, -0.1840292513370514, 0.031946033239364624, 0.20508530735969543, -0.2970091700553894, 0.5460035800933838, -0.00012713503383565694, -0.18033955991268158, 0.28692591190338135, -0.0119156613945961, -0.14403671026229858, -0.49224525690078735, -0.04975622147321701, 0.2998698949813843, 0.04448790103197098, -0.21855270862579346, 0.008840765804052353, -0.08545403182506561, 0.09496957063674927, -0.06187749281525612, 0.4490639567375183, 0.030739039182662964, 0.03317207843065262, 0.02136249840259552, 0.06545157730579376, -0.2368825525045395, 0.014070458710193634, 0.3304879069328308, -0.4263688921928406, -0.16774021089076996, -0.3060597777366638, -0.24824051558971405, 0.06590002775192261, 0.016958121210336685, 0.1443103551864624, -0.055026765912771225, 0.24004578590393066, 0.23237432539463043, -0.26438581943511963, -0.31442931294441223, 0.09016641229391098, 0.570547878742218, -0.012669980525970459, -0.2637300193309784, -0.22202683985233307, -0.39231500029563904, 0.06554453074932098, -0.33750781416893005, 0.39796146750450134, 0.19294318556785583, -0.49288198351860046, 0.27470269799232483, -0.006977013312280178, -0.21949416399002075, -0.12566232681274414, -0.035326868295669556, 0.10946814715862274, 0.016310080885887146, -0.08705761283636093, 0.34526732563972473, 0.18590770661830902, 0.33859962224960327, 0.0816701352596283, -0.0006897635757923126, 0.11601491272449493, -0.02427050843834877, -0.2795881927013397, 0.016588248312473297, -0.10546610504388809, -0.1928098499774933, -0.1191621720790863, 0.0017779991030693054, -0.34561392664909363, -0.27597400546073914, 0.06013328209519386, 0.0651867538690567, 0.07589289546012878, -0.02231183648109436, 0.31519126892089844, 0.3352600932121277, 0.1357165426015854, 0.3335230052471161, -0.16182276606559753, -0.1791079044342041, -0.06724528223276138, -0.39025184512138367, -0.009987231343984604, -0.040867872536182404, -0.00034819357097148895, 0.2590407729148865, -0.05481181666254997, -0.29081422090530396, -0.21950531005859375, -0.23076844215393066, 0.18827836215496063, 0.2104819416999817, 0.07303978502750397, 0.10166103392839432, -0.13581879436969757, 0.17061710357666016, -0.11007505655288696, -0.34320560097694397, -0.2183007299900055, -0.07209968566894531, -0.3023757338523865, 0.3122118413448334, -0.23774155974388123, -0.1375282108783722, 0.02524515800178051, 0.1254526674747467, 0.11527753621339798, -0.3662347197532654, -0.18183164298534393, -0.029089298099279404, 0.09235301613807678, 0.2533378601074219, 0.015614282339811325, 0.19856686890125275, 0.03763215243816376, -0.23599781095981598, -0.14590764045715332, -0.044800981879234314, -0.19349008798599243, -0.41658100485801697, -0.16175007820129395, -0.010787964798510075, -0.20831632614135742, 0.4432237148284912, -0.0955430343747139, 0.10088904201984406, 0.45502138137817383, 0.24913305044174194, 0.14375224709510803, 0.19806793332099915, -0.1908876895904541, -0.1769304871559143, 0.21967993676662445, 0.17826658487319946, -0.06968779861927032, -0.1910119354724884, -0.48488855361938477, -0.14308643341064453, 0.3291427195072174, 0.10461555421352386, -0.05866529420018196, 0.1534310281276703, -0.2076471596956253, 0.04065155237913132, 0.5303833484649658, 0.27886074781417847, 0.00400124303996563, 0.08593858033418655, -0.35310590267181396, -0.07808513194322586, 0.8341800570487976, -0.21957936882972717, -0.12016014754772186, -0.10807020962238312, 0.31151920557022095, 0.05776730552315712, -0.12240710854530334, -0.16032616794109344, -0.061295036226511, -0.34333208203315735, 0.006025407463312149, -0.04639075696468353, 0.21775807440280914, 0.2014567106962204, -0.140042245388031, 0.3110930919647217, 0.48433810472488403, 0.023615527898073196, -0.05034315586090088, 0.014802781865000725, 0.328320175409317, -0.03557116538286209, -0.00003588292747735977, -0.19784533977508545, -0.22232112288475037, 0.11492175608873367, -0.31716999411582947, 0.147910937666893, -0.20357953011989594, -0.1941467970609665, -0.12204637378454208, 0.04188273102045059, -0.07035417854785919, -0.038849491626024246, -0.13995537161827087, 0.0813276469707489, 0.03675572946667671, -0.13329949975013733, -0.36715802550315857, 0.2136945277452469, -0.2491910755634308, 0.37763696908950806, -0.49616754055023193, 0.21422389149665833, 0.11694382131099701, -0.03500974550843239, -0.31263840198516846, 0.24695637822151184, 0.04590384662151337, 0.032389234751462936, -0.08553384989500046, 0.4585726261138916, 0.24786745011806488, 0.4234411120414734, -0.2772086262702942, -0.17683781683444977, -0.07153942435979843, 0.016639720648527145, -0.14880682528018951, -0.16195456683635712, -0.23924627900123596, 0.12385698407888412, 0.140385240316391, 0.09179048985242844, -0.15285362303256989, 0.2920365333557129, -0.04445815831422806, 0.07722540944814682, 0.027199411764740944, -0.21204440295696259, 0.023808585479855537, -0.4312646985054016, 0.1362064629793167, -0.11134622991085052, 0.11988016963005066, 0.026541810482740402, -0.426262766122818, -0.14894747734069824, 0.9546220302581787, 0.09968861937522888, -0.23752892017364502, -0.11530549079179764, 0.023880288004875183, -0.08811011910438538, -0.09671058505773544, 0.4988414943218231, 0.1853248029947281, -0.008888800628483295, 0.0664847195148468, 0.0917978584766388, -0.024772189557552338, -0.2553384602069855, 0.3006904721260071, 0.13121630251407623, 0.13175320625305176, -0.0045614950358867645, -0.2752264738082886, -0.2338276207447052, -0.18707218766212463, 0.054371755570173264, 0.34254753589630127, -0.00795540027320385, -0.29048073291778564, 0.14182515442371368, -0.17624010145664215, 0.002285253256559372, -0.48112940788269043, -0.03846874088048935, -0.4432051181793213, -0.25738248229026794, 0.08611876517534256, 0.23841898143291473, -0.17225699126720428, 0.12006159126758575, 0.34533581137657166, -0.2317965179681778, -0.01595247909426689, 0.017120588570833206, -0.23804163932800293, 0.18893200159072876, -0.06465693563222885, -0.04982903599739075, -0.002860030625015497, -0.18896013498306274, 0.29200637340545654, -0.19412465393543243, -0.4467872381210327, 0.0013516852632164955, -0.03438466787338257, 0.3579808175563812, -0.28253334760665894, 0.4296746253967285, 0.5197920799255371, 0.057683415710926056, 0.05392242223024368, -0.19019486010074615, 0.3008441925048828, -0.15275096893310547, 0.04283672571182251, -0.15924391150474548, 0.11042791604995728, 0.32094165682792664, -0.25825509428977966, -0.13371622562408447, -0.025313058868050575, -0.23098894953727722, 0.5024150013923645, -0.3284734785556793, 0.15727654099464417, 0.2381453663110733, -0.06704560667276382, -0.16529199481010437, -0.21095621585845947, -0.06321458518505096, -0.11873648315668106, -0.404845654964447, 0.20145438611507416, -0.26047950983047485, 0.10305936634540558, 0.11278890073299408, 0.032211095094680786, 0.1050904244184494, -0.10720407217741013, -0.06629494577646255, -0.03240319713950157, 0.009959709830582142, 0.16802211105823517, 0.3165294826030731, 0.1935584396123886, -0.10279583930969238, 0.16084237396717072, 0.042209357023239136, -0.14478763937950134, 0.04917774721980095, 0.4161277413368225, 0.09795065224170685, 0.33064737915992737, 0.34153077006340027, 0.2778926193714142, -0.02075413055717945, 0.7437508702278137, 0.34410327672958374, 0.14069609344005585, 0.07276305556297302, -0.36105290055274963, 0.1117672473192215, -0.08737378567457199, -0.29028889536857605, -0.06347828358411789, 0.18285277485847473, -0.3792511820793152, 0.016207590699195862, -0.12088663130998611, 0.38792693614959717, -0.0558403804898262, 0.2598036229610443, 0.1517065465450287, -0.528230607509613, -0.06082433462142944, 0.06235174462199211, 0.2491377592086792, -0.24237973988056183, 0.24835467338562012, -0.012049306184053421, -0.04375717043876648, 0.022207781672477722, -0.015282116830348969, 0.1579291969537735, -0.13412567973136902, -0.128015398979187, -0.2480309009552002, -0.532069206237793, 0.06756792962551117, 0.11770395934581757, -0.1166795939207077, -0.12473441660404205, -0.09894007444381714, 0.23705895245075226, 0.29150068759918213, 0.8117852807044983, -0.12458855658769608, -0.0034721344709396362, 0.1008123904466629, -0.14074090123176575, 0.2047443687915802, 0.0843370258808136, 0.2276284396648407, -0.10945826768875122, 0.23468773066997528, -0.0732012689113617, -0.5049199461936951, -0.5738019347190857, 0.32707470655441284, 0.351211816072464, -0.18141686916351318, -0.2334979772567749, -0.2447245568037033, 0.10279833525419235, 0.13231217861175537, -0.3143416941165924, 0.2440328747034073, 0.5057803988456726, -0.06674285233020782, 0.11139857769012451, 0.18648849427700043, -0.19943666458129883, 0.3182660639286041, 0.21303938329219818, 0.277875691652298, -0.28446149826049805, 0.021181020885705948, 0.21600909531116486, -0.02618781477212906, 0.10616536438465118, 0.4289197027683258, -0.5235868692398071, -0.39887985587120056, -0.06454360485076904, -0.17532210052013397, 0.4013982117176056, 0.5552745461463928, -0.32270124554634094, 0.35660919547080994, 0.14058241248130798, 0.4697781205177307, -0.009505911730229855, 0.2114233374595642, 0.49041977524757385, -0.1641668975353241, -0.33609774708747864, -0.5469289422035217, 0.4525613486766815, 0.2212667167186737, 0.0887850821018219, 0.5115723609924316, 0.3547225594520569, -0.40341395139694214, 0.057617828249931335, -0.2678452134132385, 0.909895122051239, -0.008226223289966583, -0.028204668313264847, 0.10161619633436203, -0.0265074223279953, 0.5560095310211182, -0.09220729768276215, 0.11504461616277695, -0.4188987612724304, -0.026746269315481186, -0.07291336357593536, -0.03887881338596344, 0.36281201243400574, 0.20614846050739288, 0.20195931196212769, 0.22069598734378815, -0.22451792657375336, 0.35760697722435, -0.22073765099048615, 0.1409720927476883, -0.0958627313375473, -0.19293230772018433, -0.2083570659160614, -0.19938693940639496, 0.10088351368904114, 0.1613130420446396, 0.1996268928050995, -0.3025537133216858, 0.10637830197811127, -0.18330636620521545, -0.4528600573539734, -0.058438632637262344, -0.08727777749300003, -0.2451288253068924, 0.4070594310760498, -0.402451753616333, 0.14957331120967865, 0.24804775416851044, 0.5679311156272888, 0.09163209050893784, 0.0190227460116148, 0.36230766773223877, -0.15506327152252197, 0.09837712347507477, -0.16616685688495636, 0.12672482430934906, 0.45989030599594116, 0.19521504640579224, -0.12759530544281006, 0.14801979064941406, -0.07122354954481125, -0.2667723298072815, -0.16561317443847656, -0.22997485101222992, 0.02973407693207264, -0.2881500720977783, 0.24657507240772247, -0.137624129652977, 0.18079400062561035, -0.26972439885139465, 0.030321046710014343, 0.019964799284934998, -0.23674903810024261, -0.09359433501958847, -0.4905981719493866, -0.18327665328979492, -0.20587237179279327, 0.01880306750535965, 0.057719677686691284, 0.2903057932853699, 0.354595422744751, 0.1299290955066681, 0.0032306499779224396, -0.11384585499763489, 0.04538118839263916, 0.3833131492137909, -0.769315242767334, 0.41692718863487244, 0.2713026702404022, -0.05479257553815842, 0.06316298246383667, 0.24471765756607056, -0.12036748230457306, 0.4807754456996918, -0.13650527596473694, 0.056163936853408813, -0.1968201994895935, 0.08751682937145233, 0.01970357447862625, 0.11548896133899689, 0.11646204441785812, 0.482889860868454, -0.030046746134757996, -0.04515179991722107, -0.11403579264879227, -0.1110948994755745, 0.05313016474246979, 0.092638298869133, -0.11358550190925598, 0.00040558353066444397, 0.3764466643333435, -0.18617601692676544, 0.09602467715740204, 0.008191913366317749, -0.22279299795627594, 0.01724977418780327, -0.4881431460380554, 0.19230933487415314, -0.012717995792627335, 0.11941193044185638, 0.009600977413356304, -0.03203709423542023, -0.10330116748809814, -0.25533682107925415, 0.3742423355579376, 0.29370570182800293, 0.17797912657260895, 0.3217306435108185, 0.11198059469461441, 0.23866328597068787, -0.37941819429397583, -0.2391766607761383, 0.08007574826478958, 0.7265329360961914, -0.012158016674220562, 0.22164615988731384, -0.4003203809261322, -0.025238674134016037, -0.4510364234447479, -0.007976606488227844, -0.2569013237953186, -0.01115228608250618, 0.17061495780944824, -0.09066256880760193, -0.20972886681556702, -0.03525941073894501, 0.366468220949173, 0.33952662348747253, -0.007608784828335047, -0.06074982136487961, 0.3014540672302246, -0.014854168519377708, -0.002410273998975754, 0.19641835987567902, -0.09325006604194641, -0.03447072207927704, 0.018974486738443375, 0.5905448794364929, 0.07749103009700775, 0.05805151164531708, -0.1399703472852707, -0.06340599805116653, 0.12125611305236816, 0.0011295713484287262, 0.49939024448394775, 0.8525895476341248, 0.020271066576242447, 0.5390316843986511, 0.4406685531139374, 0.18255551159381866, -0.00800112634897232, 0.46824073791503906, 0.061326950788497925, 0.17011576890945435, -0.21572458744049072, -0.04998718574643135, 0.5127609372138977, 0.17391785979270935, -0.1948554664850235, 0.18511837720870972, -0.2523278295993805, 0.07266529649496078, -0.2766706049442291, 0.4053306579589844, -0.4342347979545593, 0.2068343162536621, -0.24022796750068665, 0.20483000576496124, 0.11174525320529938, -0.06140472739934921, -0.04758329689502716, -0.06173271685838699, -0.22330743074417114, 0.11534656584262848, 0.1564931720495224, -0.19163353741168976, 0.3087143898010254, 0.07527413219213486, 0.1426888406276703, 0.1548900455236435, -0.00698060542345047, -0.12028806656599045, 0.369098961353302, -0.38841187953948975, -0.05082102119922638, -0.17662431299686432, -0.28501948714256287, 0.08540183305740356, 0.009861161932349205, 0.1566655933856964, -0.07170912623405457, 0.051198359578847885, -0.5212142467498779, 0.05234857276082039, -0.059670962393283844, 0.11776523292064667, 0.01214450504630804, 0.08962171524763107, 0.03237813711166382, 0.21924951672554016, -0.04841548949480057, -0.1329290121793747, -0.25288087129592896, 0.2829098701477051, 0.6713636517524719, -0.28247424960136414, 0.8403072357177734, -0.25847694277763367, -0.07921619713306427, -0.1274077594280243, -0.16203069686889648, -0.3444153368473053, 0.034813184291124344, 0.23460133373737335, 0.007217030972242355, -0.08114758133888245, -0.2663104236125946, -0.03769849240779877, 0.020636962726712227, 0.3044792115688324, -0.2199520319700241, -0.09240970760583878, -0.050418175756931305, -0.28575772047042847, 0.14952991902828217, 0.0679633691906929, -0.027565348893404007, 0.10946843028068542, -0.13990913331508636, -0.15611283481121063, -0.15906041860580444, 0.016691798344254494, 0.10356886684894562, -0.2447880506515503, -0.1577875167131424, 0.7030513286590576, 0.03331929072737694, -0.20212422311306, 0.0013941824436187744, -0.024559510871767998, 0.07849950343370438, -0.11961869150400162, 0.09109774231910706, -0.19516003131866455, -0.2434406876564026, -0.06845177710056305, 0.10676439106464386, 0.4584585428237915, -0.060307830572128296, 0.0011060312390327454, 0.006068620830774307, -0.10455101728439331, 0.0653366968035698, -0.23621194064617157, -0.05517294630408287, -0.22291305661201477, -0.2990022301673889, 0.24526217579841614, -0.14646928012371063, 0.4375426471233368, 0.17993803322315216, -0.024725738912820816, -0.5683186054229736, 0.253816694021225, -0.02355736680328846, 0.05982600897550583, -0.15278248488903046, -0.05807548761367798, -0.021703608334064484, 0.006095463410019875, 0.5759721398353577, 0.2221689224243164, -0.09778144955635071, -0.08935520052909851, -0.20035605132579803, -0.25869831442832947, 0.3476676940917969, -0.35502421855926514, -0.4690376818180084, -0.09614090621471405, 0.01882653683423996, 0.4235972464084625, -0.3018421530723572, -0.4353584349155426, -0.043449562042951584, 0.15911556780338287, -0.13000944256782532, 0.21733926236629486, 0.08231747150421143, 0.05344945564866066, 0.16525210440158844, 0.12320730090141296, 0.22575484216213226, 0.18718752264976501, -0.24218598008155823, 0.22168013453483582, -0.20600250363349915 ]
https://github.com/huggingface/datasets/issues/7005
EmptyDatasetError: The directory at /metadata.jsonl doesn't contain any data files
If you are trying to load your image dataset from a local folder, you should replace "data_dir=path/to/jsonl/metadata.jsonl" with the real folder path in your computer. https://huggingface.co/docs/datasets/en/image_load#imagefolder
### Describe the bug while trying to load custom dataset from jsonl file, I get the error: "metadata.jsonl doesn't contain any data files" ### Steps to reproduce the bug This is my [metadata_v2.jsonl](https://github.com/user-attachments/files/16016011/metadata_v2.json) file. I have this file in the folder with all images mentioned in that json(l) file. Through below mentioned command I am trying to load_dataset so that I can upload it as mentioned here on the [official website](https://huggingface.co/docs/datasets/en/image_dataset#upload-dataset-to-the-hub). ```` from datasets import load_dataset dataset = load_dataset("imagefolder", data_dir="path/to/jsonl/metadata.jsonl") ```` error: ```` EmptyDatasetError Traceback (most recent call last) Cell In[18], line 3 1 from datasets import load_dataset ----> 3 dataset = load_dataset("imagefolder", 4 data_dir="path/to/jsonl/file/metadata.jsonl") 5 dataset[0]["objects"] File ~/anaconda3/envs/lvis/lib/python3.11/site-packages/datasets/load.py:2594, in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, verification_mode, ignore_verifications, keep_in_memory, save_infos, revision, token, use_auth_token, task, streaming, num_proc, storage_options, trust_remote_code, **config_kwargs) 2589 verification_mode = VerificationMode( 2590 (verification_mode or VerificationMode.BASIC_CHECKS) if not save_infos else VerificationMode.ALL_CHECKS 2591 ) 2593 # Create a dataset builder -> 2594 builder_instance = load_dataset_builder( 2595 path=path, 2596 name=name, 2597 data_dir=data_dir, 2598 data_files=data_files, 2599 cache_dir=cache_dir, 2600 features=features, 2601 download_config=download_config, 2602 download_mode=download_mode, 2603 revision=revision, 2604 token=token, 2605 storage_options=storage_options, 2606 trust_remote_code=trust_remote_code, 2607 _require_default_config_name=name is None, 2608 **config_kwargs, 2609 ) 2611 # Return iterable dataset in case of streaming 2612 if streaming: File ~/anaconda3/envs/lvis/lib/python3.11/site-packages/datasets/load.py:2266, in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, token, use_auth_token, storage_options, trust_remote_code, _require_default_config_name, **config_kwargs) 2264 download_config = download_config.copy() if download_config else DownloadConfig() 2265 download_config.storage_options.update(storage_options) -> 2266 dataset_module = dataset_module_factory( 2267 path, 2268 revision=revision, 2269 download_config=download_config, 2270 download_mode=download_mode, 2271 data_dir=data_dir, 2272 data_files=data_files, 2273 cache_dir=cache_dir, 2274 trust_remote_code=trust_remote_code, 2275 _require_default_config_name=_require_default_config_name, 2276 _require_custom_configs=bool(config_kwargs), 2277 ) 2278 # Get dataset builder class from the processing script 2279 builder_kwargs = dataset_module.builder_kwargs File ~/anaconda3/envs/lvis/lib/python3.11/site-packages/datasets/load.py:1805, in dataset_module_factory(path, revision, download_config, download_mode, dynamic_modules_path, data_dir, data_files, cache_dir, trust_remote_code, _require_default_config_name, _require_custom_configs, **download_kwargs) 1782 # We have several ways to get a dataset builder: 1783 # 1784 # - if path is the name of a packaged dataset module (...) 1796 1797 # Try packaged 1798 if path in _PACKAGED_DATASETS_MODULES: 1799 return PackagedDatasetModuleFactory( 1800 path, 1801 data_dir=data_dir, 1802 data_files=data_files, 1803 download_config=download_config, 1804 download_mode=download_mode, -> 1805 ).get_module() 1806 # Try locally 1807 elif path.endswith(filename): File ~/anaconda3/envs/lvis/lib/python3.11/site-packages/datasets/load.py:1140, in PackagedDatasetModuleFactory.get_module(self) 1135 def get_module(self) -> DatasetModule: 1136 base_path = Path(self.data_dir or "").expanduser().resolve().as_posix() 1137 patterns = ( 1138 sanitize_patterns(self.data_files) 1139 if self.data_files is not None -> 1140 else get_data_patterns(base_path, download_config=self.download_config) 1141 ) 1142 data_files = DataFilesDict.from_patterns( 1143 patterns, 1144 download_config=self.download_config, 1145 base_path=base_path, 1146 ) 1147 supports_metadata = self.name in _MODULE_SUPPORTS_METADATA File ~/anaconda3/envs/lvis/lib/python3.11/site-packages/datasets/data_files.py:503, in get_data_patterns(base_path, download_config) 501 return _get_data_files_patterns(resolver) 502 except FileNotFoundError: --> 503 raise EmptyDatasetError(f"The directory at {base_path} doesn't contain any data files") from None EmptyDatasetError: The directory at path/to/jsonl/file/metadata.jsonl doesn't contain any data files` ``` ### Expected behavior It should be able load the whole file in a format of "dataset" inside the dataset variable. But it gives error "The directory at "path/to/jsonl/metadata.jsonl" doesn't contain any data files." ### Environment info I am using conda environment.
26
EmptyDatasetError: The directory at /metadata.jsonl doesn't contain any data files ### Describe the bug while trying to load custom dataset from jsonl file, I get the error: "metadata.jsonl doesn't contain any data files" ### Steps to reproduce the bug This is my [metadata_v2.jsonl](https://github.com/user-attachments/files/16016011/metadata_v2.json) file. I have this file in the folder with all images mentioned in that json(l) file. Through below mentioned command I am trying to load_dataset so that I can upload it as mentioned here on the [official website](https://huggingface.co/docs/datasets/en/image_dataset#upload-dataset-to-the-hub). ```` from datasets import load_dataset dataset = load_dataset("imagefolder", data_dir="path/to/jsonl/metadata.jsonl") ```` error: ```` EmptyDatasetError Traceback (most recent call last) Cell In[18], line 3 1 from datasets import load_dataset ----> 3 dataset = load_dataset("imagefolder", 4 data_dir="path/to/jsonl/file/metadata.jsonl") 5 dataset[0]["objects"] File ~/anaconda3/envs/lvis/lib/python3.11/site-packages/datasets/load.py:2594, in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, verification_mode, ignore_verifications, keep_in_memory, save_infos, revision, token, use_auth_token, task, streaming, num_proc, storage_options, trust_remote_code, **config_kwargs) 2589 verification_mode = VerificationMode( 2590 (verification_mode or VerificationMode.BASIC_CHECKS) if not save_infos else VerificationMode.ALL_CHECKS 2591 ) 2593 # Create a dataset builder -> 2594 builder_instance = load_dataset_builder( 2595 path=path, 2596 name=name, 2597 data_dir=data_dir, 2598 data_files=data_files, 2599 cache_dir=cache_dir, 2600 features=features, 2601 download_config=download_config, 2602 download_mode=download_mode, 2603 revision=revision, 2604 token=token, 2605 storage_options=storage_options, 2606 trust_remote_code=trust_remote_code, 2607 _require_default_config_name=name is None, 2608 **config_kwargs, 2609 ) 2611 # Return iterable dataset in case of streaming 2612 if streaming: File ~/anaconda3/envs/lvis/lib/python3.11/site-packages/datasets/load.py:2266, in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, token, use_auth_token, storage_options, trust_remote_code, _require_default_config_name, **config_kwargs) 2264 download_config = download_config.copy() if download_config else DownloadConfig() 2265 download_config.storage_options.update(storage_options) -> 2266 dataset_module = dataset_module_factory( 2267 path, 2268 revision=revision, 2269 download_config=download_config, 2270 download_mode=download_mode, 2271 data_dir=data_dir, 2272 data_files=data_files, 2273 cache_dir=cache_dir, 2274 trust_remote_code=trust_remote_code, 2275 _require_default_config_name=_require_default_config_name, 2276 _require_custom_configs=bool(config_kwargs), 2277 ) 2278 # Get dataset builder class from the processing script 2279 builder_kwargs = dataset_module.builder_kwargs File ~/anaconda3/envs/lvis/lib/python3.11/site-packages/datasets/load.py:1805, in dataset_module_factory(path, revision, download_config, download_mode, dynamic_modules_path, data_dir, data_files, cache_dir, trust_remote_code, _require_default_config_name, _require_custom_configs, **download_kwargs) 1782 # We have several ways to get a dataset builder: 1783 # 1784 # - if path is the name of a packaged dataset module (...) 1796 1797 # Try packaged 1798 if path in _PACKAGED_DATASETS_MODULES: 1799 return PackagedDatasetModuleFactory( 1800 path, 1801 data_dir=data_dir, 1802 data_files=data_files, 1803 download_config=download_config, 1804 download_mode=download_mode, -> 1805 ).get_module() 1806 # Try locally 1807 elif path.endswith(filename): File ~/anaconda3/envs/lvis/lib/python3.11/site-packages/datasets/load.py:1140, in PackagedDatasetModuleFactory.get_module(self) 1135 def get_module(self) -> DatasetModule: 1136 base_path = Path(self.data_dir or "").expanduser().resolve().as_posix() 1137 patterns = ( 1138 sanitize_patterns(self.data_files) 1139 if self.data_files is not None -> 1140 else get_data_patterns(base_path, download_config=self.download_config) 1141 ) 1142 data_files = DataFilesDict.from_patterns( 1143 patterns, 1144 download_config=self.download_config, 1145 base_path=base_path, 1146 ) 1147 supports_metadata = self.name in _MODULE_SUPPORTS_METADATA File ~/anaconda3/envs/lvis/lib/python3.11/site-packages/datasets/data_files.py:503, in get_data_patterns(base_path, download_config) 501 return _get_data_files_patterns(resolver) 502 except FileNotFoundError: --> 503 raise EmptyDatasetError(f"The directory at {base_path} doesn't contain any data files") from None EmptyDatasetError: The directory at path/to/jsonl/file/metadata.jsonl doesn't contain any data files` ``` ### Expected behavior It should be able load the whole file in a format of "dataset" inside the dataset variable. But it gives error "The directory at "path/to/jsonl/metadata.jsonl" doesn't contain any data files." ### Environment info I am using conda environment. If you are trying to load your image dataset from a local folder, you should replace "data_dir=path/to/jsonl/metadata.jsonl" with the real folder path in your computer. https://huggingface.co/docs/datasets/en/image_load#imagefolder
[ -0.016234397888183594, 0.07239946722984314, -0.025297634303569794, 0.6795621514320374, 0.007368864491581917, 0.16623660922050476, 0.01661766692996025, 0.3690929114818573, 0.20603157579898834, 0.08262968063354492, -0.02496563084423542, 0.1874658465385437, -0.33143505454063416, -0.03004961647093296, -0.050066642463207245, 0.1790800839662552, -0.12854883074760437, 0.27687036991119385, -0.1441842019557953, -0.13146109879016876, -0.21804922819137573, 0.28306645154953003, -0.18826159834861755, -0.1153782457113266, -0.1103748083114624, 0.24286489188671112, -0.0415293350815773, 0.5461862087249756, -0.02466251514852047, -0.34503212571144104, 0.04616304486989975, -0.20798851549625397, 0.02353879064321518, 0.5558899641036987, -0.00011996620014542714, 0.09448571503162384, 0.4678460955619812, -0.23483037948608398, -0.39365583658218384, -0.4956551790237427, -0.19706284999847412, -0.21441568434238434, 0.12844537198543549, -0.10338030010461807, 0.009622082114219666, -0.20243065059185028, -0.1407628357410431, -0.23766498267650604, 0.4126712679862976, 0.2267274260520935, 0.12392526865005493, 0.13465532660484314, 0.22274638712406158, -0.015200665220618248, 0.08478245884180069, 0.7601121664047241, 0.09807752817869186, 0.2915014922618866, 0.050130512565374374, -0.08558010309934616, 0.3511055111885071, 0.3572181463241577, -0.13747932016849518, 0.049861155450344086, 0.29519104957580566, 0.06945302337408066, -0.2705262303352356, -0.18731215596199036, 0.16267594695091248, 0.1941242516040802, 0.6567094922065735, -0.26317551732063293, -0.42885860800743103, -0.2488403618335724, 0.11275184154510498, -0.14053525030612946, 0.40022262930870056, 0.3142159581184387, -0.22161468863487244, -0.013296723365783691, -0.05545146390795708, -0.15396751463413239, -0.18323007225990295, 0.13876771926879883, 0.10457651317119598, 0.14863301813602448, -0.20630820095539093, -0.0232371985912323, -0.1091635674238205, -0.1777874231338501, -0.1356872022151947, -0.1660413146018982, -0.1705271452665329, 0.29832568764686584, -0.03821996971964836, 0.002876847982406616, 0.11718475073575974, -0.23127228021621704, 0.38621771335601807, 0.11823631078004837, 0.05984044075012207, -0.25032782554626465, -0.34213787317276, 0.031998928636312485, 0.31721845269203186, 0.003756146878004074, 0.254168301820755, 0.04919129237532616, 0.1838231086730957, 0.2025052309036255, 0.21349051594734192, -0.09162836521863937, -0.286661297082901, 0.11232589185237885, -0.2159791737794876, 0.04527270048856735, 0.5138431191444397, -0.17666688561439514, -0.2399628907442093, -0.04217326641082764, -0.3820432126522064, -0.06912580877542496, 0.1108563020825386, 0.21470794081687927, -0.0983583852648735, -0.08599856495857239, 0.09663428366184235, 0.0776025578379631, 0.035253964364528656, -0.13549064099788666, -0.13153736293315887, 0.16419824957847595, 0.031504590064287186, 0.07980119436979294, 0.4030193090438843, -0.17705774307250977, 0.37339168787002563, 0.08414611965417862, -0.09339570999145508, -0.07985760271549225, 0.010034620761871338, -0.1720019429922104, -0.17388460040092468, 0.46413740515708923, 0.17404428124427795, 0.23018477857112885, 0.2298513799905777, -0.22208483517169952, -0.23005181550979614, 0.1922604739665985, -0.38595154881477356, -0.12087706476449966, -0.24275971949100494, 0.07783857733011246, -0.3309178352355957, 0.0487673282623291, -0.7079396843910217, -0.008056413382291794, -0.22983911633491516, -0.18045739829540253, -0.07858457416296005, 0.1909448802471161, -0.02297639474272728, -0.22072561085224152, 0.30470868945121765, 0.9003216028213501, -0.5849183797836304, 0.07848076522350311, -0.13051551580429077, -0.1020067036151886, -0.2284119427204132, 0.03903521969914436, -0.08765287697315216, 0.4293965995311737, -0.4452558755874634, 0.20277313888072968, 0.021547533571720123, -0.7053438425064087, -0.22947141528129578, 0.06475307792425156, 0.008874811232089996, 0.23130260407924652, -0.04283412545919418, -0.15138572454452515, -0.056169360876083374, 0.03647641837596893, 0.02136320248246193, 0.07930497080087662, 0.134787917137146, -0.05808349326252937, 0.06062870845198631, -0.15848322212696075, -0.07488756626844406, 0.27219390869140625, -0.2313845008611679, 0.12674333155155182, -0.0061994194984436035, 0.12054028362035751, 0.1355525255203247, -0.1439918875694275, 0.11398757994174957, 0.47390449047088623, 0.4385104477405548, 0.08749068528413773, 0.04016125947237015, 0.0953172817826271, -0.7285781502723694, 0.1590946912765503, 0.2850550413131714, 0.13417862355709076, -0.4829370975494385, 0.06618372350931168, -0.15408650040626526, 0.036883071064949036, -0.28483712673187256, -0.3231680691242218, 0.06948120892047882, 0.1586846262216568, 0.10359084606170654, 0.18842527270317078, -0.339396208524704, 0.5021705627441406, -0.16325627267360687, 0.1650766134262085, -0.460963636636734, 0.4469996690750122, 0.2097811996936798, -0.16373585164546967, 0.12316977977752686, 0.16000887751579285, -0.02440941333770752, -0.17264920473098755, -0.12371139973402023, 0.20826205611228943, 0.23928450047969818, 0.0418672114610672, 0.15174445509910583, 0.10723142325878143, 0.0855296403169632, -0.3061961829662323, -0.003991486504673958, 0.1689176708459854, 0.35347065329551697, -0.0431121289730072, -0.35062333941459656, 0.12523750960826874, -0.18262475728988647, 0.2990742027759552, 0.0518510639667511, -0.22242526710033417, 0.2544340193271637, -0.04727361351251602, -0.08393420279026031, -0.2863750159740448, 0.03535228222608566, 0.27688243985176086, 0.3322213292121887, -0.06150347739458084, -0.09317667782306671, -0.20420092344284058, 0.19403289258480072, 0.11374275386333466, 0.11699488759040833, 0.25839102268218994, -0.3854879140853882, 0.04128788411617279, 0.09495903551578522, 0.1034727543592453, 0.6426535248756409, 0.11814286559820175, -0.24896490573883057, 0.12905870378017426, 0.1936618983745575, -0.06186331436038017, 0.09365721791982651, -0.17105086147785187, 0.15241152048110962, 0.3120315372943878, 0.12855444848537445, 0.15512628853321075, -0.33534783124923706, -0.43511804938316345, -0.15623386204242706, 0.2796691358089447, -0.26503708958625793, -0.18706084787845612, -0.19310513138771057, -0.1872270703315735, 0.08458518236875534, -0.22905948758125305, -0.40577515959739685, -0.05969320982694626, -0.2639757990837097, 0.15662400424480438, -0.08463042974472046, -0.1750430464744568, 0.11098277568817139, 0.2448551207780838, 0.26042333245277405, -0.44077208638191223, -0.41936466097831726, 0.06394456326961517, -0.18078398704528809, -0.07731205224990845, 0.2677631676197052, 0.057804301381111145, 0.09929293394088745, -0.3333824872970581, 0.12962202727794647, -0.2892036437988281, -0.19855013489723206, 0.1434026062488556, -0.01293577253818512, 0.29660022258758545, 0.21995949745178223, 0.3011680841445923, 0.21777866780757904, 0.1158643513917923, 0.3484784662723541, 0.13670943677425385, -0.3627202808856964, 0.029399722814559937, 0.1459604799747467, 0.3482317626476288, -0.3267204463481903, -0.09990765899419785, -0.24810342490673065, -0.406040221452713, 0.17669209837913513, 0.20296090841293335, 0.20769314467906952, 0.3621741235256195, 0.17898811399936676, 0.3158295452594757, -0.11351269483566284, 0.0233982615172863, -0.03434928506612778, -0.3535672426223755, 0.2809287905693054, -0.3583219349384308, -0.2638997733592987, 0.3455517292022705, 0.04241037368774414, 0.5873355269432068, -0.11121968924999237, -0.6491779088973999, -0.5597068667411804, 0.14242589473724365, 0.0990036129951477, -0.35061249136924744, -0.13213464617729187, 0.1587274670600891, 0.019761735573410988, 0.045712098479270935, -0.09862588346004486, -0.30576446652412415, -0.015008002519607544, -0.0742388442158699, 0.1260850578546524, 0.019702978432178497, 0.42886921763420105, -0.09892256557941437, 0.2986629903316498, 0.18304753303527832, -0.03673475608229637, 0.3860609531402588, -0.1441420465707779, 0.5095799565315247, -0.22293075919151306, -0.31425079703330994, -0.15868164598941803, 0.3462902307510376, 0.1367548704147339, 0.18870627880096436, 0.21740350127220154, 0.22386175394058228, -0.233800008893013, -0.051688943058252335, -0.5921611189842224, -0.06094980239868164, 0.08787252753973007, 0.04542899504303932, 0.057981040328741074, -0.045986149460077286, -0.10043903440237045, -0.19084949791431427, -0.1328551173210144, -0.06532847881317139, 0.5581292510032654, 0.16707223653793335, 0.11864709854125977, -0.18694958090782166, -0.10790657997131348, -0.12662580609321594, 0.26928603649139404, -0.06420113891363144, 0.35302630066871643, -0.12011794745922089, 0.17007610201835632, -0.09527625143527985, 0.01907271146774292, 0.638336181640625, -0.11930028349161148, 0.0000337548553943634, 0.13759130239486694, -0.16115236282348633, -0.4646359086036682, 0.07981711626052856, -0.048533085733652115, 0.14289507269859314, 0.0262705497443676, 0.7791109085083008, -0.28377392888069153, -0.19027474522590637, 0.05183170735836029, 0.22588489949703217, -0.1023712009191513, -0.31554320454597473, -0.21128897368907928, -0.5132689476013184, -0.22149275243282318, -0.26623812317848206, 0.008626749739050865, 0.40702134370803833, 0.3300914168357849, -0.05419324338436127, -0.023909734562039375, -0.2381611466407776, 0.0672643780708313, -0.02496090531349182, 0.39556148648262024, 0.10189557820558548, 0.07481218874454498, 0.2771018147468567, 0.15855419635772705, 0.3504355549812317, 0.6299038529396057, 0.2139226645231247, -0.3754520118236542, -0.04262536019086838, -0.17729134857654572, 0.13518410921096802, 0.12067937850952148, -0.02456522360444069, 0.004592470824718475, -0.2966713607311249, 0.06267815828323364, -0.36243242025375366, 0.18572933971881866, 0.022475427016615868, -0.051816754043102264, -0.06788873672485352, -0.23332013189792633, 0.3865802586078644, 0.09349140524864197, 0.2551097273826599, 0.2827135920524597, 0.16788464784622192, -0.36620721220970154, 0.047215089201927185, 0.03135733678936958, 0.5657368898391724, 0.12013274431228638, 0.09625190496444702, 0.5154724717140198, -0.24990227818489075, 0.6544961929321289, -0.3207877278327942, -0.03584256395697594, -0.2065768986940384, -0.007607332430779934, -0.0965958908200264, 0.04546083137392998, 0.23412927985191345, 0.18202434480190277, 0.07795962691307068, 0.3072367310523987, -0.0832081064581871, 0.1469377875328064, 0.05606463551521301, 0.2207600474357605, -0.040979087352752686, -0.27352625131607056, -0.5265708565711975, 0.08564393222332001, -0.17457255721092224, 0.40790364146232605, -0.07628277689218521, -0.20649045705795288, -0.28636831045150757, -0.23578469455242157, -0.19740955531597137, 0.16486957669258118, -0.12132523953914642, 0.0009590703994035721, 0.2412465363740921, -0.10233912616968155, -0.0061454251408576965, 0.15742211043834686, 0.14820784330368042, 0.12432263791561127, -0.20985299348831177, 0.10980115830898285, -0.5177064538002014, 0.1661631017923355, -0.17966872453689575, 0.17075197398662567, 0.23326367139816284, -0.09191013872623444, -0.007866501808166504, 0.031006112694740295, -0.2163514792919159, -0.11072465032339096, -0.01920071244239807, 0.14340844750404358, -0.22233696281909943, -0.15827198326587677, -0.3760746419429779, -0.03434670716524124, 0.12729746103286743, 0.04162741079926491, 0.039718128740787506, 0.23550310730934143, -0.15402592718601227, -0.10713308304548264, -0.10859070718288422, -0.36839941143989563, -0.04453720524907112, 0.44109243154525757, -0.2038959562778473, -0.22009332478046417, 0.5960922241210938, 0.05908535048365593, 0.1783936768770218, -0.188136488199234, 0.3268987238407135, 0.21989530324935913, -0.4300042688846588, 0.2731512784957886, 0.1506093591451645, 0.11298392713069916, -0.08131738007068634, 0.006681736558675766, 0.17349624633789062, -0.1785109043121338, 0.1211395114660263, -0.6053115129470825, -0.08728819340467453, 0.45549947023391724, -0.11889803409576416, -0.060220133513212204, -0.13390347361564636, 0.10123971104621887, 0.11545933783054352, -0.23275849223136902, -0.20728710293769836, 0.2522680461406708, -0.18128125369548798, 0.03268132731318474, 0.39539045095443726, 0.17371976375579834, 0.2817334830760956, 0.06410923600196838, 0.07326212525367737, -0.006973892450332642, -0.19259972870349884, -0.10373319685459137, -0.16061139106750488, 0.13703708350658417, 0.15145128965377808, 0.06621595472097397, 0.04804835096001625, -0.17438027262687683, -0.228267103433609, -0.10785841196775436, 0.07064799964427948, -0.1433013677597046, -0.15668341517448425, 0.13231301307678223, -0.034417975693941116, 0.2646048367023468, -0.238075852394104, 0.26101619005203247, 0.07152213156223297, 0.23960205912590027, 0.07449091225862503, 0.050471652299165726, -0.045183226466178894, 0.1200275868177414, -0.2554967403411865, 0.041952963918447495, -0.36035478115081787, -0.12345225363969803, 0.28076520562171936, -0.23732425272464752, 0.2833293676376343, 0.11569561064243317, 0.16671042144298553, 0.1091860681772232, -0.3733665943145752, 0.023846780881285667, 0.33992502093315125, 0.10978791117668152, -0.11198294907808304, 0.09955080598592758, 0.2762613892555237, 0.16894160211086273, -0.02389400824904442, 0.1481911540031433, -0.03290218859910965, 0.0005171224474906921, -0.10742254555225372, 0.09364645183086395, 0.517954409122467, 0.03758547455072403, 0.09020461142063141, 0.3356024920940399, -0.4283335506916046, 0.09704306721687317, 0.09947618842124939, 0.2366766631603241, 0.15454204380512238, 0.8223686218261719, -0.10784994810819626, 0.3810026943683624, -0.1443604826927185, 0.0029904842376708984, 0.04406452178955078, -0.5855844020843506, -0.13209472596645355, 0.3086599111557007, 0.3974270820617676, 0.12906710803508759, -0.2806937098503113, 0.17415198683738708, -0.2862776517868042, 0.06337416172027588, -0.009570244699716568, 0.010980671271681786, -0.07700571417808533, 0.022408802062273026, -0.1591116189956665, -0.12651032209396362, -0.032177556306123734, 0.026969242841005325, 0.1470838189125061, -0.34037506580352783, -0.09021466970443726, -0.04236593097448349, -0.3503574728965759, -0.3169069290161133, -0.11333873122930527, 0.41594162583351135, -0.12005447596311569, -0.09566265344619751, 0.36222201585769653, 0.36096882820129395, 0.07697426527738571, 0.08972406387329102, 0.43600165843963623, 0.38899141550064087, 0.48181432485580444, 0.13214460015296936, 0.10672225058078766, -0.16608352959156036, -0.08987648785114288, -0.1430491805076599, 0.3744954764842987, 0.04226343333721161, 0.028685666620731354, 0.07887595891952515, 0.11836448311805725, -0.029805663973093033, 0.05038261413574219, 0.05025680363178253, 0.12799233198165894, -0.2261575162410736, 0.0992879569530487, -0.41786709427833557, -0.01701980084180832, -0.2211018204689026, 0.04568779841065407, -0.4208240807056427, -0.23029613494873047, 0.3191504180431366, 0.3496664762496948, 0.05270154029130936, -0.026678673923015594, 0.017969582229852676, -0.32773488759994507, 0.2512287497520447, 0.553733766078949, 0.015170406550168991, -0.04587094485759735, -0.2444070279598236, -0.7512381672859192, 0.010971248149871826, -0.037638355046510696, -0.19422602653503418, -0.0438351146876812, 0.17576441168785095, -0.10267344862222672, -0.001287803053855896, -0.02515271306037903, -0.02270316518843174, 0.01908862218260765, -0.1633826643228531, -0.4268814027309418, -0.4373069703578949, -0.18798528611660004, 0.16168789565563202, -0.015011126175522804, -0.22612375020980835, 0.013875458389520645, -0.07372847944498062, 0.03139922022819519, -0.14574500918388367, 0.16383562982082367, -0.17745660245418549, 0.3700598180294037, 0.37301120162010193, 0.05283012241125107, 0.29742956161499023, -0.03446478396654129, -0.2887172996997833, -0.3476521670818329, -0.13412036001682281, -0.040637001395225525, 0.40597185492515564, 0.13630636036396027, 0.5701664686203003, -0.3111192584037781, 0.03590492904186249, -0.31020620465278625, 0.1656639277935028, -0.009843725711107254, -0.09077661484479904, -0.3409668803215027, 0.40434879064559937, -0.1440906524658203, 0.05553364381194115, 0.012868435122072697, 0.18416357040405273, -0.11149714887142181, 0.05821675807237625, -0.34868305921554565, -0.0862693265080452, 0.4884176552295685, -0.39428314566612244, -0.19874614477157593, 0.23022933304309845, 0.16542929410934448, -0.08623915165662766, -0.23651191592216492, -0.4514598548412323, 0.16202133893966675, 0.440642386674881, -0.021728988736867905, -0.1878698319196701, 0.14485496282577515, -0.1352129429578781, -0.153634175658226, -0.0326024554669857, -0.030141182243824005, 0.21930643916130066, -0.06184261292219162, 0.3933294117450714, -0.07488410174846649 ]
https://github.com/huggingface/datasets/issues/7005
EmptyDatasetError: The directory at /metadata.jsonl doesn't contain any data files
Ah yes. My bad. I was giving file name. I should have given the folder directory as the path. That solved my issue. Thank you @albertvillanova and @lhoestq.
### Describe the bug while trying to load custom dataset from jsonl file, I get the error: "metadata.jsonl doesn't contain any data files" ### Steps to reproduce the bug This is my [metadata_v2.jsonl](https://github.com/user-attachments/files/16016011/metadata_v2.json) file. I have this file in the folder with all images mentioned in that json(l) file. Through below mentioned command I am trying to load_dataset so that I can upload it as mentioned here on the [official website](https://huggingface.co/docs/datasets/en/image_dataset#upload-dataset-to-the-hub). ```` from datasets import load_dataset dataset = load_dataset("imagefolder", data_dir="path/to/jsonl/metadata.jsonl") ```` error: ```` EmptyDatasetError Traceback (most recent call last) Cell In[18], line 3 1 from datasets import load_dataset ----> 3 dataset = load_dataset("imagefolder", 4 data_dir="path/to/jsonl/file/metadata.jsonl") 5 dataset[0]["objects"] File ~/anaconda3/envs/lvis/lib/python3.11/site-packages/datasets/load.py:2594, in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, verification_mode, ignore_verifications, keep_in_memory, save_infos, revision, token, use_auth_token, task, streaming, num_proc, storage_options, trust_remote_code, **config_kwargs) 2589 verification_mode = VerificationMode( 2590 (verification_mode or VerificationMode.BASIC_CHECKS) if not save_infos else VerificationMode.ALL_CHECKS 2591 ) 2593 # Create a dataset builder -> 2594 builder_instance = load_dataset_builder( 2595 path=path, 2596 name=name, 2597 data_dir=data_dir, 2598 data_files=data_files, 2599 cache_dir=cache_dir, 2600 features=features, 2601 download_config=download_config, 2602 download_mode=download_mode, 2603 revision=revision, 2604 token=token, 2605 storage_options=storage_options, 2606 trust_remote_code=trust_remote_code, 2607 _require_default_config_name=name is None, 2608 **config_kwargs, 2609 ) 2611 # Return iterable dataset in case of streaming 2612 if streaming: File ~/anaconda3/envs/lvis/lib/python3.11/site-packages/datasets/load.py:2266, in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, token, use_auth_token, storage_options, trust_remote_code, _require_default_config_name, **config_kwargs) 2264 download_config = download_config.copy() if download_config else DownloadConfig() 2265 download_config.storage_options.update(storage_options) -> 2266 dataset_module = dataset_module_factory( 2267 path, 2268 revision=revision, 2269 download_config=download_config, 2270 download_mode=download_mode, 2271 data_dir=data_dir, 2272 data_files=data_files, 2273 cache_dir=cache_dir, 2274 trust_remote_code=trust_remote_code, 2275 _require_default_config_name=_require_default_config_name, 2276 _require_custom_configs=bool(config_kwargs), 2277 ) 2278 # Get dataset builder class from the processing script 2279 builder_kwargs = dataset_module.builder_kwargs File ~/anaconda3/envs/lvis/lib/python3.11/site-packages/datasets/load.py:1805, in dataset_module_factory(path, revision, download_config, download_mode, dynamic_modules_path, data_dir, data_files, cache_dir, trust_remote_code, _require_default_config_name, _require_custom_configs, **download_kwargs) 1782 # We have several ways to get a dataset builder: 1783 # 1784 # - if path is the name of a packaged dataset module (...) 1796 1797 # Try packaged 1798 if path in _PACKAGED_DATASETS_MODULES: 1799 return PackagedDatasetModuleFactory( 1800 path, 1801 data_dir=data_dir, 1802 data_files=data_files, 1803 download_config=download_config, 1804 download_mode=download_mode, -> 1805 ).get_module() 1806 # Try locally 1807 elif path.endswith(filename): File ~/anaconda3/envs/lvis/lib/python3.11/site-packages/datasets/load.py:1140, in PackagedDatasetModuleFactory.get_module(self) 1135 def get_module(self) -> DatasetModule: 1136 base_path = Path(self.data_dir or "").expanduser().resolve().as_posix() 1137 patterns = ( 1138 sanitize_patterns(self.data_files) 1139 if self.data_files is not None -> 1140 else get_data_patterns(base_path, download_config=self.download_config) 1141 ) 1142 data_files = DataFilesDict.from_patterns( 1143 patterns, 1144 download_config=self.download_config, 1145 base_path=base_path, 1146 ) 1147 supports_metadata = self.name in _MODULE_SUPPORTS_METADATA File ~/anaconda3/envs/lvis/lib/python3.11/site-packages/datasets/data_files.py:503, in get_data_patterns(base_path, download_config) 501 return _get_data_files_patterns(resolver) 502 except FileNotFoundError: --> 503 raise EmptyDatasetError(f"The directory at {base_path} doesn't contain any data files") from None EmptyDatasetError: The directory at path/to/jsonl/file/metadata.jsonl doesn't contain any data files` ``` ### Expected behavior It should be able load the whole file in a format of "dataset" inside the dataset variable. But it gives error "The directory at "path/to/jsonl/metadata.jsonl" doesn't contain any data files." ### Environment info I am using conda environment.
28
EmptyDatasetError: The directory at /metadata.jsonl doesn't contain any data files ### Describe the bug while trying to load custom dataset from jsonl file, I get the error: "metadata.jsonl doesn't contain any data files" ### Steps to reproduce the bug This is my [metadata_v2.jsonl](https://github.com/user-attachments/files/16016011/metadata_v2.json) file. I have this file in the folder with all images mentioned in that json(l) file. Through below mentioned command I am trying to load_dataset so that I can upload it as mentioned here on the [official website](https://huggingface.co/docs/datasets/en/image_dataset#upload-dataset-to-the-hub). ```` from datasets import load_dataset dataset = load_dataset("imagefolder", data_dir="path/to/jsonl/metadata.jsonl") ```` error: ```` EmptyDatasetError Traceback (most recent call last) Cell In[18], line 3 1 from datasets import load_dataset ----> 3 dataset = load_dataset("imagefolder", 4 data_dir="path/to/jsonl/file/metadata.jsonl") 5 dataset[0]["objects"] File ~/anaconda3/envs/lvis/lib/python3.11/site-packages/datasets/load.py:2594, in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, verification_mode, ignore_verifications, keep_in_memory, save_infos, revision, token, use_auth_token, task, streaming, num_proc, storage_options, trust_remote_code, **config_kwargs) 2589 verification_mode = VerificationMode( 2590 (verification_mode or VerificationMode.BASIC_CHECKS) if not save_infos else VerificationMode.ALL_CHECKS 2591 ) 2593 # Create a dataset builder -> 2594 builder_instance = load_dataset_builder( 2595 path=path, 2596 name=name, 2597 data_dir=data_dir, 2598 data_files=data_files, 2599 cache_dir=cache_dir, 2600 features=features, 2601 download_config=download_config, 2602 download_mode=download_mode, 2603 revision=revision, 2604 token=token, 2605 storage_options=storage_options, 2606 trust_remote_code=trust_remote_code, 2607 _require_default_config_name=name is None, 2608 **config_kwargs, 2609 ) 2611 # Return iterable dataset in case of streaming 2612 if streaming: File ~/anaconda3/envs/lvis/lib/python3.11/site-packages/datasets/load.py:2266, in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, token, use_auth_token, storage_options, trust_remote_code, _require_default_config_name, **config_kwargs) 2264 download_config = download_config.copy() if download_config else DownloadConfig() 2265 download_config.storage_options.update(storage_options) -> 2266 dataset_module = dataset_module_factory( 2267 path, 2268 revision=revision, 2269 download_config=download_config, 2270 download_mode=download_mode, 2271 data_dir=data_dir, 2272 data_files=data_files, 2273 cache_dir=cache_dir, 2274 trust_remote_code=trust_remote_code, 2275 _require_default_config_name=_require_default_config_name, 2276 _require_custom_configs=bool(config_kwargs), 2277 ) 2278 # Get dataset builder class from the processing script 2279 builder_kwargs = dataset_module.builder_kwargs File ~/anaconda3/envs/lvis/lib/python3.11/site-packages/datasets/load.py:1805, in dataset_module_factory(path, revision, download_config, download_mode, dynamic_modules_path, data_dir, data_files, cache_dir, trust_remote_code, _require_default_config_name, _require_custom_configs, **download_kwargs) 1782 # We have several ways to get a dataset builder: 1783 # 1784 # - if path is the name of a packaged dataset module (...) 1796 1797 # Try packaged 1798 if path in _PACKAGED_DATASETS_MODULES: 1799 return PackagedDatasetModuleFactory( 1800 path, 1801 data_dir=data_dir, 1802 data_files=data_files, 1803 download_config=download_config, 1804 download_mode=download_mode, -> 1805 ).get_module() 1806 # Try locally 1807 elif path.endswith(filename): File ~/anaconda3/envs/lvis/lib/python3.11/site-packages/datasets/load.py:1140, in PackagedDatasetModuleFactory.get_module(self) 1135 def get_module(self) -> DatasetModule: 1136 base_path = Path(self.data_dir or "").expanduser().resolve().as_posix() 1137 patterns = ( 1138 sanitize_patterns(self.data_files) 1139 if self.data_files is not None -> 1140 else get_data_patterns(base_path, download_config=self.download_config) 1141 ) 1142 data_files = DataFilesDict.from_patterns( 1143 patterns, 1144 download_config=self.download_config, 1145 base_path=base_path, 1146 ) 1147 supports_metadata = self.name in _MODULE_SUPPORTS_METADATA File ~/anaconda3/envs/lvis/lib/python3.11/site-packages/datasets/data_files.py:503, in get_data_patterns(base_path, download_config) 501 return _get_data_files_patterns(resolver) 502 except FileNotFoundError: --> 503 raise EmptyDatasetError(f"The directory at {base_path} doesn't contain any data files") from None EmptyDatasetError: The directory at path/to/jsonl/file/metadata.jsonl doesn't contain any data files` ``` ### Expected behavior It should be able load the whole file in a format of "dataset" inside the dataset variable. But it gives error "The directory at "path/to/jsonl/metadata.jsonl" doesn't contain any data files." ### Environment info I am using conda environment. Ah yes. My bad. I was giving file name. I should have given the folder directory as the path. That solved my issue. Thank you @albertvillanova and @lhoestq.
[ -0.016234397888183594, 0.07239946722984314, -0.025297634303569794, 0.6795621514320374, 0.007368864491581917, 0.16623660922050476, 0.01661766692996025, 0.3690929114818573, 0.20603157579898834, 0.08262968063354492, -0.02496563084423542, 0.1874658465385437, -0.33143505454063416, -0.03004961647093296, -0.050066642463207245, 0.1790800839662552, -0.12854883074760437, 0.27687036991119385, -0.1441842019557953, -0.13146109879016876, -0.21804922819137573, 0.28306645154953003, -0.18826159834861755, -0.1153782457113266, -0.1103748083114624, 0.24286489188671112, -0.0415293350815773, 0.5461862087249756, -0.02466251514852047, -0.34503212571144104, 0.04616304486989975, -0.20798851549625397, 0.02353879064321518, 0.5558899641036987, -0.00011996620014542714, 0.09448571503162384, 0.4678460955619812, -0.23483037948608398, -0.39365583658218384, -0.4956551790237427, -0.19706284999847412, -0.21441568434238434, 0.12844537198543549, -0.10338030010461807, 0.009622082114219666, -0.20243065059185028, -0.1407628357410431, -0.23766498267650604, 0.4126712679862976, 0.2267274260520935, 0.12392526865005493, 0.13465532660484314, 0.22274638712406158, -0.015200665220618248, 0.08478245884180069, 0.7601121664047241, 0.09807752817869186, 0.2915014922618866, 0.050130512565374374, -0.08558010309934616, 0.3511055111885071, 0.3572181463241577, -0.13747932016849518, 0.049861155450344086, 0.29519104957580566, 0.06945302337408066, -0.2705262303352356, -0.18731215596199036, 0.16267594695091248, 0.1941242516040802, 0.6567094922065735, -0.26317551732063293, -0.42885860800743103, -0.2488403618335724, 0.11275184154510498, -0.14053525030612946, 0.40022262930870056, 0.3142159581184387, -0.22161468863487244, -0.013296723365783691, -0.05545146390795708, -0.15396751463413239, -0.18323007225990295, 0.13876771926879883, 0.10457651317119598, 0.14863301813602448, -0.20630820095539093, -0.0232371985912323, -0.1091635674238205, -0.1777874231338501, -0.1356872022151947, -0.1660413146018982, -0.1705271452665329, 0.29832568764686584, -0.03821996971964836, 0.002876847982406616, 0.11718475073575974, -0.23127228021621704, 0.38621771335601807, 0.11823631078004837, 0.05984044075012207, -0.25032782554626465, -0.34213787317276, 0.031998928636312485, 0.31721845269203186, 0.003756146878004074, 0.254168301820755, 0.04919129237532616, 0.1838231086730957, 0.2025052309036255, 0.21349051594734192, -0.09162836521863937, -0.286661297082901, 0.11232589185237885, -0.2159791737794876, 0.04527270048856735, 0.5138431191444397, -0.17666688561439514, -0.2399628907442093, -0.04217326641082764, -0.3820432126522064, -0.06912580877542496, 0.1108563020825386, 0.21470794081687927, -0.0983583852648735, -0.08599856495857239, 0.09663428366184235, 0.0776025578379631, 0.035253964364528656, -0.13549064099788666, -0.13153736293315887, 0.16419824957847595, 0.031504590064287186, 0.07980119436979294, 0.4030193090438843, -0.17705774307250977, 0.37339168787002563, 0.08414611965417862, -0.09339570999145508, -0.07985760271549225, 0.010034620761871338, -0.1720019429922104, -0.17388460040092468, 0.46413740515708923, 0.17404428124427795, 0.23018477857112885, 0.2298513799905777, -0.22208483517169952, -0.23005181550979614, 0.1922604739665985, -0.38595154881477356, -0.12087706476449966, -0.24275971949100494, 0.07783857733011246, -0.3309178352355957, 0.0487673282623291, -0.7079396843910217, -0.008056413382291794, -0.22983911633491516, -0.18045739829540253, -0.07858457416296005, 0.1909448802471161, -0.02297639474272728, -0.22072561085224152, 0.30470868945121765, 0.9003216028213501, -0.5849183797836304, 0.07848076522350311, -0.13051551580429077, -0.1020067036151886, -0.2284119427204132, 0.03903521969914436, -0.08765287697315216, 0.4293965995311737, -0.4452558755874634, 0.20277313888072968, 0.021547533571720123, -0.7053438425064087, -0.22947141528129578, 0.06475307792425156, 0.008874811232089996, 0.23130260407924652, -0.04283412545919418, -0.15138572454452515, -0.056169360876083374, 0.03647641837596893, 0.02136320248246193, 0.07930497080087662, 0.134787917137146, -0.05808349326252937, 0.06062870845198631, -0.15848322212696075, -0.07488756626844406, 0.27219390869140625, -0.2313845008611679, 0.12674333155155182, -0.0061994194984436035, 0.12054028362035751, 0.1355525255203247, -0.1439918875694275, 0.11398757994174957, 0.47390449047088623, 0.4385104477405548, 0.08749068528413773, 0.04016125947237015, 0.0953172817826271, -0.7285781502723694, 0.1590946912765503, 0.2850550413131714, 0.13417862355709076, -0.4829370975494385, 0.06618372350931168, -0.15408650040626526, 0.036883071064949036, -0.28483712673187256, -0.3231680691242218, 0.06948120892047882, 0.1586846262216568, 0.10359084606170654, 0.18842527270317078, -0.339396208524704, 0.5021705627441406, -0.16325627267360687, 0.1650766134262085, -0.460963636636734, 0.4469996690750122, 0.2097811996936798, -0.16373585164546967, 0.12316977977752686, 0.16000887751579285, -0.02440941333770752, -0.17264920473098755, -0.12371139973402023, 0.20826205611228943, 0.23928450047969818, 0.0418672114610672, 0.15174445509910583, 0.10723142325878143, 0.0855296403169632, -0.3061961829662323, -0.003991486504673958, 0.1689176708459854, 0.35347065329551697, -0.0431121289730072, -0.35062333941459656, 0.12523750960826874, -0.18262475728988647, 0.2990742027759552, 0.0518510639667511, -0.22242526710033417, 0.2544340193271637, -0.04727361351251602, -0.08393420279026031, -0.2863750159740448, 0.03535228222608566, 0.27688243985176086, 0.3322213292121887, -0.06150347739458084, -0.09317667782306671, -0.20420092344284058, 0.19403289258480072, 0.11374275386333466, 0.11699488759040833, 0.25839102268218994, -0.3854879140853882, 0.04128788411617279, 0.09495903551578522, 0.1034727543592453, 0.6426535248756409, 0.11814286559820175, -0.24896490573883057, 0.12905870378017426, 0.1936618983745575, -0.06186331436038017, 0.09365721791982651, -0.17105086147785187, 0.15241152048110962, 0.3120315372943878, 0.12855444848537445, 0.15512628853321075, -0.33534783124923706, -0.43511804938316345, -0.15623386204242706, 0.2796691358089447, -0.26503708958625793, -0.18706084787845612, -0.19310513138771057, -0.1872270703315735, 0.08458518236875534, -0.22905948758125305, -0.40577515959739685, -0.05969320982694626, -0.2639757990837097, 0.15662400424480438, -0.08463042974472046, -0.1750430464744568, 0.11098277568817139, 0.2448551207780838, 0.26042333245277405, -0.44077208638191223, -0.41936466097831726, 0.06394456326961517, -0.18078398704528809, -0.07731205224990845, 0.2677631676197052, 0.057804301381111145, 0.09929293394088745, -0.3333824872970581, 0.12962202727794647, -0.2892036437988281, -0.19855013489723206, 0.1434026062488556, -0.01293577253818512, 0.29660022258758545, 0.21995949745178223, 0.3011680841445923, 0.21777866780757904, 0.1158643513917923, 0.3484784662723541, 0.13670943677425385, -0.3627202808856964, 0.029399722814559937, 0.1459604799747467, 0.3482317626476288, -0.3267204463481903, -0.09990765899419785, -0.24810342490673065, -0.406040221452713, 0.17669209837913513, 0.20296090841293335, 0.20769314467906952, 0.3621741235256195, 0.17898811399936676, 0.3158295452594757, -0.11351269483566284, 0.0233982615172863, -0.03434928506612778, -0.3535672426223755, 0.2809287905693054, -0.3583219349384308, -0.2638997733592987, 0.3455517292022705, 0.04241037368774414, 0.5873355269432068, -0.11121968924999237, -0.6491779088973999, -0.5597068667411804, 0.14242589473724365, 0.0990036129951477, -0.35061249136924744, -0.13213464617729187, 0.1587274670600891, 0.019761735573410988, 0.045712098479270935, -0.09862588346004486, -0.30576446652412415, -0.015008002519607544, -0.0742388442158699, 0.1260850578546524, 0.019702978432178497, 0.42886921763420105, -0.09892256557941437, 0.2986629903316498, 0.18304753303527832, -0.03673475608229637, 0.3860609531402588, -0.1441420465707779, 0.5095799565315247, -0.22293075919151306, -0.31425079703330994, -0.15868164598941803, 0.3462902307510376, 0.1367548704147339, 0.18870627880096436, 0.21740350127220154, 0.22386175394058228, -0.233800008893013, -0.051688943058252335, -0.5921611189842224, -0.06094980239868164, 0.08787252753973007, 0.04542899504303932, 0.057981040328741074, -0.045986149460077286, -0.10043903440237045, -0.19084949791431427, -0.1328551173210144, -0.06532847881317139, 0.5581292510032654, 0.16707223653793335, 0.11864709854125977, -0.18694958090782166, -0.10790657997131348, -0.12662580609321594, 0.26928603649139404, -0.06420113891363144, 0.35302630066871643, -0.12011794745922089, 0.17007610201835632, -0.09527625143527985, 0.01907271146774292, 0.638336181640625, -0.11930028349161148, 0.0000337548553943634, 0.13759130239486694, -0.16115236282348633, -0.4646359086036682, 0.07981711626052856, -0.048533085733652115, 0.14289507269859314, 0.0262705497443676, 0.7791109085083008, -0.28377392888069153, -0.19027474522590637, 0.05183170735836029, 0.22588489949703217, -0.1023712009191513, -0.31554320454597473, -0.21128897368907928, -0.5132689476013184, -0.22149275243282318, -0.26623812317848206, 0.008626749739050865, 0.40702134370803833, 0.3300914168357849, -0.05419324338436127, -0.023909734562039375, -0.2381611466407776, 0.0672643780708313, -0.02496090531349182, 0.39556148648262024, 0.10189557820558548, 0.07481218874454498, 0.2771018147468567, 0.15855419635772705, 0.3504355549812317, 0.6299038529396057, 0.2139226645231247, -0.3754520118236542, -0.04262536019086838, -0.17729134857654572, 0.13518410921096802, 0.12067937850952148, -0.02456522360444069, 0.004592470824718475, -0.2966713607311249, 0.06267815828323364, -0.36243242025375366, 0.18572933971881866, 0.022475427016615868, -0.051816754043102264, -0.06788873672485352, -0.23332013189792633, 0.3865802586078644, 0.09349140524864197, 0.2551097273826599, 0.2827135920524597, 0.16788464784622192, -0.36620721220970154, 0.047215089201927185, 0.03135733678936958, 0.5657368898391724, 0.12013274431228638, 0.09625190496444702, 0.5154724717140198, -0.24990227818489075, 0.6544961929321289, -0.3207877278327942, -0.03584256395697594, -0.2065768986940384, -0.007607332430779934, -0.0965958908200264, 0.04546083137392998, 0.23412927985191345, 0.18202434480190277, 0.07795962691307068, 0.3072367310523987, -0.0832081064581871, 0.1469377875328064, 0.05606463551521301, 0.2207600474357605, -0.040979087352752686, -0.27352625131607056, -0.5265708565711975, 0.08564393222332001, -0.17457255721092224, 0.40790364146232605, -0.07628277689218521, -0.20649045705795288, -0.28636831045150757, -0.23578469455242157, -0.19740955531597137, 0.16486957669258118, -0.12132523953914642, 0.0009590703994035721, 0.2412465363740921, -0.10233912616968155, -0.0061454251408576965, 0.15742211043834686, 0.14820784330368042, 0.12432263791561127, -0.20985299348831177, 0.10980115830898285, -0.5177064538002014, 0.1661631017923355, -0.17966872453689575, 0.17075197398662567, 0.23326367139816284, -0.09191013872623444, -0.007866501808166504, 0.031006112694740295, -0.2163514792919159, -0.11072465032339096, -0.01920071244239807, 0.14340844750404358, -0.22233696281909943, -0.15827198326587677, -0.3760746419429779, -0.03434670716524124, 0.12729746103286743, 0.04162741079926491, 0.039718128740787506, 0.23550310730934143, -0.15402592718601227, -0.10713308304548264, -0.10859070718288422, -0.36839941143989563, -0.04453720524907112, 0.44109243154525757, -0.2038959562778473, -0.22009332478046417, 0.5960922241210938, 0.05908535048365593, 0.1783936768770218, -0.188136488199234, 0.3268987238407135, 0.21989530324935913, -0.4300042688846588, 0.2731512784957886, 0.1506093591451645, 0.11298392713069916, -0.08131738007068634, 0.006681736558675766, 0.17349624633789062, -0.1785109043121338, 0.1211395114660263, -0.6053115129470825, -0.08728819340467453, 0.45549947023391724, -0.11889803409576416, -0.060220133513212204, -0.13390347361564636, 0.10123971104621887, 0.11545933783054352, -0.23275849223136902, -0.20728710293769836, 0.2522680461406708, -0.18128125369548798, 0.03268132731318474, 0.39539045095443726, 0.17371976375579834, 0.2817334830760956, 0.06410923600196838, 0.07326212525367737, -0.006973892450332642, -0.19259972870349884, -0.10373319685459137, -0.16061139106750488, 0.13703708350658417, 0.15145128965377808, 0.06621595472097397, 0.04804835096001625, -0.17438027262687683, -0.228267103433609, -0.10785841196775436, 0.07064799964427948, -0.1433013677597046, -0.15668341517448425, 0.13231301307678223, -0.034417975693941116, 0.2646048367023468, -0.238075852394104, 0.26101619005203247, 0.07152213156223297, 0.23960205912590027, 0.07449091225862503, 0.050471652299165726, -0.045183226466178894, 0.1200275868177414, -0.2554967403411865, 0.041952963918447495, -0.36035478115081787, -0.12345225363969803, 0.28076520562171936, -0.23732425272464752, 0.2833293676376343, 0.11569561064243317, 0.16671042144298553, 0.1091860681772232, -0.3733665943145752, 0.023846780881285667, 0.33992502093315125, 0.10978791117668152, -0.11198294907808304, 0.09955080598592758, 0.2762613892555237, 0.16894160211086273, -0.02389400824904442, 0.1481911540031433, -0.03290218859910965, 0.0005171224474906921, -0.10742254555225372, 0.09364645183086395, 0.517954409122467, 0.03758547455072403, 0.09020461142063141, 0.3356024920940399, -0.4283335506916046, 0.09704306721687317, 0.09947618842124939, 0.2366766631603241, 0.15454204380512238, 0.8223686218261719, -0.10784994810819626, 0.3810026943683624, -0.1443604826927185, 0.0029904842376708984, 0.04406452178955078, -0.5855844020843506, -0.13209472596645355, 0.3086599111557007, 0.3974270820617676, 0.12906710803508759, -0.2806937098503113, 0.17415198683738708, -0.2862776517868042, 0.06337416172027588, -0.009570244699716568, 0.010980671271681786, -0.07700571417808533, 0.022408802062273026, -0.1591116189956665, -0.12651032209396362, -0.032177556306123734, 0.026969242841005325, 0.1470838189125061, -0.34037506580352783, -0.09021466970443726, -0.04236593097448349, -0.3503574728965759, -0.3169069290161133, -0.11333873122930527, 0.41594162583351135, -0.12005447596311569, -0.09566265344619751, 0.36222201585769653, 0.36096882820129395, 0.07697426527738571, 0.08972406387329102, 0.43600165843963623, 0.38899141550064087, 0.48181432485580444, 0.13214460015296936, 0.10672225058078766, -0.16608352959156036, -0.08987648785114288, -0.1430491805076599, 0.3744954764842987, 0.04226343333721161, 0.028685666620731354, 0.07887595891952515, 0.11836448311805725, -0.029805663973093033, 0.05038261413574219, 0.05025680363178253, 0.12799233198165894, -0.2261575162410736, 0.0992879569530487, -0.41786709427833557, -0.01701980084180832, -0.2211018204689026, 0.04568779841065407, -0.4208240807056427, -0.23029613494873047, 0.3191504180431366, 0.3496664762496948, 0.05270154029130936, -0.026678673923015594, 0.017969582229852676, -0.32773488759994507, 0.2512287497520447, 0.553733766078949, 0.015170406550168991, -0.04587094485759735, -0.2444070279598236, -0.7512381672859192, 0.010971248149871826, -0.037638355046510696, -0.19422602653503418, -0.0438351146876812, 0.17576441168785095, -0.10267344862222672, -0.001287803053855896, -0.02515271306037903, -0.02270316518843174, 0.01908862218260765, -0.1633826643228531, -0.4268814027309418, -0.4373069703578949, -0.18798528611660004, 0.16168789565563202, -0.015011126175522804, -0.22612375020980835, 0.013875458389520645, -0.07372847944498062, 0.03139922022819519, -0.14574500918388367, 0.16383562982082367, -0.17745660245418549, 0.3700598180294037, 0.37301120162010193, 0.05283012241125107, 0.29742956161499023, -0.03446478396654129, -0.2887172996997833, -0.3476521670818329, -0.13412036001682281, -0.040637001395225525, 0.40597185492515564, 0.13630636036396027, 0.5701664686203003, -0.3111192584037781, 0.03590492904186249, -0.31020620465278625, 0.1656639277935028, -0.009843725711107254, -0.09077661484479904, -0.3409668803215027, 0.40434879064559937, -0.1440906524658203, 0.05553364381194115, 0.012868435122072697, 0.18416357040405273, -0.11149714887142181, 0.05821675807237625, -0.34868305921554565, -0.0862693265080452, 0.4884176552295685, -0.39428314566612244, -0.19874614477157593, 0.23022933304309845, 0.16542929410934448, -0.08623915165662766, -0.23651191592216492, -0.4514598548412323, 0.16202133893966675, 0.440642386674881, -0.021728988736867905, -0.1878698319196701, 0.14485496282577515, -0.1352129429578781, -0.153634175658226, -0.0326024554669857, -0.030141182243824005, 0.21930643916130066, -0.06184261292219162, 0.3933294117450714, -0.07488410174846649 ]
https://github.com/huggingface/datasets/issues/7001
Datasetbuilder Local Download FileNotFoundError
Ok it seems the solution is to use the directory string without the trailing "/" which in my case as: `parquet_dir = "~/data/Parquet" ` Still i think this is a weird behavior...
### Describe the bug So I was trying to download a dataset and save it as parquet and I follow the [tutorial](https://huggingface.co/docs/datasets/filesystems#download-and-prepare-a-dataset-into-a-cloud-storage) of Huggingface. However, during the excution I face a FileNotFoundError. I debug the code and it seems there is a bug there: So first it creates a .incomplete folder and before moving its contents the following code deletes the directory [Code](https://github.com/huggingface/datasets/blob/98fdc9e78e6d057ca66e58a37f49d6618aab8130/src/datasets/builder.py#L984) hence as a result I face with: ``` FileNotFoundError: [Errno 2] No such file or directory: '~/data/Parquet/.incomplete '``` ### Steps to reproduce the bug ``` from datasets import load_dataset_builder from pathlib import Path parquet_dir = "~/data/Parquet/" Path(parquet_dir).mkdir(parents=True, exist_ok=True) builder = load_dataset_builder( "rotten_tomatoes", ) builder.download_and_prepare(parquet_dir, file_format="parquet") ``` ### Expected behavior Downloads the files and saves as parquet ### Environment info Ubuntu, Python 3.10 ``` datasets 2.19.1 ```
32
Datasetbuilder Local Download FileNotFoundError ### Describe the bug So I was trying to download a dataset and save it as parquet and I follow the [tutorial](https://huggingface.co/docs/datasets/filesystems#download-and-prepare-a-dataset-into-a-cloud-storage) of Huggingface. However, during the excution I face a FileNotFoundError. I debug the code and it seems there is a bug there: So first it creates a .incomplete folder and before moving its contents the following code deletes the directory [Code](https://github.com/huggingface/datasets/blob/98fdc9e78e6d057ca66e58a37f49d6618aab8130/src/datasets/builder.py#L984) hence as a result I face with: ``` FileNotFoundError: [Errno 2] No such file or directory: '~/data/Parquet/.incomplete '``` ### Steps to reproduce the bug ``` from datasets import load_dataset_builder from pathlib import Path parquet_dir = "~/data/Parquet/" Path(parquet_dir).mkdir(parents=True, exist_ok=True) builder = load_dataset_builder( "rotten_tomatoes", ) builder.download_and_prepare(parquet_dir, file_format="parquet") ``` ### Expected behavior Downloads the files and saves as parquet ### Environment info Ubuntu, Python 3.10 ``` datasets 2.19.1 ``` Ok it seems the solution is to use the directory string without the trailing "/" which in my case as: `parquet_dir = "~/data/Parquet" ` Still i think this is a weird behavior...
[ -0.09115815162658691, 0.007688999176025391, 0.09595905244350433, 0.43190717697143555, 0.4101852774620056, -0.025620467960834503, -0.22146721184253693, -0.05176712945103645, -0.20363929867744446, 0.24639157950878143, 0.09236932545900345, 0.071162648499012, -0.008753609843552113, -0.007490910589694977, -0.03708494082093239, -0.10085330903530121, 0.0740511566400528, 0.13782177865505219, -0.18559694290161133, -0.15672561526298523, -0.2397616058588028, 0.31405678391456604, -0.05942580848932266, 0.1627378761768341, -0.11413378268480301, 0.18670539557933807, -0.3765939474105835, 0.5142728686332703, -0.2186441868543625, -0.08317074924707413, 0.19639360904693604, -0.23904713988304138, -0.1072862446308136, 0.5607523322105408, -0.0001239652483491227, 0.16797542572021484, 0.3173815608024597, -0.02245754934847355, -0.5664638876914978, -0.6238278150558472, -0.11988256126642227, -0.09741710126399994, 0.11633733659982681, -0.11491024494171143, 0.0904921367764473, -0.1200195923447609, 0.26786521077156067, -0.10734453797340393, 0.25477758049964905, 0.2038884311914444, 0.10684898495674133, 0.1077217310667038, 0.055021245032548904, 0.07006619870662689, 0.000284828245639801, 0.6100411415100098, -0.09385187923908234, 0.22979357838630676, -0.042951568961143494, 0.046916402876377106, 0.0735180526971817, 0.08651788532733917, -0.07811493426561356, 0.003603540360927582, 0.377505362033844, 0.4102790057659149, 0.031893812119960785, -0.3079688847064972, 0.07274186611175537, 0.18119938671588898, 0.4306420683860779, -0.38658618927001953, -0.5919078588485718, -0.44040918350219727, 0.03664083778858185, -0.1573806256055832, 0.39798644185066223, 0.29670679569244385, -0.15864452719688416, 0.18653666973114014, -0.17309007048606873, -0.19405212998390198, -0.15478213131427765, 0.10959717631340027, 0.11823584139347076, 0.1264537274837494, -0.263008713722229, 0.006497114896774292, -0.25531765818595886, 0.02202071249485016, -0.3496916592121124, -0.6065689921379089, 0.062372177839279175, 0.3463800847530365, 0.2673289477825165, 0.1741885244846344, -0.006743624806404114, 0.38137322664260864, 0.15496641397476196, 0.07779169082641602, -0.16935968399047852, -0.23155757784843445, -0.17246520519256592, 0.06324131041765213, 0.25071513652801514, -0.023603085428476334, 0.1866423338651657, 0.1480650007724762, 0.056274425238370895, 0.26929399371147156, 0.18420925736427307, -0.1489151120185852, 0.12201819568872452, -0.062470387667417526, -0.2988984286785126, -0.18259084224700928, 0.5888659358024597, -0.11325522512197495, -0.39743730425834656, 0.2225571870803833, 0.018566802144050598, 0.13146980106830597, 0.0978286862373352, 0.3290666341781616, -0.1411731243133545, -0.27678704261779785, 0.03732027858495712, 0.41989564895629883, -0.10731013119220734, 0.13488520681858063, -0.21230760216712952, -0.06903791427612305, -0.08805951476097107, -0.08757858723402023, -0.11231473088264465, -0.3890375792980194, 0.35465848445892334, 0.14575743675231934, 0.19352979958057404, -0.014395851641893387, -0.17374128103256226, -0.0598430335521698, 0.0587044358253479, 0.26708415150642395, -0.20321354269981384, 0.25508826971054077, 0.013208013027906418, -0.4380335807800293, -0.024693261831998825, 0.0454549565911293, -0.2632473409175873, -0.2379762828350067, -0.33236798644065857, 0.05684206262230873, -0.19111716747283936, 0.056992411613464355, -0.3539935052394867, -0.042987462133169174, -0.06789674609899521, -0.11124083399772644, 0.10576467216014862, 0.18375366926193237, -0.4654373526573181, -0.2005586177110672, 0.3597750961780548, 0.8228543400764465, -0.1606784164905548, -0.27921581268310547, -0.16704942286014557, -0.2544231116771698, 0.34397026896476746, 0.24349012970924377, 0.009813855402171612, 0.3291361927986145, -0.6496641039848328, 0.29509276151657104, 0.5359405875205994, -0.2844330966472626, -0.12391866743564606, 0.5942607522010803, -0.34379351139068604, 0.20214058458805084, 0.08755190670490265, -0.19464346766471863, -0.2337125688791275, -0.08777795732021332, -0.07961836457252502, 0.09306663274765015, -0.0718030333518982, 0.033077046275138855, -0.2984153926372528, -0.21118533611297607, 0.1356690526008606, 0.023190811276435852, -0.07212948799133301, 0.13453033566474915, 0.1663694530725479, 0.000305958092212677, 0.38048073649406433, -0.111517533659935, 0.30644601583480835, 0.3387150764465332, 0.22817063331604004, 0.2550210952758789, -0.18322139978408813, -0.25710123777389526, -0.6815962791442871, 0.21202433109283447, -0.1013987734913826, -0.15842607617378235, -0.37498795986175537, -0.09661473333835602, -0.09501923620700836, 0.02288840524852276, -0.34430354833602905, -0.08928266167640686, -0.015606246888637543, 0.19988977909088135, 0.04701590910553932, 0.23636706173419952, -0.2794688045978546, 0.31001296639442444, -0.23022966086864471, 0.30025556683540344, -0.22305281460285187, 0.475553035736084, 0.04801429808139801, -0.22295702993869781, -0.2903301417827606, 0.07668425142765045, 0.13990050554275513, -0.3123336732387543, 0.04875941574573517, 0.6595582962036133, -0.02792481519281864, 0.33988556265830994, 0.01777372881770134, -0.13515760004520416, 0.17391052842140198, 0.21930375695228577, -0.10948651283979416, 0.11001788079738617, 0.26066356897354126, 0.06627770513296127, -0.3655936121940613, 0.20636732876300812, 0.039937958121299744, 0.3214356005191803, 0.10206738114356995, -0.27428215742111206, 0.03519657254219055, 0.0841529369354248, -0.060554198920726776, -0.2759351134300232, 0.521131157875061, 0.062343157827854156, 0.31603285670280457, 0.08689974248409271, -0.4091015160083771, -0.1938931941986084, 0.05117904767394066, -0.14718745648860931, 0.015382643789052963, 0.35146191716194153, -0.008093617856502533, 0.03683377057313919, -0.11679232120513916, 0.17725610733032227, 0.608912467956543, -0.07100488245487213, 0.11748437583446503, 0.3098834753036499, 0.07895249128341675, -0.19435535371303558, 0.2224006950855255, 0.2861905097961426, -0.004191966261714697, 0.49850329756736755, 0.09725414216518402, 0.024844706058502197, -0.33756110072135925, -0.0728072077035904, 0.005035795271396637, 0.02861517295241356, -0.38293495774269104, 0.21552163362503052, -0.3757648468017578, -0.30960720777511597, -0.4420439302921295, 0.07801619917154312, -0.3197331428527832, -0.14533443748950958, -0.11802041530609131, 0.19519388675689697, -0.2514471113681793, -0.1333916336297989, -0.04120514169335365, -0.08788599073886871, -0.24041035771369934, -0.4831034541130066, -0.23747943341732025, 0.2840544581413269, -0.17927926778793335, -0.10958415269851685, 0.36452823877334595, 0.023867106065154076, 0.06114852428436279, -0.34852099418640137, -0.07664766907691956, -0.6157877445220947, -0.17155733704566956, 0.25245052576065063, -0.04471801221370697, 0.42808952927589417, 0.533846378326416, 0.0019460394978523254, -0.03496711328625679, -0.1858195662498474, 0.3561283349990845, -0.018572943285107613, -0.2859123647212982, 0.08182588964700699, 0.1892675757408142, 0.04629376158118248, -0.25666993856430054, -0.08150549978017807, -0.12993380427360535, -0.19091655313968658, 0.41182172298431396, 0.16668899357318878, -0.03491969406604767, 0.06468963623046875, 0.021524373441934586, 0.15829260647296906, -0.37164121866226196, 0.0011317962780594826, 0.04041352495551109, -0.6217806339263916, 0.17060841619968414, -0.05701405182480812, -0.15529538691043854, 0.13307607173919678, -0.08080330491065979, -0.02649451419711113, -0.12136411666870117, -0.31894785165786743, -0.18907755613327026, -0.018594840541481972, 0.1406863033771515, -0.13375313580036163, 0.15012304484844208, 0.3161095976829529, -0.18431083858013153, 0.09144465625286102, -0.19293323159217834, -0.14070124924182892, 0.09201061725616455, 0.3571462333202362, 0.2504633367061615, -0.1869935691356659, 0.43795013427734375, -0.09065458178520203, 0.6119682788848877, 0.05074000731110573, 0.134004607796669, 0.39798837900161743, -0.17032989859580994, 0.5948014259338379, -0.39816439151763916, -0.05857106298208237, 0.21338877081871033, 0.24487125873565674, -0.3804115056991577, 0.3119145631790161, 0.2626894414424896, 0.3711784780025482, -0.07438299059867859, -0.18441323935985565, -0.23904812335968018, -0.16102172434329987, -0.15158866345882416, 0.3045101463794708, -0.07963310927152634, 0.1887778788805008, -0.009088069200515747, 0.1307508945465088, -0.07650786638259888, 0.03083345666527748, 0.578343391418457, 0.35061874985694885, 0.10860998928546906, -0.03357603773474693, -0.04303280636668205, -0.2474079430103302, 0.09806510806083679, 0.30693140625953674, -0.14317435026168823, -0.09206198155879974, 0.025000452995300293, 0.07417396456003189, 0.015978733077645302, 0.6113867163658142, -0.04352816194295883, 0.08567168563604355, -0.23577368259429932, -0.06725409626960754, -0.40635591745376587, -0.0658470094203949, 0.06085534766316414, 0.3370930552482605, 0.01138494536280632, 0.5631027221679688, -0.3556142747402191, -0.1768646091222763, 0.1039222702383995, 0.36121299862861633, -0.08622592687606812, 0.009478424675762653, -0.48686978220939636, -0.3107598125934601, -0.33332690596580505, 0.023594163358211517, 0.10959618538618088, 0.17536304891109467, 0.37730297446250916, 0.24473319947719574, -0.021798746660351753, 0.041469089686870575, -0.2059945911169052, -0.3338126540184021, 0.3550430238246918, -0.18832509219646454, 0.0349285714328289, 0.21081943809986115, 0.22665686905384064, 0.28145793080329895, 0.6061495542526245, 0.03903699293732643, -0.2878914773464203, 0.17388027906417847, -0.24196115136146545, 0.41188812255859375, 0.3198823928833008, -0.056148458272218704, -0.07965228706598282, 0.13760903477668762, 0.2592407464981079, -0.4714629650115967, 0.15447159111499786, 0.46913832426071167, -0.2128981351852417, -0.06706682592630386, -0.0828121230006218, 0.4448527991771698, -0.06100635230541229, -0.0027797818183898926, 0.31512656807899475, 0.6161875128746033, -0.3371362090110779, 0.10991071164608002, 0.013357363641262054, 0.8618897199630737, 0.1686154305934906, 0.33316221833229065, 0.23326000571250916, -0.47665178775787354, 0.5044833421707153, -0.15936583280563354, 0.012030424550175667, -0.2082759588956833, -0.23410029709339142, -0.11355371028184891, -0.008250124752521515, 0.33092665672302246, 0.005937948822975159, -0.011433001607656479, 0.515943169593811, -0.14118874073028564, 0.3748003840446472, -0.03152500092983246, 0.0686919316649437, -0.24458765983581543, -0.11666466295719147, -0.2052614539861679, -0.004666591063141823, 0.1577325463294983, 0.37928715348243713, -0.23450663685798645, 0.039869800209999084, -0.10251347720623016, -0.12635044753551483, -0.09001822769641876, 0.14147517085075378, -0.31260061264038086, -0.13341441750526428, 0.13379861414432526, -0.31126970052719116, -0.04986601695418358, 0.4900061786174774, 0.1890026330947876, 0.04608902707695961, -0.24010509252548218, 0.13260811567306519, -0.34066760540008545, 0.22532907128334045, -0.10161487758159637, -0.1904226392507553, -0.045319072902202606, 0.01260029524564743, 0.20350271463394165, -0.3557398319244385, -0.4267925024032593, 0.07529553025960922, -0.018520206212997437, -0.08954726159572601, 0.055916089564561844, -0.20789064466953278, -0.29421088099479675, -0.23270732164382935, 0.19520443677902222, -0.11710718274116516, -0.02728119120001793, 0.1550443321466446, -0.22363826632499695, -0.42748144268989563, -0.09371007978916168, -0.44636276364326477, -0.2306840568780899, 0.45021912455558777, -0.3618986904621124, 0.04860294610261917, 0.5788860321044922, -0.1319730579853058, -0.12683892250061035, -0.08707909286022186, 0.20653828978538513, 0.12948520481586456, -0.36395663022994995, 0.13425606489181519, 0.06436153501272202, 0.21421854197978973, -0.22625602781772614, 0.24394482374191284, 0.05820118635892868, -0.3639576733112335, -0.14306847751140594, -0.2850806713104248, -0.17736735939979553, -0.02157536894083023, 0.042424920946359634, 0.006834082305431366, 0.025368541479110718, 0.020822882652282715, 0.4678739309310913, -0.4691019058227539, -0.1484299600124359, 0.10551375895738602, -0.09496544301509857, 0.128688246011734, 0.38165774941444397, 0.3955152630805969, 0.3402034640312195, -0.22867675125598907, 0.023866446688771248, 0.047789476811885834, -0.05317285656929016, -0.04910723865032196, -0.11770859360694885, 0.16533061861991882, 0.2227691113948822, 0.084904246032238, 0.07574368268251419, 0.04991752654314041, 0.019787155091762543, -0.1765175461769104, 0.06969253718852997, 0.19578257203102112, 0.03794277831912041, -0.07909918576478958, 0.4477657377719879, 0.15316569805145264, -0.19496746361255646, 0.005006436258554459, -0.11178451776504517, 0.3526456356048584, -0.08883218467235565, -0.06358221173286438, -0.19273145496845245, 0.022118613123893738, 0.1865679919719696, -0.08087139576673508, 0.04496815800666809, 0.2037515640258789, 0.15100687742233276, -0.3754463195800781, -0.03442643582820892, 0.06938549131155014, 0.506632924079895, 0.4153602123260498, -0.11977118998765945, -0.12914162874221802, 0.4459916651248932, 0.06089194118976593, -0.04416957125067711, -0.144599050283432, 0.25258514285087585, 0.05458027124404907, -0.014209970831871033, 0.18700796365737915, -0.221043661236763, 0.049427956342697144, -0.19587890803813934, 0.1502610146999359, 0.37172114849090576, -0.12157261371612549, 0.03832881525158882, 0.332501620054245, -0.05854763463139534, 0.33087795972824097, 0.17776691913604736, 0.0756940022110939, 0.18590626120567322, 0.5538725256919861, -0.009697474539279938, 0.20126086473464966, 0.014149414375424385, 0.16023953258991241, 0.020423710346221924, -0.3437651991844177, 0.03218914195895195, 0.2522481381893158, 0.0973142459988594, -0.05176219344139099, 0.0348641574382782, 0.18250927329063416, -0.09031134843826294, -0.16619665920734406, -0.08636690676212311, 0.19013947248458862, -0.27153483033180237, -0.3248807191848755, -0.027780763804912567, -0.210026353597641, 0.14363621175289154, 0.16914069652557373, -0.14867578446865082, -0.17965514957904816, 0.03126139938831329, -0.0061088502407073975, 0.07870164513587952, -0.20743948221206665, 0.06046304106712341, 0.11717767268419266, 0.05621914938092232, -0.30892616510391235, 0.2528345584869385, 0.18735885620117188, -0.168394535779953, -0.0423649437725544, 0.26590225100517273, 0.38706475496292114, 0.184105783700943, -0.13178740441799164, -0.007629343308508396, -0.04039643704891205, 0.03178650885820389, -0.02844548039138317, 0.3075511157512665, -0.2982214689254761, 0.22211554646492004, 0.42266422510147095, 0.12462738156318665, -0.052611492574214935, 0.20653310418128967, 0.2905019223690033, 0.1558026671409607, -0.3572462499141693, 0.38438910245895386, -0.3182770907878876, 0.06311400979757309, -0.11928896605968475, 0.022702418267726898, -0.35004857182502747, -0.005077752284705639, 0.09387463331222534, 0.05335598438978195, 0.26805350184440613, 0.22936901450157166, 0.01897871494293213, 0.2193530797958374, 0.23503731191158295, 0.568356990814209, -0.12057968229055405, -0.4389587342739105, -0.20276403427124023, -0.6649175882339478, 0.04333285987377167, -0.054714929312467575, 0.060373492538928986, -0.07464491575956345, 0.21743109822273254, -0.22098487615585327, 0.00746527872979641, -0.12432804703712463, 0.3091788589954376, -0.08569451421499252, 0.13662803173065186, 0.08603644371032715, -0.34678056836128235, -0.22497041523456573, -0.0604902058839798, 0.04629546403884888, -0.33924663066864014, 0.1256994754076004, -0.18671521544456482, -0.07173293828964233, 0.11694525182247162, 0.15116269886493683, -0.3010368049144745, -0.2713383436203003, 0.2593976557254791, 0.09062932431697845, -0.14776797592639923, -0.2757449150085449, -0.30881863832473755, -0.1755761355161667, -0.068545401096344, -0.21299393475055695, 0.2992003560066223, -0.2411167323589325, 0.4145250618457794, -0.48127537965774536, 0.03201087564229965, -0.4311949908733368, -0.1606871336698532, 0.323517382144928, 0.23448872566223145, -0.3522128760814667, 0.2979702651500702, -0.2801501154899597, 0.19169040024280548, 0.00700004119426012, 0.0632958859205246, -0.11547349393367767, 0.11278408765792847, -0.11738982796669006, -0.2597217857837677, 0.6109679937362671, -0.12099847197532654, -0.19861818850040436, -0.005410436540842056, 0.15607185661792755, 0.49440622329711914, -0.29102662205696106, -0.486837238073349, 0.13118627667427063, 0.4200669527053833, 0.008887292817234993, -0.21815358102321625, -0.14994673430919647, -0.18491429090499878, -0.1183430552482605, -0.05795273929834366, 0.2893867492675781, 0.1855265200138092, -0.23875181376934052, 0.553507924079895, -0.2690674066543579 ]
https://github.com/huggingface/datasets/issues/6995
ImportError when importing datasets.load_dataset
What is the version of your installed `huggingface-hub`: ```python import huggingface_hub print(huggingface_hub.__version__) ``` It seems you have a very old version of `huggingface-hub`, where `CommitInfo` was not still implemented. You need to update it: ``` pip install -U huggingface-hub ``` Note that `CommitInfo` was implemented in huggingface-hub 0.10.0 and datasets requires "huggingface-hub>=0.21.2"
### Describe the bug I encountered an ImportError while trying to import `load_dataset` from the `datasets` module in Hugging Face. The error message indicates a problem with importing 'CommitInfo' from 'huggingface_hub'. ### Steps to reproduce the bug 1. pip install git+https://github.com/huggingface/datasets 2. from datasets import load_dataset ### Expected behavior ImportError Traceback (most recent call last) Cell In[7], [line 1](vscode-notebook-cell:?execution_count=7&line=1) ----> [1](vscode-notebook-cell:?execution_count=7&line=1) from datasets import load_dataset [3](vscode-notebook-cell:?execution_count=7&line=3) train_set = load_dataset("mispeech/speechocean762", split="train") [4](vscode-notebook-cell:?execution_count=7&line=4) test_set = load_dataset("mispeech/speechocean762", split="test") File d:\Anaconda3\envs\CS224S\Lib\site-packages\datasets\__init__.py:[1](file:///D:/Anaconda3/envs/CS224S/Lib/site-packages/datasets/__init__.py:1)7 1 # Copyright 2020 The HuggingFace Datasets Authors and the TensorFlow Datasets Authors. [2](file:///D:/Anaconda3/envs/CS224S/Lib/site-packages/datasets/__init__.py:2) # [3](file:///D:/Anaconda3/envs/CS224S/Lib/site-packages/datasets/__init__.py:3) # Licensed under the Apache License, Version 2.0 (the "License"); (...) [12](file:///D:/Anaconda3/envs/CS224S/Lib/site-packages/datasets/__init__.py:12) # See the License for the specific language governing permissions and [13](file:///D:/Anaconda3/envs/CS224S/Lib/site-packages/datasets/__init__.py:13) # limitations under the License. [15](file:///D:/Anaconda3/envs/CS224S/Lib/site-packages/datasets/__init__.py:15) __version__ = "2.20.1.dev0" ---> [17](file:///D:/Anaconda3/envs/CS224S/Lib/site-packages/datasets/__init__.py:17) from .arrow_dataset import Dataset [18](file:///D:/Anaconda3/envs/CS224S/Lib/site-packages/datasets/__init__.py:18) from .arrow_reader import ReadInstruction [19](file:///D:/Anaconda3/envs/CS224S/Lib/site-packages/datasets/__init__.py:19) from .builder import ArrowBasedBuilder, BeamBasedBuilder, BuilderConfig, DatasetBuilder, GeneratorBasedBuilder File d:\Anaconda3\envs\CS224S\Lib\site-packages\datasets\arrow_dataset.py:63 [61](file:///D:/Anaconda3/envs/CS224S/Lib/site-packages/datasets/arrow_dataset.py:61) import pyarrow.compute as pc [62](file:///D:/Anaconda3/envs/CS224S/Lib/site-packages/datasets/arrow_dataset.py:62) from fsspec.core import url_to_fs ---> [63](file:///D:/Anaconda3/envs/CS224S/Lib/site-packages/datasets/arrow_dataset.py:63) from huggingface_hub import ( [64](file:///D:/Anaconda3/envs/CS224S/Lib/site-packages/datasets/arrow_dataset.py:64) CommitInfo, [65](file:///D:/Anaconda3/envs/CS224S/Lib/site-packages/datasets/arrow_dataset.py:65) CommitOperationAdd, ... [70](file:///D:/Anaconda3/envs/CS224S/Lib/site-packages/datasets/arrow_dataset.py:70) ) [71](file:///D:/Anaconda3/envs/CS224S/Lib/site-packages/datasets/arrow_dataset.py:71) from huggingface_hub.hf_api import RepoFile [72](file:///D:/Anaconda3/envs/CS224S/Lib/site-packages/datasets/arrow_dataset.py:72) from multiprocess import Pool ImportError: cannot import name 'CommitInfo' from 'huggingface_hub' (d:\Anaconda3\envs\CS224S\Lib\site-packages\huggingface_hub\__init__.py) Output is truncated. View as a [scrollable element](command:cellOutput.enableScrolling?580889ab-0f61-4f37-9214-eaa2b3807f85) or open in a [text editor](command:workbench.action.openLargeOutput?580889ab-0f61-4f37-9214-eaa2b3807f85). Adjust cell output [settings](command:workbench.action.openSettings?%5B%22%40tag%3AnotebookOutputLayout%22%5D)... ### Environment info Leo@DESKTOP-9NHUAMI MSYS /d/Anaconda3/envs/CS224S/Lib/site-packages/huggingface_hub $ datasets-cli env Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "D:\Anaconda3\envs\CS224S\Scripts\datasets-cli.exe\__main__.py", line 4, in <module> File "D:\Anaconda3\envs\CS224S\Lib\site-packages\datasets\__init__.py", line 17, in <module> from .arrow_dataset import Dataset File "D:\Anaconda3\envs\CS224S\Lib\site-packages\datasets\arrow_dataset.py", line 63, in <module> from huggingface_hub import ( ImportError: cannot import name 'CommitInfo' from 'huggingface_hub' (D:\Anaconda3\envs\CS224S\Lib\site-packages\huggingface_hub\__init__.py) (CS224S)
52
ImportError when importing datasets.load_dataset ### Describe the bug I encountered an ImportError while trying to import `load_dataset` from the `datasets` module in Hugging Face. The error message indicates a problem with importing 'CommitInfo' from 'huggingface_hub'. ### Steps to reproduce the bug 1. pip install git+https://github.com/huggingface/datasets 2. from datasets import load_dataset ### Expected behavior ImportError Traceback (most recent call last) Cell In[7], [line 1](vscode-notebook-cell:?execution_count=7&line=1) ----> [1](vscode-notebook-cell:?execution_count=7&line=1) from datasets import load_dataset [3](vscode-notebook-cell:?execution_count=7&line=3) train_set = load_dataset("mispeech/speechocean762", split="train") [4](vscode-notebook-cell:?execution_count=7&line=4) test_set = load_dataset("mispeech/speechocean762", split="test") File d:\Anaconda3\envs\CS224S\Lib\site-packages\datasets\__init__.py:[1](file:///D:/Anaconda3/envs/CS224S/Lib/site-packages/datasets/__init__.py:1)7 1 # Copyright 2020 The HuggingFace Datasets Authors and the TensorFlow Datasets Authors. [2](file:///D:/Anaconda3/envs/CS224S/Lib/site-packages/datasets/__init__.py:2) # [3](file:///D:/Anaconda3/envs/CS224S/Lib/site-packages/datasets/__init__.py:3) # Licensed under the Apache License, Version 2.0 (the "License"); (...) [12](file:///D:/Anaconda3/envs/CS224S/Lib/site-packages/datasets/__init__.py:12) # See the License for the specific language governing permissions and [13](file:///D:/Anaconda3/envs/CS224S/Lib/site-packages/datasets/__init__.py:13) # limitations under the License. [15](file:///D:/Anaconda3/envs/CS224S/Lib/site-packages/datasets/__init__.py:15) __version__ = "2.20.1.dev0" ---> [17](file:///D:/Anaconda3/envs/CS224S/Lib/site-packages/datasets/__init__.py:17) from .arrow_dataset import Dataset [18](file:///D:/Anaconda3/envs/CS224S/Lib/site-packages/datasets/__init__.py:18) from .arrow_reader import ReadInstruction [19](file:///D:/Anaconda3/envs/CS224S/Lib/site-packages/datasets/__init__.py:19) from .builder import ArrowBasedBuilder, BeamBasedBuilder, BuilderConfig, DatasetBuilder, GeneratorBasedBuilder File d:\Anaconda3\envs\CS224S\Lib\site-packages\datasets\arrow_dataset.py:63 [61](file:///D:/Anaconda3/envs/CS224S/Lib/site-packages/datasets/arrow_dataset.py:61) import pyarrow.compute as pc [62](file:///D:/Anaconda3/envs/CS224S/Lib/site-packages/datasets/arrow_dataset.py:62) from fsspec.core import url_to_fs ---> [63](file:///D:/Anaconda3/envs/CS224S/Lib/site-packages/datasets/arrow_dataset.py:63) from huggingface_hub import ( [64](file:///D:/Anaconda3/envs/CS224S/Lib/site-packages/datasets/arrow_dataset.py:64) CommitInfo, [65](file:///D:/Anaconda3/envs/CS224S/Lib/site-packages/datasets/arrow_dataset.py:65) CommitOperationAdd, ... [70](file:///D:/Anaconda3/envs/CS224S/Lib/site-packages/datasets/arrow_dataset.py:70) ) [71](file:///D:/Anaconda3/envs/CS224S/Lib/site-packages/datasets/arrow_dataset.py:71) from huggingface_hub.hf_api import RepoFile [72](file:///D:/Anaconda3/envs/CS224S/Lib/site-packages/datasets/arrow_dataset.py:72) from multiprocess import Pool ImportError: cannot import name 'CommitInfo' from 'huggingface_hub' (d:\Anaconda3\envs\CS224S\Lib\site-packages\huggingface_hub\__init__.py) Output is truncated. View as a [scrollable element](command:cellOutput.enableScrolling?580889ab-0f61-4f37-9214-eaa2b3807f85) or open in a [text editor](command:workbench.action.openLargeOutput?580889ab-0f61-4f37-9214-eaa2b3807f85). Adjust cell output [settings](command:workbench.action.openSettings?%5B%22%40tag%3AnotebookOutputLayout%22%5D)... ### Environment info Leo@DESKTOP-9NHUAMI MSYS /d/Anaconda3/envs/CS224S/Lib/site-packages/huggingface_hub $ datasets-cli env Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "D:\Anaconda3\envs\CS224S\Scripts\datasets-cli.exe\__main__.py", line 4, in <module> File "D:\Anaconda3\envs\CS224S\Lib\site-packages\datasets\__init__.py", line 17, in <module> from .arrow_dataset import Dataset File "D:\Anaconda3\envs\CS224S\Lib\site-packages\datasets\arrow_dataset.py", line 63, in <module> from huggingface_hub import ( ImportError: cannot import name 'CommitInfo' from 'huggingface_hub' (D:\Anaconda3\envs\CS224S\Lib\site-packages\huggingface_hub\__init__.py) (CS224S) What is the version of your installed `huggingface-hub`: ```python import huggingface_hub print(huggingface_hub.__version__) ``` It seems you have a very old version of `huggingface-hub`, where `CommitInfo` was not still implemented. You need to update it: ``` pip install -U huggingface-hub ``` Note that `CommitInfo` was implemented in huggingface-hub 0.10.0 and datasets requires "huggingface-hub>=0.21.2"
[ -0.27894434332847595, -0.16736024618148804, -0.019220074638724327, 0.3342856764793396, 0.27266108989715576, 0.03040923923254013, 0.09082164615392685, 0.2282353639602661, 0.17126117646694183, 0.17551535367965698, -0.1372210830450058, -0.05400799587368965, -0.09396711736917496, 0.360289067029953, 0.12434577941894531, 0.005006603896617889, 0.12808147072792053, 0.10453158617019653, -0.32645416259765625, 0.03226712346076965, 0.027435041964054108, 0.3324785828590393, -0.16254878044128418, -0.02516120672225952, -0.17623841762542725, 0.13178876042366028, 0.07487676292657852, 0.2014921009540558, -0.15261243283748627, -0.37306883931159973, 0.496562123298645, -0.05030979588627815, 0.2624428868293762, 0.8011267781257629, -0.00011643387551885098, 0.20230837166309357, 0.3011913299560547, -0.08441581577062607, -0.28676342964172363, -0.40815216302871704, -0.35243433713912964, -0.2522900402545929, -0.06288490444421768, 0.1175042912364006, 0.15387120842933655, 0.2156471163034439, -0.16368497908115387, -0.4426882565021515, 0.47464239597320557, 0.4239335358142853, 0.18507763743400574, 0.6043593883514404, 0.38722318410873413, -0.18655899167060852, -0.08471106737852097, 0.2893674969673157, -0.10771481692790985, 0.29228124022483826, -0.1921236217021942, -0.16289038956165314, 0.3755631446838379, 0.2741278409957886, 0.04805383086204529, -0.05464545264840126, 0.3861982226371765, -0.05367255210876465, 0.2367270290851593, -0.40914076566696167, -0.21563896536827087, 0.0781802088022232, 0.2472429871559143, -0.32239800691604614, -0.3736785352230072, -0.3851383626461029, 0.11469395458698273, -0.14484310150146484, 0.16136130690574646, -0.010631471872329712, -0.12953968346118927, 0.2503260672092438, -0.08937691897153854, -0.16862335801124573, -0.23523841798305511, -0.07860417664051056, -0.16890397667884827, -0.24771380424499512, -0.19370441138744354, 0.025626223534345627, 0.2870190441608429, -0.11628986895084381, -0.09282860159873962, 0.017308920621871948, -0.06477588415145874, 0.2333678901195526, -0.49477702379226685, 0.10862007737159729, 0.09501191973686218, -0.019812554121017456, 0.20851930975914001, -0.05275052785873413, -0.17305560410022736, -0.15166476368904114, -0.12985490262508392, 0.21739459037780762, 0.18690817058086395, 0.2951136529445648, 0.2797202467918396, 0.08350075036287308, 0.2919372320175171, 0.15547563135623932, 0.13181334733963013, 0.06298337876796722, -0.07978954166173935, -0.12562334537506104, -0.09092165529727936, -0.11865677684545517, 0.49332088232040405, -0.09190911054611206, -0.4621267318725586, 0.2429589182138443, -0.09828197956085205, -0.05409148335456848, -0.011850002221763134, 0.33606061339378357, -0.10436802357435226, 0.12282034754753113, 0.20182116329669952, 0.1638338416814804, -0.08898216485977173, -0.32468879222869873, -0.2845631241798401, 0.03913244605064392, -0.06468532234430313, 0.08087842911481857, 0.019699089229106903, -0.5657477974891663, 0.220217764377594, -0.040382567793130875, 0.409213125705719, -0.19291360676288605, -0.20215512812137604, -0.053438700735569, -0.02422693371772766, 0.30874133110046387, -0.04779095575213432, 0.2389332801103592, 0.3445711135864258, -0.4027344584465027, -0.1097736582159996, -0.09495557099580765, -0.2589908242225647, -0.2564687728881836, -0.21754629909992218, 0.16348864138126373, -0.4365699291229248, -0.06609635800123215, -0.5037850737571716, -0.17224016785621643, -0.021710999310016632, 0.18562248349189758, -0.08797041326761246, -0.26149994134902954, -0.030484527349472046, -0.07946053892374039, 0.35347846150398254, 0.6050916910171509, -0.13984809815883636, -0.38209930062294006, 0.13833650946617126, -0.3178138732910156, -0.15161728858947754, 0.23977074027061462, -0.06591380387544632, 0.38677534461021423, -0.13006660342216492, 0.06636515259742737, 0.07763997465372086, -0.7478536367416382, -0.45561060309410095, 0.06491454690694809, -0.16840410232543945, 0.1972726285457611, -0.0940740630030632, -0.04115737974643707, 0.0498281791806221, 0.10438308119773865, 0.24881114065647125, 0.253650426864624, -0.020633867010474205, 0.011147139593958855, 0.021202247589826584, -0.1575770229101181, 0.04413323476910591, 0.1412234753370285, 0.012813381850719452, -0.005160592496395111, 0.027787499129772186, 0.019376669079065323, 0.1639484316110611, -0.01802893355488777, 0.02947171777486801, 0.43112945556640625, 0.29058021306991577, 0.2442508488893509, -0.01761735789477825, -0.2024267315864563, -0.47045743465423584, 0.265784353017807, 0.10523447394371033, 0.17694319784641266, -0.21026207506656647, -0.11166948825120926, -0.42148131132125854, 0.2953658998012543, -0.16693516075611115, -0.11734534800052643, 0.04519796371459961, 0.031328149139881134, 0.008383888751268387, 0.2719246745109558, -0.2364957183599472, 0.7931470274925232, -0.12844912707805634, 0.3926737904548645, -0.4407171308994293, 0.4372295141220093, -0.07517699897289276, -0.20540519058704376, 0.1911446750164032, 0.2573515772819519, 0.03575386852025986, -0.3256315588951111, 0.014565462246537209, 0.3570038974285126, -0.021771473810076714, 0.3718622326850891, -0.22782862186431885, -0.02643534541130066, 0.20351064205169678, -0.1204412579536438, -0.21338367462158203, -0.24636976420879364, 0.09000460803508759, 0.01690627634525299, 0.08764378726482391, 0.11572591215372086, -0.11835436522960663, 0.23070034384727478, -0.013046786189079285, 0.06128709763288498, 0.20775896310806274, 0.11759528517723083, -0.23821407556533813, -0.28979218006134033, 0.33075764775276184, -0.07606068253517151, 0.07092399895191193, -0.014478372409939766, -0.06921062618494034, -0.17916536331176758, 0.3035053610801697, 0.1225786954164505, -0.030290380120277405, 0.010155878961086273, -0.2701594829559326, 0.26264047622680664, 0.14431077241897583, 0.1022224873304367, 0.44780147075653076, 0.031938351690769196, -0.2849365472793579, 0.22869430482387543, 0.1995144486427307, -0.044965967535972595, 0.11350692063570023, 0.15009130537509918, 0.2193153202533722, 0.12893620133399963, 0.040596142411231995, 0.05344976484775543, -0.16514360904693604, -0.05511188507080078, -0.17349782586097717, 0.31947940587997437, -0.5009877681732178, 0.10856207460165024, -0.2820127010345459, -0.4769996106624603, -0.291625052690506, -0.24593190848827362, -0.34387239813804626, -0.24370808899402618, -0.4593442678451538, 0.22620844841003418, 0.004350196570158005, 0.08559349924325943, 0.07304264605045319, 0.03735269606113434, 0.06830868870019913, -0.08602694422006607, -0.051077861338853836, 0.022998139262199402, 0.007692808285355568, -0.014704828150570393, 0.2626611292362213, -0.07526817172765732, 0.2837904691696167, -0.25557592511177063, 0.19378820061683655, -0.2139953374862671, -0.4072776138782501, 0.18571420013904572, -0.3757055401802063, 0.38909584283828735, 0.19343195855617523, 0.3295252025127411, 0.07939010113477707, -0.23984487354755402, 0.17797677218914032, -0.046001970767974854, -0.24390937387943268, -0.056983787566423416, 0.054076772183179855, -0.09643403440713882, -0.08439309895038605, -0.1056533232331276, -0.3698933720588684, -0.40296897292137146, 0.35082191228866577, 0.1456616371870041, -0.05688121169805527, 0.40604889392852783, 0.0603158064186573, 0.29366371035575867, -0.15757128596305847, 0.05077202618122101, 0.02605021931231022, -0.3271077871322632, 0.24321822822093964, -0.19061289727687836, -0.384245902299881, 0.12265026569366455, 0.128795325756073, 0.24776588380336761, -0.2162082940340042, -0.44478172063827515, -0.2132387012243271, -0.17148487269878387, 0.30524125695228577, 0.015009557828307152, 0.07801003009080887, 0.11396858096122742, -0.12846486270427704, 0.09501193463802338, -0.09827807545661926, -0.23566322028636932, 0.10246268659830093, 0.18739116191864014, -0.03761311620473862, -0.061455823481082916, 0.40123263001441956, -0.06389272212982178, 0.2624044418334961, 0.37623995542526245, 0.0034667961299419403, 0.2737247049808502, -0.020019007846713066, 0.545191764831543, -0.09979140013456345, -0.41477495431900024, -0.08395504951477051, 0.037743471562862396, 0.14447176456451416, 0.002209499478340149, -0.09056016057729721, 0.27255484461784363, -0.1865721493959427, -0.24698014557361603, 0.019121095538139343, -0.26954415440559387, -0.06730414927005768, -0.0033272430300712585, 0.1701071709394455, -0.03566557914018631, -0.2312830090522766, -0.0952989012002945, 0.06222961097955704, 0.14142553508281708, 0.35010647773742676, 0.06097717210650444, 0.10145184397697449, -0.3265358805656433, -0.09254733473062515, -0.5708662867546082, 0.09620225429534912, 0.06497976183891296, 0.2830594778060913, 0.010720405727624893, -0.12616172432899475, -0.11487686634063721, 0.16562867164611816, 0.49437129497528076, 0.16002504527568817, -0.18461106717586517, -0.03230001777410507, -0.2147470861673355, -0.5691664218902588, -0.13325929641723633, -0.0536818727850914, 0.1978607177734375, 0.266618549823761, 0.4695710241794586, -0.28890374302864075, -0.10574118047952652, 0.2743356227874756, 0.29051390290260315, -0.09195373207330704, -0.12351510673761368, -0.36083996295928955, -0.2848183214664459, -0.4945104420185089, -0.06053449958562851, 0.181472048163414, 0.28099068999290466, 0.2577614188194275, 0.16511639952659607, -0.07168379426002502, -0.24877595901489258, 0.27333301305770874, 0.09868162870407104, 0.08066683262586594, 0.12183624505996704, 0.2797902822494507, 0.43786633014678955, -0.106019988656044, 0.34491804242134094, 0.6368710398674011, -0.06929711997509003, -0.7161204218864441, -0.13763290643692017, 0.07451853156089783, 0.26395943760871887, 0.15451543033123016, -0.10350008308887482, 0.19991832971572876, 0.016235610470175743, 0.05794426053762436, -0.3656899929046631, 0.25156307220458984, 0.15472443401813507, 0.2917303442955017, -0.24253830313682556, -0.3759859800338745, 0.2776978015899658, -0.014850378036499023, 0.07777301967144012, 0.3027245104312897, 0.5008262991905212, -0.15401747822761536, 0.003732161596417427, -0.16100379824638367, 0.747112512588501, 0.22008398175239563, -0.09011854231357574, 0.49241459369659424, 0.058054156601428986, 0.41542109847068787, 0.0318513885140419, -0.09553874284029007, -0.3520078659057617, -0.32163476943969727, -0.05848215892910957, -0.23288238048553467, 0.39857491850852966, -0.5671111345291138, -0.11684927344322205, 0.040152646601200104, -0.09624546021223068, 0.25252488255500793, 0.055685244500637054, 0.13940437138080597, -0.10468173027038574, -0.28869733214378357, -0.31488507986068726, 0.1030312329530716, 0.03332856670022011, 0.4931873381137848, -0.13402633368968964, -0.1426599621772766, -0.32096919417381287, -0.09321971237659454, -0.20782852172851562, -0.021515777334570885, -0.2473122477531433, 0.1495046764612198, 0.2146262526512146, -0.009644076228141785, 0.1505635380744934, 0.49356895685195923, 0.5557733178138733, -0.05659380927681923, -0.2397596836090088, -0.038644324988126755, -0.33688461780548096, -0.03184761106967926, 0.17243868112564087, -0.13353882730007172, 0.2590067982673645, -0.13947422802448273, -0.16707563400268555, 0.13957080245018005, 0.07155942171812057, -0.18916107714176178, 0.00938647985458374, 0.1055372804403305, -0.049211643636226654, -0.2002391517162323, -0.1053299605846405, 0.06688056886196136, 0.2769036293029785, -0.08149732649326324, 0.08148349821567535, 0.2383250892162323, -0.1827184110879898, 0.020071804523468018, 0.08910246193408966, -0.35420334339141846, -0.0828046053647995, 0.5305526852607727, -0.019564732909202576, -0.10703589022159576, 0.515172004699707, 0.13192877173423767, -0.10232927650213242, -0.06637369096279144, 0.16763830184936523, 0.22603684663772583, -0.4552140235900879, 0.14733722805976868, -0.08973848074674606, 0.018547147512435913, -0.11579931527376175, 0.22574323415756226, 0.17719098925590515, -0.41256752610206604, -0.04710600897669792, -0.30070507526397705, -0.2916954457759857, 0.24445122480392456, -0.04111852869391441, 0.040655069053173065, 0.1563921570777893, 0.1704418659210205, -0.187473326921463, 0.05996238440275192, -0.2469242811203003, 0.022555675357580185, -0.23358191549777985, 0.013023743405938148, 0.40761542320251465, 0.0227719284594059, 0.25111818313598633, -0.38495194911956787, 0.024535520002245903, 0.20835034549236298, -0.19091331958770752, -0.16345101594924927, -0.3159583806991577, 0.1267699897289276, -0.022908497601747513, 0.045527420938014984, 0.245714008808136, 0.07998616993427277, 0.012989860959351063, -0.1195111870765686, 0.16212201118469238, 0.20597690343856812, -0.11711668968200684, 0.09261813014745712, 0.1574007123708725, 0.18975907564163208, -0.0807778611779213, 0.24764856696128845, 0.11669608950614929, 0.1802671253681183, -0.10897260159254074, 0.19480237364768982, -0.2637600600719452, 0.009629219770431519, -0.20209313929080963, 0.11166881769895554, 0.05450846999883652, 0.05562417209148407, 0.34530705213546753, -0.3586975932121277, 0.014040205627679825, 0.18462398648262024, 0.21559862792491913, 0.18625085055828094, -0.4746741056442261, 0.19278092682361603, 0.13622832298278809, 0.13484588265419006, -0.09768899530172348, -0.12461858242750168, 0.27929040789604187, -0.20481300354003906, -0.0012340620160102844, 0.25625014305114746, 0.16673389077186584, 0.12639975547790527, 0.07439935207366943, 0.17130103707313538, 0.5603048801422119, 0.22111819684505463, 0.38346728682518005, 0.2631576359272003, -0.21025177836418152, 0.03234236687421799, 0.28433218598365784, 0.21370424330234528, 0.35067278146743774, 0.27179354429244995, -0.36455944180488586, 0.08409450203180313, -0.17576053738594055, -0.07677274942398071, 0.27983859181404114, -0.1770695149898529, 0.0009266771376132965, 0.0707482099533081, -0.06503351032733917, -0.15711578726768494, 0.011964276432991028, 0.4286253750324249, -0.22042648494243622, -0.1394309401512146, -0.07531136274337769, 0.24349161982536316, -0.11326969414949417, 0.08405983448028564, 0.018629994243383408, -0.057775646448135376, -0.2250698208808899, -0.0890258252620697, 0.027624351903796196, -0.40750569105148315, 0.09488937258720398, 0.1100761890411377, -0.1999967247247696, -0.27367955446243286, -0.19478538632392883, 0.18700483441352844, 0.050589267164468765, -0.27323558926582336, 0.04058243706822395, 0.11073662340641022, -0.08272267878055573, 0.008400769904255867, 0.44111648201942444, 0.558387279510498, 0.2686038017272949, 0.38699260354042053, 0.1934402883052826, 0.09135659039020538, -0.016420742496848106, -0.02738822065293789, 0.18532375991344452, -0.3572705388069153, 0.3719262182712555, 0.24762921035289764, 0.1661514937877655, -0.16119492053985596, -0.35555538535118103, 0.02248556539416313, 0.2529156506061554, -0.5081102848052979, 0.28391554951667786, -0.48413756489753723, -0.02768627554178238, -0.2907468378543854, 0.10662409663200378, -0.30258285999298096, 0.27542662620544434, 0.35596445202827454, -0.10762917995452881, 0.042174048721790314, -0.19482940435409546, 0.0692664161324501, -0.06899285316467285, 0.6009387969970703, 0.3120483160018921, 0.13884583115577698, -0.10551726073026657, -0.20421317219734192, -0.7697235345840454, 0.11394818127155304, 0.173649400472641, 0.12079663574695587, 0.1565258800983429, 0.01669955812394619, -0.05460657924413681, 0.2917526960372925, 0.11998701840639114, -0.14093777537345886, -0.25101205706596375, -0.2922225892543793, -0.19056330621242523, -0.32909277081489563, -0.008080922067165375, -0.13246308267116547, 0.08932889997959137, -0.07740235328674316, 0.366934210062027, -0.0808602124452591, 0.002955060452222824, -0.18465866148471832, 0.018904469907283783, -0.058991484344005585, -0.3697926104068756, 0.4889814853668213, 0.11550364643335342, 0.27397745847702026, 0.02109091356396675, -0.27241894602775574, -0.0853775292634964, -0.36440977454185486, -0.24611152708530426, 0.2770612835884094, -0.15902499854564667, 0.4655582904815674, -0.26344239711761475, -0.4329889118671417, -0.31831127405166626, 0.34046533703804016, 0.21635739505290985, -0.01677078753709793, -0.3919256627559662, 0.0725490003824234, -0.1571180820465088, 0.14060714840888977, 0.11154235899448395, 0.05932721123099327, -0.07147863507270813, 0.2744242548942566, -0.12112916260957718, -0.21860338747501373, 0.48528221249580383, -0.294021338224411, -0.12644734978675842, -0.04833250865340233, 0.14443829655647278, 0.279218852519989, -0.3428760766983032, -0.6455613374710083, 0.17734754085540771, 0.2988750636577606, -0.10919622331857681, -0.28357917070388794, 0.47448158264160156, -0.10047085583209991, 0.07787278294563293, -0.01206178031861782, 0.35924479365348816, 0.00027078576385974884, -0.17740362882614136, 0.5471984148025513, -0.11174112558364868 ]
https://github.com/huggingface/datasets/issues/6995
ImportError when importing datasets.load_dataset
The error message says there is no CommitInfo in your installed huggingface-hub library: ``` ImportError: cannot import name 'CommitInfo' from 'huggingface_hub' (D:\Anaconda3\envs\CS224S\Lib\site-packages\huggingface_hub_init_.py) ``` And this is implemented since version 0.10.0: - https://github.com/huggingface/huggingface_hub/pull/1066
### Describe the bug I encountered an ImportError while trying to import `load_dataset` from the `datasets` module in Hugging Face. The error message indicates a problem with importing 'CommitInfo' from 'huggingface_hub'. ### Steps to reproduce the bug 1. pip install git+https://github.com/huggingface/datasets 2. from datasets import load_dataset ### Expected behavior ImportError Traceback (most recent call last) Cell In[7], [line 1](vscode-notebook-cell:?execution_count=7&line=1) ----> [1](vscode-notebook-cell:?execution_count=7&line=1) from datasets import load_dataset [3](vscode-notebook-cell:?execution_count=7&line=3) train_set = load_dataset("mispeech/speechocean762", split="train") [4](vscode-notebook-cell:?execution_count=7&line=4) test_set = load_dataset("mispeech/speechocean762", split="test") File d:\Anaconda3\envs\CS224S\Lib\site-packages\datasets\__init__.py:[1](file:///D:/Anaconda3/envs/CS224S/Lib/site-packages/datasets/__init__.py:1)7 1 # Copyright 2020 The HuggingFace Datasets Authors and the TensorFlow Datasets Authors. [2](file:///D:/Anaconda3/envs/CS224S/Lib/site-packages/datasets/__init__.py:2) # [3](file:///D:/Anaconda3/envs/CS224S/Lib/site-packages/datasets/__init__.py:3) # Licensed under the Apache License, Version 2.0 (the "License"); (...) [12](file:///D:/Anaconda3/envs/CS224S/Lib/site-packages/datasets/__init__.py:12) # See the License for the specific language governing permissions and [13](file:///D:/Anaconda3/envs/CS224S/Lib/site-packages/datasets/__init__.py:13) # limitations under the License. [15](file:///D:/Anaconda3/envs/CS224S/Lib/site-packages/datasets/__init__.py:15) __version__ = "2.20.1.dev0" ---> [17](file:///D:/Anaconda3/envs/CS224S/Lib/site-packages/datasets/__init__.py:17) from .arrow_dataset import Dataset [18](file:///D:/Anaconda3/envs/CS224S/Lib/site-packages/datasets/__init__.py:18) from .arrow_reader import ReadInstruction [19](file:///D:/Anaconda3/envs/CS224S/Lib/site-packages/datasets/__init__.py:19) from .builder import ArrowBasedBuilder, BeamBasedBuilder, BuilderConfig, DatasetBuilder, GeneratorBasedBuilder File d:\Anaconda3\envs\CS224S\Lib\site-packages\datasets\arrow_dataset.py:63 [61](file:///D:/Anaconda3/envs/CS224S/Lib/site-packages/datasets/arrow_dataset.py:61) import pyarrow.compute as pc [62](file:///D:/Anaconda3/envs/CS224S/Lib/site-packages/datasets/arrow_dataset.py:62) from fsspec.core import url_to_fs ---> [63](file:///D:/Anaconda3/envs/CS224S/Lib/site-packages/datasets/arrow_dataset.py:63) from huggingface_hub import ( [64](file:///D:/Anaconda3/envs/CS224S/Lib/site-packages/datasets/arrow_dataset.py:64) CommitInfo, [65](file:///D:/Anaconda3/envs/CS224S/Lib/site-packages/datasets/arrow_dataset.py:65) CommitOperationAdd, ... [70](file:///D:/Anaconda3/envs/CS224S/Lib/site-packages/datasets/arrow_dataset.py:70) ) [71](file:///D:/Anaconda3/envs/CS224S/Lib/site-packages/datasets/arrow_dataset.py:71) from huggingface_hub.hf_api import RepoFile [72](file:///D:/Anaconda3/envs/CS224S/Lib/site-packages/datasets/arrow_dataset.py:72) from multiprocess import Pool ImportError: cannot import name 'CommitInfo' from 'huggingface_hub' (d:\Anaconda3\envs\CS224S\Lib\site-packages\huggingface_hub\__init__.py) Output is truncated. View as a [scrollable element](command:cellOutput.enableScrolling?580889ab-0f61-4f37-9214-eaa2b3807f85) or open in a [text editor](command:workbench.action.openLargeOutput?580889ab-0f61-4f37-9214-eaa2b3807f85). Adjust cell output [settings](command:workbench.action.openSettings?%5B%22%40tag%3AnotebookOutputLayout%22%5D)... ### Environment info Leo@DESKTOP-9NHUAMI MSYS /d/Anaconda3/envs/CS224S/Lib/site-packages/huggingface_hub $ datasets-cli env Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "D:\Anaconda3\envs\CS224S\Scripts\datasets-cli.exe\__main__.py", line 4, in <module> File "D:\Anaconda3\envs\CS224S\Lib\site-packages\datasets\__init__.py", line 17, in <module> from .arrow_dataset import Dataset File "D:\Anaconda3\envs\CS224S\Lib\site-packages\datasets\arrow_dataset.py", line 63, in <module> from huggingface_hub import ( ImportError: cannot import name 'CommitInfo' from 'huggingface_hub' (D:\Anaconda3\envs\CS224S\Lib\site-packages\huggingface_hub\__init__.py) (CS224S)
32
ImportError when importing datasets.load_dataset ### Describe the bug I encountered an ImportError while trying to import `load_dataset` from the `datasets` module in Hugging Face. The error message indicates a problem with importing 'CommitInfo' from 'huggingface_hub'. ### Steps to reproduce the bug 1. pip install git+https://github.com/huggingface/datasets 2. from datasets import load_dataset ### Expected behavior ImportError Traceback (most recent call last) Cell In[7], [line 1](vscode-notebook-cell:?execution_count=7&line=1) ----> [1](vscode-notebook-cell:?execution_count=7&line=1) from datasets import load_dataset [3](vscode-notebook-cell:?execution_count=7&line=3) train_set = load_dataset("mispeech/speechocean762", split="train") [4](vscode-notebook-cell:?execution_count=7&line=4) test_set = load_dataset("mispeech/speechocean762", split="test") File d:\Anaconda3\envs\CS224S\Lib\site-packages\datasets\__init__.py:[1](file:///D:/Anaconda3/envs/CS224S/Lib/site-packages/datasets/__init__.py:1)7 1 # Copyright 2020 The HuggingFace Datasets Authors and the TensorFlow Datasets Authors. [2](file:///D:/Anaconda3/envs/CS224S/Lib/site-packages/datasets/__init__.py:2) # [3](file:///D:/Anaconda3/envs/CS224S/Lib/site-packages/datasets/__init__.py:3) # Licensed under the Apache License, Version 2.0 (the "License"); (...) [12](file:///D:/Anaconda3/envs/CS224S/Lib/site-packages/datasets/__init__.py:12) # See the License for the specific language governing permissions and [13](file:///D:/Anaconda3/envs/CS224S/Lib/site-packages/datasets/__init__.py:13) # limitations under the License. [15](file:///D:/Anaconda3/envs/CS224S/Lib/site-packages/datasets/__init__.py:15) __version__ = "2.20.1.dev0" ---> [17](file:///D:/Anaconda3/envs/CS224S/Lib/site-packages/datasets/__init__.py:17) from .arrow_dataset import Dataset [18](file:///D:/Anaconda3/envs/CS224S/Lib/site-packages/datasets/__init__.py:18) from .arrow_reader import ReadInstruction [19](file:///D:/Anaconda3/envs/CS224S/Lib/site-packages/datasets/__init__.py:19) from .builder import ArrowBasedBuilder, BeamBasedBuilder, BuilderConfig, DatasetBuilder, GeneratorBasedBuilder File d:\Anaconda3\envs\CS224S\Lib\site-packages\datasets\arrow_dataset.py:63 [61](file:///D:/Anaconda3/envs/CS224S/Lib/site-packages/datasets/arrow_dataset.py:61) import pyarrow.compute as pc [62](file:///D:/Anaconda3/envs/CS224S/Lib/site-packages/datasets/arrow_dataset.py:62) from fsspec.core import url_to_fs ---> [63](file:///D:/Anaconda3/envs/CS224S/Lib/site-packages/datasets/arrow_dataset.py:63) from huggingface_hub import ( [64](file:///D:/Anaconda3/envs/CS224S/Lib/site-packages/datasets/arrow_dataset.py:64) CommitInfo, [65](file:///D:/Anaconda3/envs/CS224S/Lib/site-packages/datasets/arrow_dataset.py:65) CommitOperationAdd, ... [70](file:///D:/Anaconda3/envs/CS224S/Lib/site-packages/datasets/arrow_dataset.py:70) ) [71](file:///D:/Anaconda3/envs/CS224S/Lib/site-packages/datasets/arrow_dataset.py:71) from huggingface_hub.hf_api import RepoFile [72](file:///D:/Anaconda3/envs/CS224S/Lib/site-packages/datasets/arrow_dataset.py:72) from multiprocess import Pool ImportError: cannot import name 'CommitInfo' from 'huggingface_hub' (d:\Anaconda3\envs\CS224S\Lib\site-packages\huggingface_hub\__init__.py) Output is truncated. View as a [scrollable element](command:cellOutput.enableScrolling?580889ab-0f61-4f37-9214-eaa2b3807f85) or open in a [text editor](command:workbench.action.openLargeOutput?580889ab-0f61-4f37-9214-eaa2b3807f85). Adjust cell output [settings](command:workbench.action.openSettings?%5B%22%40tag%3AnotebookOutputLayout%22%5D)... ### Environment info Leo@DESKTOP-9NHUAMI MSYS /d/Anaconda3/envs/CS224S/Lib/site-packages/huggingface_hub $ datasets-cli env Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "D:\Anaconda3\envs\CS224S\Scripts\datasets-cli.exe\__main__.py", line 4, in <module> File "D:\Anaconda3\envs\CS224S\Lib\site-packages\datasets\__init__.py", line 17, in <module> from .arrow_dataset import Dataset File "D:\Anaconda3\envs\CS224S\Lib\site-packages\datasets\arrow_dataset.py", line 63, in <module> from huggingface_hub import ( ImportError: cannot import name 'CommitInfo' from 'huggingface_hub' (D:\Anaconda3\envs\CS224S\Lib\site-packages\huggingface_hub\__init__.py) (CS224S) The error message says there is no CommitInfo in your installed huggingface-hub library: ``` ImportError: cannot import name 'CommitInfo' from 'huggingface_hub' (D:\Anaconda3\envs\CS224S\Lib\site-packages\huggingface_hub_init_.py) ``` And this is implemented since version 0.10.0: - https://github.com/huggingface/huggingface_hub/pull/1066
[ -0.27894434332847595, -0.16736024618148804, -0.019220074638724327, 0.3342856764793396, 0.27266108989715576, 0.03040923923254013, 0.09082164615392685, 0.2282353639602661, 0.17126117646694183, 0.17551535367965698, -0.1372210830450058, -0.05400799587368965, -0.09396711736917496, 0.360289067029953, 0.12434577941894531, 0.005006603896617889, 0.12808147072792053, 0.10453158617019653, -0.32645416259765625, 0.03226712346076965, 0.027435041964054108, 0.3324785828590393, -0.16254878044128418, -0.02516120672225952, -0.17623841762542725, 0.13178876042366028, 0.07487676292657852, 0.2014921009540558, -0.15261243283748627, -0.37306883931159973, 0.496562123298645, -0.05030979588627815, 0.2624428868293762, 0.8011267781257629, -0.00011643387551885098, 0.20230837166309357, 0.3011913299560547, -0.08441581577062607, -0.28676342964172363, -0.40815216302871704, -0.35243433713912964, -0.2522900402545929, -0.06288490444421768, 0.1175042912364006, 0.15387120842933655, 0.2156471163034439, -0.16368497908115387, -0.4426882565021515, 0.47464239597320557, 0.4239335358142853, 0.18507763743400574, 0.6043593883514404, 0.38722318410873413, -0.18655899167060852, -0.08471106737852097, 0.2893674969673157, -0.10771481692790985, 0.29228124022483826, -0.1921236217021942, -0.16289038956165314, 0.3755631446838379, 0.2741278409957886, 0.04805383086204529, -0.05464545264840126, 0.3861982226371765, -0.05367255210876465, 0.2367270290851593, -0.40914076566696167, -0.21563896536827087, 0.0781802088022232, 0.2472429871559143, -0.32239800691604614, -0.3736785352230072, -0.3851383626461029, 0.11469395458698273, -0.14484310150146484, 0.16136130690574646, -0.010631471872329712, -0.12953968346118927, 0.2503260672092438, -0.08937691897153854, -0.16862335801124573, -0.23523841798305511, -0.07860417664051056, -0.16890397667884827, -0.24771380424499512, -0.19370441138744354, 0.025626223534345627, 0.2870190441608429, -0.11628986895084381, -0.09282860159873962, 0.017308920621871948, -0.06477588415145874, 0.2333678901195526, -0.49477702379226685, 0.10862007737159729, 0.09501191973686218, -0.019812554121017456, 0.20851930975914001, -0.05275052785873413, -0.17305560410022736, -0.15166476368904114, -0.12985490262508392, 0.21739459037780762, 0.18690817058086395, 0.2951136529445648, 0.2797202467918396, 0.08350075036287308, 0.2919372320175171, 0.15547563135623932, 0.13181334733963013, 0.06298337876796722, -0.07978954166173935, -0.12562334537506104, -0.09092165529727936, -0.11865677684545517, 0.49332088232040405, -0.09190911054611206, -0.4621267318725586, 0.2429589182138443, -0.09828197956085205, -0.05409148335456848, -0.011850002221763134, 0.33606061339378357, -0.10436802357435226, 0.12282034754753113, 0.20182116329669952, 0.1638338416814804, -0.08898216485977173, -0.32468879222869873, -0.2845631241798401, 0.03913244605064392, -0.06468532234430313, 0.08087842911481857, 0.019699089229106903, -0.5657477974891663, 0.220217764377594, -0.040382567793130875, 0.409213125705719, -0.19291360676288605, -0.20215512812137604, -0.053438700735569, -0.02422693371772766, 0.30874133110046387, -0.04779095575213432, 0.2389332801103592, 0.3445711135864258, -0.4027344584465027, -0.1097736582159996, -0.09495557099580765, -0.2589908242225647, -0.2564687728881836, -0.21754629909992218, 0.16348864138126373, -0.4365699291229248, -0.06609635800123215, -0.5037850737571716, -0.17224016785621643, -0.021710999310016632, 0.18562248349189758, -0.08797041326761246, -0.26149994134902954, -0.030484527349472046, -0.07946053892374039, 0.35347846150398254, 0.6050916910171509, -0.13984809815883636, -0.38209930062294006, 0.13833650946617126, -0.3178138732910156, -0.15161728858947754, 0.23977074027061462, -0.06591380387544632, 0.38677534461021423, -0.13006660342216492, 0.06636515259742737, 0.07763997465372086, -0.7478536367416382, -0.45561060309410095, 0.06491454690694809, -0.16840410232543945, 0.1972726285457611, -0.0940740630030632, -0.04115737974643707, 0.0498281791806221, 0.10438308119773865, 0.24881114065647125, 0.253650426864624, -0.020633867010474205, 0.011147139593958855, 0.021202247589826584, -0.1575770229101181, 0.04413323476910591, 0.1412234753370285, 0.012813381850719452, -0.005160592496395111, 0.027787499129772186, 0.019376669079065323, 0.1639484316110611, -0.01802893355488777, 0.02947171777486801, 0.43112945556640625, 0.29058021306991577, 0.2442508488893509, -0.01761735789477825, -0.2024267315864563, -0.47045743465423584, 0.265784353017807, 0.10523447394371033, 0.17694319784641266, -0.21026207506656647, -0.11166948825120926, -0.42148131132125854, 0.2953658998012543, -0.16693516075611115, -0.11734534800052643, 0.04519796371459961, 0.031328149139881134, 0.008383888751268387, 0.2719246745109558, -0.2364957183599472, 0.7931470274925232, -0.12844912707805634, 0.3926737904548645, -0.4407171308994293, 0.4372295141220093, -0.07517699897289276, -0.20540519058704376, 0.1911446750164032, 0.2573515772819519, 0.03575386852025986, -0.3256315588951111, 0.014565462246537209, 0.3570038974285126, -0.021771473810076714, 0.3718622326850891, -0.22782862186431885, -0.02643534541130066, 0.20351064205169678, -0.1204412579536438, -0.21338367462158203, -0.24636976420879364, 0.09000460803508759, 0.01690627634525299, 0.08764378726482391, 0.11572591215372086, -0.11835436522960663, 0.23070034384727478, -0.013046786189079285, 0.06128709763288498, 0.20775896310806274, 0.11759528517723083, -0.23821407556533813, -0.28979218006134033, 0.33075764775276184, -0.07606068253517151, 0.07092399895191193, -0.014478372409939766, -0.06921062618494034, -0.17916536331176758, 0.3035053610801697, 0.1225786954164505, -0.030290380120277405, 0.010155878961086273, -0.2701594829559326, 0.26264047622680664, 0.14431077241897583, 0.1022224873304367, 0.44780147075653076, 0.031938351690769196, -0.2849365472793579, 0.22869430482387543, 0.1995144486427307, -0.044965967535972595, 0.11350692063570023, 0.15009130537509918, 0.2193153202533722, 0.12893620133399963, 0.040596142411231995, 0.05344976484775543, -0.16514360904693604, -0.05511188507080078, -0.17349782586097717, 0.31947940587997437, -0.5009877681732178, 0.10856207460165024, -0.2820127010345459, -0.4769996106624603, -0.291625052690506, -0.24593190848827362, -0.34387239813804626, -0.24370808899402618, -0.4593442678451538, 0.22620844841003418, 0.004350196570158005, 0.08559349924325943, 0.07304264605045319, 0.03735269606113434, 0.06830868870019913, -0.08602694422006607, -0.051077861338853836, 0.022998139262199402, 0.007692808285355568, -0.014704828150570393, 0.2626611292362213, -0.07526817172765732, 0.2837904691696167, -0.25557592511177063, 0.19378820061683655, -0.2139953374862671, -0.4072776138782501, 0.18571420013904572, -0.3757055401802063, 0.38909584283828735, 0.19343195855617523, 0.3295252025127411, 0.07939010113477707, -0.23984487354755402, 0.17797677218914032, -0.046001970767974854, -0.24390937387943268, -0.056983787566423416, 0.054076772183179855, -0.09643403440713882, -0.08439309895038605, -0.1056533232331276, -0.3698933720588684, -0.40296897292137146, 0.35082191228866577, 0.1456616371870041, -0.05688121169805527, 0.40604889392852783, 0.0603158064186573, 0.29366371035575867, -0.15757128596305847, 0.05077202618122101, 0.02605021931231022, -0.3271077871322632, 0.24321822822093964, -0.19061289727687836, -0.384245902299881, 0.12265026569366455, 0.128795325756073, 0.24776588380336761, -0.2162082940340042, -0.44478172063827515, -0.2132387012243271, -0.17148487269878387, 0.30524125695228577, 0.015009557828307152, 0.07801003009080887, 0.11396858096122742, -0.12846486270427704, 0.09501193463802338, -0.09827807545661926, -0.23566322028636932, 0.10246268659830093, 0.18739116191864014, -0.03761311620473862, -0.061455823481082916, 0.40123263001441956, -0.06389272212982178, 0.2624044418334961, 0.37623995542526245, 0.0034667961299419403, 0.2737247049808502, -0.020019007846713066, 0.545191764831543, -0.09979140013456345, -0.41477495431900024, -0.08395504951477051, 0.037743471562862396, 0.14447176456451416, 0.002209499478340149, -0.09056016057729721, 0.27255484461784363, -0.1865721493959427, -0.24698014557361603, 0.019121095538139343, -0.26954415440559387, -0.06730414927005768, -0.0033272430300712585, 0.1701071709394455, -0.03566557914018631, -0.2312830090522766, -0.0952989012002945, 0.06222961097955704, 0.14142553508281708, 0.35010647773742676, 0.06097717210650444, 0.10145184397697449, -0.3265358805656433, -0.09254733473062515, -0.5708662867546082, 0.09620225429534912, 0.06497976183891296, 0.2830594778060913, 0.010720405727624893, -0.12616172432899475, -0.11487686634063721, 0.16562867164611816, 0.49437129497528076, 0.16002504527568817, -0.18461106717586517, -0.03230001777410507, -0.2147470861673355, -0.5691664218902588, -0.13325929641723633, -0.0536818727850914, 0.1978607177734375, 0.266618549823761, 0.4695710241794586, -0.28890374302864075, -0.10574118047952652, 0.2743356227874756, 0.29051390290260315, -0.09195373207330704, -0.12351510673761368, -0.36083996295928955, -0.2848183214664459, -0.4945104420185089, -0.06053449958562851, 0.181472048163414, 0.28099068999290466, 0.2577614188194275, 0.16511639952659607, -0.07168379426002502, -0.24877595901489258, 0.27333301305770874, 0.09868162870407104, 0.08066683262586594, 0.12183624505996704, 0.2797902822494507, 0.43786633014678955, -0.106019988656044, 0.34491804242134094, 0.6368710398674011, -0.06929711997509003, -0.7161204218864441, -0.13763290643692017, 0.07451853156089783, 0.26395943760871887, 0.15451543033123016, -0.10350008308887482, 0.19991832971572876, 0.016235610470175743, 0.05794426053762436, -0.3656899929046631, 0.25156307220458984, 0.15472443401813507, 0.2917303442955017, -0.24253830313682556, -0.3759859800338745, 0.2776978015899658, -0.014850378036499023, 0.07777301967144012, 0.3027245104312897, 0.5008262991905212, -0.15401747822761536, 0.003732161596417427, -0.16100379824638367, 0.747112512588501, 0.22008398175239563, -0.09011854231357574, 0.49241459369659424, 0.058054156601428986, 0.41542109847068787, 0.0318513885140419, -0.09553874284029007, -0.3520078659057617, -0.32163476943969727, -0.05848215892910957, -0.23288238048553467, 0.39857491850852966, -0.5671111345291138, -0.11684927344322205, 0.040152646601200104, -0.09624546021223068, 0.25252488255500793, 0.055685244500637054, 0.13940437138080597, -0.10468173027038574, -0.28869733214378357, -0.31488507986068726, 0.1030312329530716, 0.03332856670022011, 0.4931873381137848, -0.13402633368968964, -0.1426599621772766, -0.32096919417381287, -0.09321971237659454, -0.20782852172851562, -0.021515777334570885, -0.2473122477531433, 0.1495046764612198, 0.2146262526512146, -0.009644076228141785, 0.1505635380744934, 0.49356895685195923, 0.5557733178138733, -0.05659380927681923, -0.2397596836090088, -0.038644324988126755, -0.33688461780548096, -0.03184761106967926, 0.17243868112564087, -0.13353882730007172, 0.2590067982673645, -0.13947422802448273, -0.16707563400268555, 0.13957080245018005, 0.07155942171812057, -0.18916107714176178, 0.00938647985458374, 0.1055372804403305, -0.049211643636226654, -0.2002391517162323, -0.1053299605846405, 0.06688056886196136, 0.2769036293029785, -0.08149732649326324, 0.08148349821567535, 0.2383250892162323, -0.1827184110879898, 0.020071804523468018, 0.08910246193408966, -0.35420334339141846, -0.0828046053647995, 0.5305526852607727, -0.019564732909202576, -0.10703589022159576, 0.515172004699707, 0.13192877173423767, -0.10232927650213242, -0.06637369096279144, 0.16763830184936523, 0.22603684663772583, -0.4552140235900879, 0.14733722805976868, -0.08973848074674606, 0.018547147512435913, -0.11579931527376175, 0.22574323415756226, 0.17719098925590515, -0.41256752610206604, -0.04710600897669792, -0.30070507526397705, -0.2916954457759857, 0.24445122480392456, -0.04111852869391441, 0.040655069053173065, 0.1563921570777893, 0.1704418659210205, -0.187473326921463, 0.05996238440275192, -0.2469242811203003, 0.022555675357580185, -0.23358191549777985, 0.013023743405938148, 0.40761542320251465, 0.0227719284594059, 0.25111818313598633, -0.38495194911956787, 0.024535520002245903, 0.20835034549236298, -0.19091331958770752, -0.16345101594924927, -0.3159583806991577, 0.1267699897289276, -0.022908497601747513, 0.045527420938014984, 0.245714008808136, 0.07998616993427277, 0.012989860959351063, -0.1195111870765686, 0.16212201118469238, 0.20597690343856812, -0.11711668968200684, 0.09261813014745712, 0.1574007123708725, 0.18975907564163208, -0.0807778611779213, 0.24764856696128845, 0.11669608950614929, 0.1802671253681183, -0.10897260159254074, 0.19480237364768982, -0.2637600600719452, 0.009629219770431519, -0.20209313929080963, 0.11166881769895554, 0.05450846999883652, 0.05562417209148407, 0.34530705213546753, -0.3586975932121277, 0.014040205627679825, 0.18462398648262024, 0.21559862792491913, 0.18625085055828094, -0.4746741056442261, 0.19278092682361603, 0.13622832298278809, 0.13484588265419006, -0.09768899530172348, -0.12461858242750168, 0.27929040789604187, -0.20481300354003906, -0.0012340620160102844, 0.25625014305114746, 0.16673389077186584, 0.12639975547790527, 0.07439935207366943, 0.17130103707313538, 0.5603048801422119, 0.22111819684505463, 0.38346728682518005, 0.2631576359272003, -0.21025177836418152, 0.03234236687421799, 0.28433218598365784, 0.21370424330234528, 0.35067278146743774, 0.27179354429244995, -0.36455944180488586, 0.08409450203180313, -0.17576053738594055, -0.07677274942398071, 0.27983859181404114, -0.1770695149898529, 0.0009266771376132965, 0.0707482099533081, -0.06503351032733917, -0.15711578726768494, 0.011964276432991028, 0.4286253750324249, -0.22042648494243622, -0.1394309401512146, -0.07531136274337769, 0.24349161982536316, -0.11326969414949417, 0.08405983448028564, 0.018629994243383408, -0.057775646448135376, -0.2250698208808899, -0.0890258252620697, 0.027624351903796196, -0.40750569105148315, 0.09488937258720398, 0.1100761890411377, -0.1999967247247696, -0.27367955446243286, -0.19478538632392883, 0.18700483441352844, 0.050589267164468765, -0.27323558926582336, 0.04058243706822395, 0.11073662340641022, -0.08272267878055573, 0.008400769904255867, 0.44111648201942444, 0.558387279510498, 0.2686038017272949, 0.38699260354042053, 0.1934402883052826, 0.09135659039020538, -0.016420742496848106, -0.02738822065293789, 0.18532375991344452, -0.3572705388069153, 0.3719262182712555, 0.24762921035289764, 0.1661514937877655, -0.16119492053985596, -0.35555538535118103, 0.02248556539416313, 0.2529156506061554, -0.5081102848052979, 0.28391554951667786, -0.48413756489753723, -0.02768627554178238, -0.2907468378543854, 0.10662409663200378, -0.30258285999298096, 0.27542662620544434, 0.35596445202827454, -0.10762917995452881, 0.042174048721790314, -0.19482940435409546, 0.0692664161324501, -0.06899285316467285, 0.6009387969970703, 0.3120483160018921, 0.13884583115577698, -0.10551726073026657, -0.20421317219734192, -0.7697235345840454, 0.11394818127155304, 0.173649400472641, 0.12079663574695587, 0.1565258800983429, 0.01669955812394619, -0.05460657924413681, 0.2917526960372925, 0.11998701840639114, -0.14093777537345886, -0.25101205706596375, -0.2922225892543793, -0.19056330621242523, -0.32909277081489563, -0.008080922067165375, -0.13246308267116547, 0.08932889997959137, -0.07740235328674316, 0.366934210062027, -0.0808602124452591, 0.002955060452222824, -0.18465866148471832, 0.018904469907283783, -0.058991484344005585, -0.3697926104068756, 0.4889814853668213, 0.11550364643335342, 0.27397745847702026, 0.02109091356396675, -0.27241894602775574, -0.0853775292634964, -0.36440977454185486, -0.24611152708530426, 0.2770612835884094, -0.15902499854564667, 0.4655582904815674, -0.26344239711761475, -0.4329889118671417, -0.31831127405166626, 0.34046533703804016, 0.21635739505290985, -0.01677078753709793, -0.3919256627559662, 0.0725490003824234, -0.1571180820465088, 0.14060714840888977, 0.11154235899448395, 0.05932721123099327, -0.07147863507270813, 0.2744242548942566, -0.12112916260957718, -0.21860338747501373, 0.48528221249580383, -0.294021338224411, -0.12644734978675842, -0.04833250865340233, 0.14443829655647278, 0.279218852519989, -0.3428760766983032, -0.6455613374710083, 0.17734754085540771, 0.2988750636577606, -0.10919622331857681, -0.28357917070388794, 0.47448158264160156, -0.10047085583209991, 0.07787278294563293, -0.01206178031861782, 0.35924479365348816, 0.00027078576385974884, -0.17740362882614136, 0.5471984148025513, -0.11174112558364868 ]
https://github.com/huggingface/datasets/issues/6992
Dataset with streaming doesn't work with proxy
Hi ! can you try updating `datasets` and `huggingface_hub` ? ``` pip install -U datasets huggingface_hub ```
### Describe the bug I'm currently trying to stream data using dataset since the dataset is too big but it hangs indefinitely without loading the first batch. I use AIMOS which is a supercomputer that uses proxy to connect to the internet. I assume it has to do with the network configurations. I've already set up both HTTP_PROXY and HTTPS_PROXY. streaming = False works fine. ### Steps to reproduce the bug use load_dataset with streaming = True in AIMOS ### Expected behavior does not hang indefinitely and loads batches to start training run ### Environment info _libgcc_mutex 0.1 conda_forge conda-forge _openmp_mutex 4.5 2_gnu conda-forge _pytorch_select 2.0 cuda_2 https://ftp.osuosl.org/pub/open-ce/1.10.0 abseil-cpp 20220623.0 h9888cd1_6 conda-forge absl-py 1.0.0 py311h399429b_0 https://ftp.osuosl.org/pub/open-ce/1.10.0 aiofiles 23.2.1 pyhd8ed1ab_0 conda-forge aiohttp 3.8.6 py311hf118e41_0 aiosignal 1.2.0 pyhd3eb1b0_0 archspec 0.2.3 pyhd8ed1ab_0 conda-forge arrow-cpp 11.0.0 ha3edaa6_5_cpu conda-forge async-timeout 4.0.2 py311h6ffa863_0 attrs 23.1.0 py311h6ffa863_0 av 10.0.0 py311he6153ed_2 https://ftp.osuosl.org/pub/open-ce/1.10.0 aws-c-auth 0.6.24 hb81f6d7_5 conda-forge aws-c-cal 0.5.20 h3c2b4d9_6 conda-forge aws-c-common 0.8.11 h4194056_0 conda-forge aws-c-compression 0.2.16 ha19333d_3 conda-forge aws-c-event-stream 0.2.18 h12a9399_6 conda-forge aws-c-http 0.7.4 ha2cde00_2 conda-forge aws-c-io 0.13.17 h9189062_2 conda-forge aws-c-mqtt 0.8.6 h40d1a04_6 conda-forge aws-c-s3 0.2.4 hbdbe4f0_3 conda-forge aws-c-sdkutils 0.1.7 ha19333d_3 conda-forge aws-checksums 0.1.14 ha19333d_3 conda-forge aws-crt-cpp 0.19.7 hd018011_7 conda-forge aws-sdk-cpp 1.10.57 hb9575ba_4 conda-forge blas 1.0 openblas blinker 1.8.2 pyhd8ed1ab_0 conda-forge boltons 23.0.0 py311h6ffa863_0 boost-cpp 1.82.0 h25e6d66_2 bottleneck 1.3.5 py311h34f6284_0 brotli 1.0.9 hf118e41_7 brotli-bin 1.0.9 hf118e41_7 brotli-python 1.0.9 py311h4a02239_7 bzip2 1.0.8 h7b6447c_0 c-ares 1.19.1 hf118e41_0 ca-certificates 2024.6.2 h0f6029e_0 conda-forge cachetools 5.3.3 pyhd8ed1ab_0 conda-forge certifi 2024.6.2 pyhd8ed1ab_0 conda-forge cffi 1.15.1 py311hf118e41_3 charset-normalizer 2.0.4 pyhd3eb1b0_0 click 8.1.7 unix_pyh707e725_0 conda-forge conda 24.5.0 py311h1af927a_0 conda-forge conda-content-trust 0.2.0 py311h6ffa863_0 conda-libmamba-solver 23.11.1 py311h6ffa863_0 conda-package-handling 2.2.0 py311h6ffa863_0 conda-package-streaming 0.9.0 py311h6ffa863_0 contourpy 1.0.5 py311h25e6d66_0 cryptography 41.0.3 py311hb0e80e7_0 cudatoolkit 11.8.0 hedcfb66_13 conda-forge cudnn 8.9.2_11.8 h9ceb136_1 https://ftp.osuosl.org/pub/open-ce/1.10.0 cycler 0.11.0 pyhd3eb1b0_0 datasets 2.12.0 py311h6ffa863_0 dill 0.3.6 py311h6ffa863_0 distro 1.9.0 pyhd8ed1ab_0 conda-forge ffmpeg 4.2.2 opence_0 https://ftp.osuosl.org/pub/open-ce/1.10.0 filelock 3.9.0 py311h6ffa863_0 fmt 9.1.0 h25e6d66_0 fonttools 4.25.0 pyhd3eb1b0_0 freetype 2.12.1 hd23a775_0 frozendict 2.4.4 py311hb02d432_0 conda-forge frozenlist 1.4.0 py311hf118e41_0 fsspec 2023.9.2 py311h6ffa863_0 gflags 2.2.2 he6710b0_0 giflib 5.2.1 hf118e41_3 glog 0.6.0 hbe088e0_0 conda-forge gmp 6.3.0 h46f38da_0 conda-forge gmpy2 2.1.5 py311h2758da7_1 conda-forge google-auth 2.30.0 pyhff2d567_0 conda-forge google-auth-oauthlib 0.5.3 pyhd8ed1ab_0 conda-forge grpc-cpp 1.51.1 h8ba971d_1 conda-forge grpcio 1.54.3 py311h414e0d3_0 https://ftp.osuosl.org/pub/open-ce/1.10.0 huggingface_hub 0.17.3 py311h6ffa863_0 icu 73.1 h4a02239_0 idna 3.4 py311h6ffa863_0 importlib-metadata 6.0.0 py311h6ffa863_0 jinja2 3.1.4 pyhd8ed1ab_0 conda-forge jpeg 9e hf118e41_1 jsonpatch 1.32 pyhd3eb1b0_0 jsonpointer 2.1 pyhd3eb1b0_0 kiwisolver 1.4.4 py311h4a02239_0 krb5 1.20.1 hc019ccd_1 lame 3.100 hb283c62_1003 conda-forge lcms2 2.12 h2045e0b_0 ld_impl_linux-ppc64le 2.38 hec883e6_1 lerc 3.0 h29c3540_0 leveldb 1.23 h24532b4_1 conda-forge libabseil 20220623.0 cxx17_h9235812_6 conda-forge libarchive 3.6.2 hd8ab008_2 libarrow 11.0.0 h837770b_5_cpu conda-forge libboost 1.82.0 haf51a6a_2 libbrotlicommon 1.0.9 hf118e41_7 libbrotlidec 1.0.9 hf118e41_7 libbrotlienc 1.0.9 hf118e41_7 libcrc32c 1.1.2 h3b9df90_0 conda-forge libcurl 8.4.0 h4d62439_0 libdeflate 1.17 hf118e41_1 libedit 3.1.20221030 hf118e41_0 libev 4.33 h140841e_1 libevent 2.1.10 h19c23f1_4 conda-forge libexpat 2.6.2 h46f38da_0 conda-forge libffi 3.4.4 h4a02239_0 libgcc-ng 13.2.0 h31e42bb_10 conda-forge libgfortran-ng 11.2.0 hb3889a9_1 libgfortran5 11.2.0 h1234567_1 libgomp 13.2.0 h31e42bb_10 conda-forge libgoogle-cloud 2.7.0 h11140b6_1 conda-forge libgrpc 1.51.1 h4d29a31_1 conda-forge libmamba 1.5.3 h7c6fafd_0 libmambapy 1.5.3 py311h828bf7b_0 libnghttp2 1.57.0 h44e5816_0 libnsl 2.0.1 ha17a0cc_0 conda-forge libopenblas 0.3.23 hc5a31fb_2 https://ftp.osuosl.org/pub/open-ce/1.10.0 libopus 1.3.1 h4e0d66e_1 conda-forge libpng 1.6.39 hf118e41_0 libprotobuf 3.21.12 h1776448_0 https://ftp.osuosl.org/pub/open-ce/1.10.0 libsolv 0.7.24 h0f529ac_0 libsqlite 3.45.3 hd4bbf49_0 conda-forge libssh2 1.10.0 h50fa78f_2 libstdcxx-ng 13.2.0 h262982c_10 conda-forge libthrift 0.18.0 h82f1162_0 conda-forge libtiff 4.5.1 h4a02239_0 libutf8proc 2.8.0 hb283c62_0 conda-forge libuuid 2.38.1 h4194056_0 conda-forge libvpx 1.13.1 h46f38da_0 conda-forge libwebp 1.3.2 h0f96ee2_0 libwebp-base 1.3.2 hf118e41_0 libxcrypt 4.4.36 ha17a0cc_1 conda-forge libxml2 2.10.4 h18e3229_1 libzlib 1.2.13 h1f2b957_6 conda-forge llvm-openmp 14.0.6 hc028133_0 https://ftp.osuosl.org/pub/open-ce/1.10.0 lmdb 0.9.31 ha17a0cc_1 conda-forge lz4-c 1.9.4 h4a02239_0 markdown 3.4.4 pyhd8ed1ab_0 conda-forge markupsafe 2.1.5 py311h32d8acf_0 conda-forge matplotlib 3.8.0 py311h6ffa863_0 matplotlib-base 3.8.0 py311h52e1fcc_0 menuinst 2.1.1 py311h1af927a_0 conda-forge mpc 1.3.1 heaf1863_0 conda-forge mpfr 4.2.1 haad2271_1 conda-forge mpmath 1.3.0 pyhd8ed1ab_0 conda-forge multidict 6.0.2 py311hf118e41_0 multiprocess 0.70.14 py311h6ffa863_0 munkres 1.1.4 py_0 mypy_extensions 1.0.0 pyha770c72_0 conda-forge nccl 2.18.3 cuda11.8_1 https://ftp.osuosl.org/pub/open-ce/1.10.0 ncurses 6.4 h4a02239_0 nest-asyncio 1.6.0 pyhd8ed1ab_0 conda-forge networkx 2.8.8 pyhd8ed1ab_0 conda-forge nomkl 3.0 0 https://ftp.osuosl.org/pub/open-ce/1.10.0 numactl 2.0.16 hba61f60_1 https://ftp.osuosl.org/pub/open-ce/1.10.0 numexpr 2.8.7 py311hc46fc55_0 numpy 1.24.3 py311h148a09e_0 numpy-base 1.24.3 py311h06b82f6_0 oauthlib 3.2.2 pyhd8ed1ab_0 conda-forge openjpeg 2.4.0 hfe35807_0 openssl 3.3.1 h1f2b957_0 conda-forge orc 1.8.2 h341c9a4_2 conda-forge packaging 23.1 py311h6ffa863_0 pandas 2.1.1 py311h52e1fcc_0 pcre2 10.42 h280155c_0 pillow 10.0.1 py311he33076b_0 pip 23.3 py311h6ffa863_0 platformdirs 4.2.2 pyhd8ed1ab_0 conda-forge pluggy 1.0.0 py311h6ffa863_1 pooch 1.8.2 pyhd8ed1ab_0 conda-forge protobuf 4.21.12 py311ha7baec7_1 https://ftp.osuosl.org/pub/open-ce/1.10.0 psutil 5.9.8 py311hd26027c_0 conda-forge pyarrow 11.0.0 py311h04a18d5_1 pyasn1 0.6.0 pyhd8ed1ab_0 conda-forge pyasn1-modules 0.4.0 pyhd8ed1ab_0 conda-forge pybind11-abi 4 hd3eb1b0_1 pycosat 0.6.6 py311hf118e41_0 pycparser 2.21 pyhd3eb1b0_0 pyjwt 2.8.0 pyhd8ed1ab_1 conda-forge pyopenssl 23.2.0 py311h6ffa863_0 pyparsing 3.0.9 py311h6ffa863_0 pyre-extensions 0.0.30 pyhd8ed1ab_0 conda-forge pysocks 1.7.1 py311h6ffa863_0 python 3.11.8 h3332dee_0_cpython conda-forge python-dateutil 2.8.2 pyhd3eb1b0_0 python-tzdata 2023.3 pyhd3eb1b0_0 python-xxhash 2.0.2 py311hf118e41_1 python_abi 3.11 4_cp311 conda-forge pytorch 2.0.1 cuda11.8_py311_1 https://ftp.osuosl.org/pub/open-ce/1.10.0 pytorch-base 2.0.1 cuda11.8_py311_pb4.21.12_4 https://ftp.osuosl.org/pub/open-ce/1.10.0 pytz 2023.3.post1 py311h6ffa863_0 pyu2f 0.1.5 pyhd8ed1ab_0 conda-forge pyyaml 6.0.1 py311hf118e41_0 re2 2023.02.01 h883269e_0 conda-forge readline 8.2 hf118e41_0 regex 2023.10.3 py311hf118e41_0 reproc 14.2.4 h29c3540_1 reproc-cpp 14.2.4 h29c3540_1 requests 2.31.0 py311h6ffa863_0 requests-oauthlib 2.0.0 pyhd8ed1ab_0 conda-forge responses 0.13.3 pyhd3eb1b0_0 rsa 4.9 pyhd8ed1ab_0 conda-forge ruamel.yaml 0.17.21 py311hf118e41_0 s2n 1.3.37 h5e47323_0 conda-forge safetensors 0.4.0 py311hda16d9e_0 scipy 1.11.1 py311hd69e9bb_0 https://ftp.osuosl.org/pub/open-ce/1.10.0 sentencepiece 0.1.97 h1e74c73_py311_pb4.21.12_2 https://ftp.osuosl.org/pub/open-ce/1.10.0 setuptools 68.0.0 py311h6ffa863_0 six 1.16.0 pyhd3eb1b0_1 snappy 1.1.9 h29c3540_0 sqlite 3.41.2 hf118e41_0 sympy 1.12.1 pypyh2585a3b_103 conda-forge tabulate 0.8.10 pyhd8ed1ab_0 conda-forge tensorboard 2.13.0 pyhab0730d_pb4.21.12_1 https://ftp.osuosl.org/pub/open-ce/1.10.0 tensorboard-data-server 0.7.0 pyh6f84499_1 https://ftp.osuosl.org/pub/open-ce/1.10.0 tensorboard-plugin-wit 1.6.0 pyh9f0ad1d_0 conda-forge tk 8.6.13 hd4bbf49_0 conda-forge tokenizers 0.13.3 py311h3d4f45a_0 torchdata 0.6.0 py311_2 https://ftp.osuosl.org/pub/open-ce/1.10.0 torchsnapshot 0.1.0 pyhd8ed1ab_0 conda-forge torchtext-base 0.15.2 cuda11.8_py311_1 https://ftp.osuosl.org/pub/open-ce/1.10.0 torchtnt 0.2.4 pyhd8ed1ab_0 conda-forge torchvision-base 0.15.2 cuda11.8_py311_1 https://ftp.osuosl.org/pub/open-ce/1.10.0 tornado 6.3.3 py311hf118e41_0 tqdm 4.65.0 py311h7837921_0 transformers 4.32.1 py311h6ffa863_0 truststore 0.8.0 py311h6ffa863_0 typing-extensions 4.7.1 py311h6ffa863_0 typing_extensions 4.7.1 py311h6ffa863_0 typing_inspect 0.9.0 pyhd8ed1ab_0 conda-forge tzdata 2023c h04d1e81_0 urllib3 1.26.18 py311h6ffa863_0 utf8proc 2.6.1 h140841e_0 werkzeug 2.3.8 pyhd8ed1ab_0 conda-forge wheel 0.41.2 py311h6ffa863_0 xxhash 0.8.0 h140841e_3 xz 5.4.2 hf118e41_0 yaml 0.2.5 h7b6447c_0 yaml-cpp 0.8.0 h4a02239_0 yarl 1.8.1 py311hf118e41_0 zipp 3.11.0 py311h6ffa863_0 zlib 1.2.13 h1f2b957_6 conda-forge zstandard 0.19.0 py311hf118e41_0 zstd 1.5.5 h57e4825_0
17
Dataset with streaming doesn't work with proxy ### Describe the bug I'm currently trying to stream data using dataset since the dataset is too big but it hangs indefinitely without loading the first batch. I use AIMOS which is a supercomputer that uses proxy to connect to the internet. I assume it has to do with the network configurations. I've already set up both HTTP_PROXY and HTTPS_PROXY. streaming = False works fine. ### Steps to reproduce the bug use load_dataset with streaming = True in AIMOS ### Expected behavior does not hang indefinitely and loads batches to start training run ### Environment info _libgcc_mutex 0.1 conda_forge conda-forge _openmp_mutex 4.5 2_gnu conda-forge _pytorch_select 2.0 cuda_2 https://ftp.osuosl.org/pub/open-ce/1.10.0 abseil-cpp 20220623.0 h9888cd1_6 conda-forge absl-py 1.0.0 py311h399429b_0 https://ftp.osuosl.org/pub/open-ce/1.10.0 aiofiles 23.2.1 pyhd8ed1ab_0 conda-forge aiohttp 3.8.6 py311hf118e41_0 aiosignal 1.2.0 pyhd3eb1b0_0 archspec 0.2.3 pyhd8ed1ab_0 conda-forge arrow-cpp 11.0.0 ha3edaa6_5_cpu conda-forge async-timeout 4.0.2 py311h6ffa863_0 attrs 23.1.0 py311h6ffa863_0 av 10.0.0 py311he6153ed_2 https://ftp.osuosl.org/pub/open-ce/1.10.0 aws-c-auth 0.6.24 hb81f6d7_5 conda-forge aws-c-cal 0.5.20 h3c2b4d9_6 conda-forge aws-c-common 0.8.11 h4194056_0 conda-forge aws-c-compression 0.2.16 ha19333d_3 conda-forge aws-c-event-stream 0.2.18 h12a9399_6 conda-forge aws-c-http 0.7.4 ha2cde00_2 conda-forge aws-c-io 0.13.17 h9189062_2 conda-forge aws-c-mqtt 0.8.6 h40d1a04_6 conda-forge aws-c-s3 0.2.4 hbdbe4f0_3 conda-forge aws-c-sdkutils 0.1.7 ha19333d_3 conda-forge aws-checksums 0.1.14 ha19333d_3 conda-forge aws-crt-cpp 0.19.7 hd018011_7 conda-forge aws-sdk-cpp 1.10.57 hb9575ba_4 conda-forge blas 1.0 openblas blinker 1.8.2 pyhd8ed1ab_0 conda-forge boltons 23.0.0 py311h6ffa863_0 boost-cpp 1.82.0 h25e6d66_2 bottleneck 1.3.5 py311h34f6284_0 brotli 1.0.9 hf118e41_7 brotli-bin 1.0.9 hf118e41_7 brotli-python 1.0.9 py311h4a02239_7 bzip2 1.0.8 h7b6447c_0 c-ares 1.19.1 hf118e41_0 ca-certificates 2024.6.2 h0f6029e_0 conda-forge cachetools 5.3.3 pyhd8ed1ab_0 conda-forge certifi 2024.6.2 pyhd8ed1ab_0 conda-forge cffi 1.15.1 py311hf118e41_3 charset-normalizer 2.0.4 pyhd3eb1b0_0 click 8.1.7 unix_pyh707e725_0 conda-forge conda 24.5.0 py311h1af927a_0 conda-forge conda-content-trust 0.2.0 py311h6ffa863_0 conda-libmamba-solver 23.11.1 py311h6ffa863_0 conda-package-handling 2.2.0 py311h6ffa863_0 conda-package-streaming 0.9.0 py311h6ffa863_0 contourpy 1.0.5 py311h25e6d66_0 cryptography 41.0.3 py311hb0e80e7_0 cudatoolkit 11.8.0 hedcfb66_13 conda-forge cudnn 8.9.2_11.8 h9ceb136_1 https://ftp.osuosl.org/pub/open-ce/1.10.0 cycler 0.11.0 pyhd3eb1b0_0 datasets 2.12.0 py311h6ffa863_0 dill 0.3.6 py311h6ffa863_0 distro 1.9.0 pyhd8ed1ab_0 conda-forge ffmpeg 4.2.2 opence_0 https://ftp.osuosl.org/pub/open-ce/1.10.0 filelock 3.9.0 py311h6ffa863_0 fmt 9.1.0 h25e6d66_0 fonttools 4.25.0 pyhd3eb1b0_0 freetype 2.12.1 hd23a775_0 frozendict 2.4.4 py311hb02d432_0 conda-forge frozenlist 1.4.0 py311hf118e41_0 fsspec 2023.9.2 py311h6ffa863_0 gflags 2.2.2 he6710b0_0 giflib 5.2.1 hf118e41_3 glog 0.6.0 hbe088e0_0 conda-forge gmp 6.3.0 h46f38da_0 conda-forge gmpy2 2.1.5 py311h2758da7_1 conda-forge google-auth 2.30.0 pyhff2d567_0 conda-forge google-auth-oauthlib 0.5.3 pyhd8ed1ab_0 conda-forge grpc-cpp 1.51.1 h8ba971d_1 conda-forge grpcio 1.54.3 py311h414e0d3_0 https://ftp.osuosl.org/pub/open-ce/1.10.0 huggingface_hub 0.17.3 py311h6ffa863_0 icu 73.1 h4a02239_0 idna 3.4 py311h6ffa863_0 importlib-metadata 6.0.0 py311h6ffa863_0 jinja2 3.1.4 pyhd8ed1ab_0 conda-forge jpeg 9e hf118e41_1 jsonpatch 1.32 pyhd3eb1b0_0 jsonpointer 2.1 pyhd3eb1b0_0 kiwisolver 1.4.4 py311h4a02239_0 krb5 1.20.1 hc019ccd_1 lame 3.100 hb283c62_1003 conda-forge lcms2 2.12 h2045e0b_0 ld_impl_linux-ppc64le 2.38 hec883e6_1 lerc 3.0 h29c3540_0 leveldb 1.23 h24532b4_1 conda-forge libabseil 20220623.0 cxx17_h9235812_6 conda-forge libarchive 3.6.2 hd8ab008_2 libarrow 11.0.0 h837770b_5_cpu conda-forge libboost 1.82.0 haf51a6a_2 libbrotlicommon 1.0.9 hf118e41_7 libbrotlidec 1.0.9 hf118e41_7 libbrotlienc 1.0.9 hf118e41_7 libcrc32c 1.1.2 h3b9df90_0 conda-forge libcurl 8.4.0 h4d62439_0 libdeflate 1.17 hf118e41_1 libedit 3.1.20221030 hf118e41_0 libev 4.33 h140841e_1 libevent 2.1.10 h19c23f1_4 conda-forge libexpat 2.6.2 h46f38da_0 conda-forge libffi 3.4.4 h4a02239_0 libgcc-ng 13.2.0 h31e42bb_10 conda-forge libgfortran-ng 11.2.0 hb3889a9_1 libgfortran5 11.2.0 h1234567_1 libgomp 13.2.0 h31e42bb_10 conda-forge libgoogle-cloud 2.7.0 h11140b6_1 conda-forge libgrpc 1.51.1 h4d29a31_1 conda-forge libmamba 1.5.3 h7c6fafd_0 libmambapy 1.5.3 py311h828bf7b_0 libnghttp2 1.57.0 h44e5816_0 libnsl 2.0.1 ha17a0cc_0 conda-forge libopenblas 0.3.23 hc5a31fb_2 https://ftp.osuosl.org/pub/open-ce/1.10.0 libopus 1.3.1 h4e0d66e_1 conda-forge libpng 1.6.39 hf118e41_0 libprotobuf 3.21.12 h1776448_0 https://ftp.osuosl.org/pub/open-ce/1.10.0 libsolv 0.7.24 h0f529ac_0 libsqlite 3.45.3 hd4bbf49_0 conda-forge libssh2 1.10.0 h50fa78f_2 libstdcxx-ng 13.2.0 h262982c_10 conda-forge libthrift 0.18.0 h82f1162_0 conda-forge libtiff 4.5.1 h4a02239_0 libutf8proc 2.8.0 hb283c62_0 conda-forge libuuid 2.38.1 h4194056_0 conda-forge libvpx 1.13.1 h46f38da_0 conda-forge libwebp 1.3.2 h0f96ee2_0 libwebp-base 1.3.2 hf118e41_0 libxcrypt 4.4.36 ha17a0cc_1 conda-forge libxml2 2.10.4 h18e3229_1 libzlib 1.2.13 h1f2b957_6 conda-forge llvm-openmp 14.0.6 hc028133_0 https://ftp.osuosl.org/pub/open-ce/1.10.0 lmdb 0.9.31 ha17a0cc_1 conda-forge lz4-c 1.9.4 h4a02239_0 markdown 3.4.4 pyhd8ed1ab_0 conda-forge markupsafe 2.1.5 py311h32d8acf_0 conda-forge matplotlib 3.8.0 py311h6ffa863_0 matplotlib-base 3.8.0 py311h52e1fcc_0 menuinst 2.1.1 py311h1af927a_0 conda-forge mpc 1.3.1 heaf1863_0 conda-forge mpfr 4.2.1 haad2271_1 conda-forge mpmath 1.3.0 pyhd8ed1ab_0 conda-forge multidict 6.0.2 py311hf118e41_0 multiprocess 0.70.14 py311h6ffa863_0 munkres 1.1.4 py_0 mypy_extensions 1.0.0 pyha770c72_0 conda-forge nccl 2.18.3 cuda11.8_1 https://ftp.osuosl.org/pub/open-ce/1.10.0 ncurses 6.4 h4a02239_0 nest-asyncio 1.6.0 pyhd8ed1ab_0 conda-forge networkx 2.8.8 pyhd8ed1ab_0 conda-forge nomkl 3.0 0 https://ftp.osuosl.org/pub/open-ce/1.10.0 numactl 2.0.16 hba61f60_1 https://ftp.osuosl.org/pub/open-ce/1.10.0 numexpr 2.8.7 py311hc46fc55_0 numpy 1.24.3 py311h148a09e_0 numpy-base 1.24.3 py311h06b82f6_0 oauthlib 3.2.2 pyhd8ed1ab_0 conda-forge openjpeg 2.4.0 hfe35807_0 openssl 3.3.1 h1f2b957_0 conda-forge orc 1.8.2 h341c9a4_2 conda-forge packaging 23.1 py311h6ffa863_0 pandas 2.1.1 py311h52e1fcc_0 pcre2 10.42 h280155c_0 pillow 10.0.1 py311he33076b_0 pip 23.3 py311h6ffa863_0 platformdirs 4.2.2 pyhd8ed1ab_0 conda-forge pluggy 1.0.0 py311h6ffa863_1 pooch 1.8.2 pyhd8ed1ab_0 conda-forge protobuf 4.21.12 py311ha7baec7_1 https://ftp.osuosl.org/pub/open-ce/1.10.0 psutil 5.9.8 py311hd26027c_0 conda-forge pyarrow 11.0.0 py311h04a18d5_1 pyasn1 0.6.0 pyhd8ed1ab_0 conda-forge pyasn1-modules 0.4.0 pyhd8ed1ab_0 conda-forge pybind11-abi 4 hd3eb1b0_1 pycosat 0.6.6 py311hf118e41_0 pycparser 2.21 pyhd3eb1b0_0 pyjwt 2.8.0 pyhd8ed1ab_1 conda-forge pyopenssl 23.2.0 py311h6ffa863_0 pyparsing 3.0.9 py311h6ffa863_0 pyre-extensions 0.0.30 pyhd8ed1ab_0 conda-forge pysocks 1.7.1 py311h6ffa863_0 python 3.11.8 h3332dee_0_cpython conda-forge python-dateutil 2.8.2 pyhd3eb1b0_0 python-tzdata 2023.3 pyhd3eb1b0_0 python-xxhash 2.0.2 py311hf118e41_1 python_abi 3.11 4_cp311 conda-forge pytorch 2.0.1 cuda11.8_py311_1 https://ftp.osuosl.org/pub/open-ce/1.10.0 pytorch-base 2.0.1 cuda11.8_py311_pb4.21.12_4 https://ftp.osuosl.org/pub/open-ce/1.10.0 pytz 2023.3.post1 py311h6ffa863_0 pyu2f 0.1.5 pyhd8ed1ab_0 conda-forge pyyaml 6.0.1 py311hf118e41_0 re2 2023.02.01 h883269e_0 conda-forge readline 8.2 hf118e41_0 regex 2023.10.3 py311hf118e41_0 reproc 14.2.4 h29c3540_1 reproc-cpp 14.2.4 h29c3540_1 requests 2.31.0 py311h6ffa863_0 requests-oauthlib 2.0.0 pyhd8ed1ab_0 conda-forge responses 0.13.3 pyhd3eb1b0_0 rsa 4.9 pyhd8ed1ab_0 conda-forge ruamel.yaml 0.17.21 py311hf118e41_0 s2n 1.3.37 h5e47323_0 conda-forge safetensors 0.4.0 py311hda16d9e_0 scipy 1.11.1 py311hd69e9bb_0 https://ftp.osuosl.org/pub/open-ce/1.10.0 sentencepiece 0.1.97 h1e74c73_py311_pb4.21.12_2 https://ftp.osuosl.org/pub/open-ce/1.10.0 setuptools 68.0.0 py311h6ffa863_0 six 1.16.0 pyhd3eb1b0_1 snappy 1.1.9 h29c3540_0 sqlite 3.41.2 hf118e41_0 sympy 1.12.1 pypyh2585a3b_103 conda-forge tabulate 0.8.10 pyhd8ed1ab_0 conda-forge tensorboard 2.13.0 pyhab0730d_pb4.21.12_1 https://ftp.osuosl.org/pub/open-ce/1.10.0 tensorboard-data-server 0.7.0 pyh6f84499_1 https://ftp.osuosl.org/pub/open-ce/1.10.0 tensorboard-plugin-wit 1.6.0 pyh9f0ad1d_0 conda-forge tk 8.6.13 hd4bbf49_0 conda-forge tokenizers 0.13.3 py311h3d4f45a_0 torchdata 0.6.0 py311_2 https://ftp.osuosl.org/pub/open-ce/1.10.0 torchsnapshot 0.1.0 pyhd8ed1ab_0 conda-forge torchtext-base 0.15.2 cuda11.8_py311_1 https://ftp.osuosl.org/pub/open-ce/1.10.0 torchtnt 0.2.4 pyhd8ed1ab_0 conda-forge torchvision-base 0.15.2 cuda11.8_py311_1 https://ftp.osuosl.org/pub/open-ce/1.10.0 tornado 6.3.3 py311hf118e41_0 tqdm 4.65.0 py311h7837921_0 transformers 4.32.1 py311h6ffa863_0 truststore 0.8.0 py311h6ffa863_0 typing-extensions 4.7.1 py311h6ffa863_0 typing_extensions 4.7.1 py311h6ffa863_0 typing_inspect 0.9.0 pyhd8ed1ab_0 conda-forge tzdata 2023c h04d1e81_0 urllib3 1.26.18 py311h6ffa863_0 utf8proc 2.6.1 h140841e_0 werkzeug 2.3.8 pyhd8ed1ab_0 conda-forge wheel 0.41.2 py311h6ffa863_0 xxhash 0.8.0 h140841e_3 xz 5.4.2 hf118e41_0 yaml 0.2.5 h7b6447c_0 yaml-cpp 0.8.0 h4a02239_0 yarl 1.8.1 py311hf118e41_0 zipp 3.11.0 py311h6ffa863_0 zlib 1.2.13 h1f2b957_6 conda-forge zstandard 0.19.0 py311hf118e41_0 zstd 1.5.5 h57e4825_0 Hi ! can you try updating `datasets` and `huggingface_hub` ? ``` pip install -U datasets huggingface_hub ```
[ -0.7595154047012329, -0.10635515302419662, -0.07152166217565536, 0.05183333158493042, 0.46253055334091187, -0.08935867249965668, 0.3620522618293762, -0.005497589707374573, 0.16050976514816284, -0.06045207381248474, 0.04542510211467743, -0.0038897281046956778, 0.20361945033073425, 0.13516943156719208, -0.029219288378953934, 0.028596168383955956, 0.2144806683063507, -0.07478302717208862, -0.1068173199892044, 0.12954625487327576, 0.11880733072757721, -0.10902826488018036, -0.12604056298732758, -0.16975493729114532, -0.19280971586704254, -0.045335449278354645, 0.140940859913826, 0.006293591111898422, -0.2547963559627533, -0.051651954650878906, 0.3921253979206085, 0.2629866600036621, 0.2529289126396179, 0.7920704483985901, -0.00012145160144427791, 0.10263822972774506, 0.4270503520965576, 0.08372794091701508, -0.4780218303203583, -0.19018886983394623, -0.5394231081008911, -0.036314018070697784, 0.028280988335609436, 0.08474712818861008, -0.1569247543811798, 0.1519012302160263, 0.016682319343090057, -0.7493622899055481, 0.3549972176551819, 0.35086363554000854, 0.12986835837364197, 0.07852201908826828, -0.20197808742523193, -0.04141334071755409, 0.0077331289649009705, -0.1105836033821106, -0.2921881079673767, 0.259321391582489, 0.5993690490722656, 0.3667238652706146, 0.11317029595375061, 0.16706110537052155, -0.24970898032188416, -0.017146166414022446, -0.003664214164018631, -0.38071656227111816, 0.1281236708164215, -0.21534296870231628, 0.2602282762527466, 0.31354328989982605, 0.7191064357757568, -0.06752461940050125, -0.17677117884159088, -0.11303825676441193, 0.09695658832788467, -0.19373655319213867, 0.21663808822631836, 0.11168285459280014, -0.18503086268901825, 0.18617677688598633, -0.18840479850769043, -0.18487189710140228, -0.263516902923584, 0.2713082432746887, 0.1145651787519455, 0.039268527179956436, -0.07825878262519836, 0.1432131826877594, -0.15780438482761383, -0.017653483897447586, 0.3824993371963501, -0.4627845287322998, -0.12553003430366516, -0.14770403504371643, -0.6279200911521912, 0.33340218663215637, -0.17418432235717773, 0.10954056680202484, -0.013287870213389397, 0.20675574243068695, 0.22798682749271393, 0.3088350296020508, 0.13198639452457428, 0.07295519858598709, 0.17575876414775848, 0.1213393360376358, -0.029129333794116974, 0.20687121152877808, 0.11946311593055725, 0.22146306931972504, -0.2442113310098648, -0.03462854027748108, 0.015123679302632809, 0.16573278605937958, -0.25464940071105957, -0.27412161231040955, 0.2419324666261673, -0.21543627977371216, -0.12130244076251984, 0.010232687927782536, -0.16781145334243774, -0.0005756770260632038, 0.2735375165939331, 0.3715152144432068, -0.2960520088672638, 0.3650735318660736, 0.13941730558872223, 0.16015221178531647, -0.17784078419208527, -0.25167226791381836, -0.21210035681724548, -0.37013983726501465, -0.11855946481227875, 0.12859001755714417, 0.1228722482919693, -0.15707801282405853, 0.18406113982200623, -0.16681240499019623, 0.07544641941785812, -0.15618696808815002, 0.2758691608905792, -0.3935984671115875, 0.1028987318277359, 0.24619938433170319, 0.0871928334236145, 0.12667106091976166, -0.03797287866473198, -0.011730078607797623, 0.21686595678329468, 0.1875639259815216, -0.09014704078435898, -0.19144335389137268, 0.16401080787181854, 0.06517283618450165, -0.07385257631540298, -0.050446875393390656, -0.47746291756629944, 0.23461495339870453, -0.027336709201335907, -0.016932779923081398, -0.056676946580410004, -0.11757832765579224, -0.09803464263677597, 0.03551572188735008, 0.3498726785182953, 0.2535476088523865, -0.12358513474464417, 0.015190467238426208, 0.0011682910844683647, 0.02726549096405506, 0.1939631700515747, 0.09397551417350769, -0.012562843039631844, -0.2212182879447937, -0.140112966299057, -0.16002067923545837, 0.4900985360145569, -0.17412813007831573, -0.5785810351371765, 0.5089832544326782, -0.07919877767562866, 0.12152481824159622, 0.10081134736537933, 0.16958849132061005, 0.37969741225242615, 0.053426459431648254, -0.08318531513214111, 0.5257651209831238, -0.2303904891014099, -0.0024623796343803406, -0.15307681262493134, -0.23914210498332977, -0.205551877617836, 0.29508909583091736, -0.09058742225170135, 0.2296046018600464, 0.00037673860788345337, -0.13212443888187408, 0.309406042098999, 0.12973125278949738, 0.09600237011909485, 0.159376323223114, 0.11884370446205139, 0.18143686652183533, 0.02870940789580345, -0.11205552518367767, -0.3537273705005646, 0.126674622297287, 0.39066949486732483, -0.2563362717628479, -0.08127474784851074, 0.04092775285243988, -0.1604241132736206, -0.012615344487130642, -0.23291201889514923, 0.03354877606034279, -0.07489628344774246, 0.21193715929985046, -0.018846353515982628, 0.10607567429542542, 0.07778683304786682, 0.5425311923027039, -0.2386029064655304, -0.08153138309717178, -0.42770323157310486, 0.32034018635749817, 0.030176939442753792, -0.2017774134874344, -0.04812032729387283, -0.003229670226573944, -0.004787750542163849, -0.027942754328250885, -0.3568651080131531, 0.3067035377025604, -0.21191221475601196, 0.021588295698165894, -0.0212075337767601, 0.07883071899414062, 0.14337749779224396, -0.41046828031539917, 0.17752699553966522, 0.23017588257789612, 0.20177893340587616, -0.19765165448188782, -0.2384185492992401, 0.0036211758852005005, -0.03175909444689751, 0.38599997758865356, 0.11648932099342346, -0.12269796431064606, 0.4574165642261505, -0.04448233172297478, -0.2136184722185135, 0.1688832938671112, 0.39829394221305847, -0.17850826680660248, 0.34813570976257324, -0.07783614844083786, -0.38943833112716675, 0.07588713616132736, 0.032535262405872345, 0.08483968675136566, -0.08704971522092819, 0.04025889188051224, -0.09428279846906662, 0.054589323699474335, 0.1699705272912979, 0.042581792920827866, 0.3950011730194092, 0.14958198368549347, 0.1536966860294342, -0.11670368164777756, 0.2357087880373001, -0.3062599301338196, 0.08695143461227417, 0.024205200374126434, 0.07032940536737442, 0.029380418360233307, 0.1881931871175766, -0.04952698573470116, -0.10911421477794647, -0.1604704111814499, 0.0006146011874079704, -0.0025386549532413483, -0.18235479295253754, 0.19428420066833496, -0.20209528505802155, -0.2980157136917114, 0.07638721168041229, 0.05866393819451332, 0.008423762395977974, -0.07368718087673187, -0.3126866817474365, 0.515082597732544, 0.11526541411876678, 0.3356688618659973, -0.47976431250572205, 0.23633569478988647, 0.38139161467552185, -0.11174025386571884, -0.28099092841148376, 0.04501993581652641, -0.13535717129707336, -0.03200633451342583, 0.3177957534790039, 0.09010756015777588, 0.2215333729982376, 0.17876112461090088, -0.3515915870666504, -0.2582330107688904, 0.03804317116737366, -0.06287205964326859, 0.26076096296310425, 0.46790629625320435, -0.2531253397464752, 0.3888970613479614, -0.10866181552410126, 0.031464528292417526, 0.3533463776111603, -0.2751341760158539, 0.09842316806316376, 0.07011158019304276, 0.004168841056525707, 0.018623655661940575, 0.060516972094774246, -0.11603184789419174, -0.2502277195453644, -0.49313390254974365, -0.1467476338148117, -0.4189130663871765, -0.12653151154518127, 0.05981358140707016, 0.29398778080940247, -0.023113582283258438, -0.003999457228928804, -0.048345230519771576, -0.21154677867889404, -0.7109973430633545, 0.299363911151886, 0.05452857166528702, -0.4006044268608093, 0.004578888416290283, -0.00884125754237175, 0.01783650740981102, 0.5221659541130066, -0.5296130180358887, 0.3074628412723541, -0.1670302301645279, 0.23094233870506287, -0.004946373403072357, -0.20995499193668365, 0.08227990567684174, -0.45183390378952026, 0.07668990641832352, -0.190373033285141, -0.04913031682372093, -0.13278689980506897, -0.110389344394207, 0.3840969502925873, 0.20679351687431335, 0.6171578168869019, -0.012996310368180275, 0.5825139880180359, 0.30511391162872314, -0.04246221110224724, 0.3170378804206848, 0.10683746635913849, 0.31680816411972046, -0.05705965310335159, -0.34059539437294006, 0.23348212242126465, -0.10644227266311646, 0.011867620050907135, 0.04261172562837601, 0.15373948216438293, -0.09644939750432968, -0.3516904413700104, 0.24991071224212646, -0.003773927688598633, -0.1278829425573349, 0.10972484946250916, -0.6759452223777771, 0.15571683645248413, 0.22243037819862366, 0.08356305211782455, 0.09855775535106659, -0.15683695673942566, -0.18963171541690826, 0.3053949177265167, 0.028532609343528748, -0.017424456775188446, -0.21517334878444672, 0.13732820749282837, -0.6444417238235474, 0.1940515637397766, -0.01549700926989317, 0.7402154207229614, -0.2554468810558319, 0.07710332423448563, 0.13800254464149475, -0.07121536880731583, 0.5299293994903564, -0.3621428310871124, 0.13130982220172882, 0.21333949267864227, 0.1382281631231308, -0.4404885768890381, -0.0168706476688385, 0.04829027131199837, 0.2254064679145813, 0.5713040232658386, -0.16099177300930023, -0.3346794545650482, -0.15135711431503296, -0.1325179785490036, -0.09767749160528183, 0.09408827126026154, -0.3678950369358063, -0.2864481806755066, -0.06641894578933716, -0.11700871586799622, 0.060858260840177536, -0.04013001173734665, -0.003498686943203211, -0.2552492320537567, -0.4420599937438965, -0.2622419595718384, 0.16401353478431702, -0.07990187406539917, -0.1450296938419342, -0.0265272818505764, 0.14586150646209717, 0.5247458815574646, 0.04336051642894745, 0.4100865423679352, 0.13657838106155396, 0.5353084802627563, 0.14001795649528503, -0.42727458477020264, 0.13104939460754395, 0.10126315802335739, 0.009976096451282501, 0.31670689582824707, -0.09892258048057556, 0.14720463752746582, 0.33893895149230957, 0.19561195373535156, 0.10388641059398651, 0.1840609908103943, 0.09833764284849167, 0.2438129484653473, -0.39534756541252136, -0.6204916834831238, 0.35757943987846375, 0.12313385307788849, 0.03920547664165497, 0.6839979290962219, -0.44566333293914795, -0.03998942673206329, 0.013001041486859322, -0.3372155427932739, 0.6656674146652222, 0.015380807220935822, -0.05583655461668968, 0.31849339604377747, 0.16076317429542542, 0.2120661437511444, -0.06336826086044312, 0.11123178899288177, 0.07817478477954865, -0.3764602541923523, 0.050261884927749634, -0.14915931224822998, 0.43091291189193726, -0.02172355353832245, -0.2614634037017822, -0.005080429371446371, 0.0641612559556961, 0.24486735463142395, 0.18371930718421936, 0.19383592903614044, -0.28719353675842285, -0.08112543821334839, -0.3322613835334778, 0.12406526505947113, -0.238007590174675, -0.10716082155704498, -0.011109041050076485, 0.06805495172739029, -0.11475002765655518, -0.03496137261390686, -0.26162368059158325, 0.3087763488292694, -0.384550005197525, -0.11679603159427643, -0.1410222053527832, -0.2321835607290268, 0.3544604480266571, -0.2145538628101349, -0.09100799262523651, -0.021344613283872604, -0.1723632514476776, 0.4966017007827759, -0.04207772761583328, 0.15442241728305817, 0.16839094460010529, -0.4319705367088318, 0.08565355837345123, -0.01057075522840023, -0.15693849325180054, 0.1989835798740387, 0.0046056220307946205, -0.2674112915992737, 0.19249257445335388, -0.061435118317604065, 0.5974522829055786, -0.1377827674150467, -0.11933787167072296, -0.055130407214164734, -0.10188905894756317, -0.03064367175102234, 0.06894860416650772, 0.13513922691345215, -0.1847049444913864, 0.34761080145835876, -0.019709471613168716, -0.09353270381689072, -0.2222997397184372, 0.5026031136512756, -0.04538322985172272, 0.02336367592215538, 0.3446972966194153, 0.3118059039115906, -0.08918722718954086, -0.11017048358917236, 0.01852608472108841, -0.09988422691822052, -0.02809872105717659, 0.08666892349720001, -0.14769242703914642, -0.09685277938842773, 0.13423189520835876, -0.19700103998184204, -0.26346635818481445, -0.13174468278884888, 0.09685148298740387, -0.3862946331501007, -0.283146470785141, -0.2394113391637802, -0.1334720253944397, -0.008777786046266556, -0.10894405841827393, -0.015664394944906235, 0.12112016975879669, 0.2343483716249466, -0.18112871050834656, -0.06242109090089798, -0.1146613135933876, 0.17710663378238678, 0.26085519790649414, 0.03216588497161865, 0.16380324959754944, -0.27571290731430054, -0.0615106001496315, -0.007584281265735626, -0.1535593718290329, -0.13510116934776306, -0.05703815817832947, 0.19283972680568695, 0.1533486545085907, -0.24101622402668, -0.26155886054039, -0.46636152267456055, -0.13608360290527344, -0.011120714247226715, 0.1127186119556427, 0.08781652897596359, -0.22338266670703888, -0.5811986327171326, 0.02477135881781578, 0.18524032831192017, -0.2504097819328308, 0.26634836196899414, -0.2039322555065155, 0.10803578048944473, 0.06419778615236282, 0.08325287699699402, 0.3282574415206909, -0.0546802282333374, -0.4045715630054474, -0.13407137989997864, 0.18514235317707062, 0.15667986869812012, 0.6007956862449646, -0.40786242485046387, 0.07821707427501678, 0.30609363317489624, 0.06522918492555618, 0.3574889898300171, -0.02617025002837181, -0.2322344183921814, 0.10636934638023376, 0.15922924876213074, -0.12645083665847778, 0.06984324753284454, 0.252034455537796, 0.11210501194000244, 0.04798802360892296, -0.07777503877878189, -0.06241554766893387, -0.2591673731803894, -0.07797396183013916, 0.40231090784072876, 0.39470481872558594, 0.06946942210197449, 0.3417606055736542, -0.09545104205608368, 0.38672059774398804, 0.050503820180892944, -0.017832370474934578, 0.1560831069946289, -0.1324024200439453, 0.5169326066970825, 0.08752964437007904, 0.3972853720188141, 0.11182915419340134, 0.3861958980560303, -0.2736493647098541, -0.36392301321029663, -0.252145379781723, 0.07872970402240753, -0.6171146631240845, 0.20990785956382751, -0.011726699769496918, -0.10397303849458694, -0.11172802746295929, -0.17005883157253265, -0.09782572835683823, -0.06947556138038635, 0.024212181568145752, 0.0511593297123909, -0.2747366726398468, 0.07297002524137497, 0.09249404072761536, -0.21288780868053436, 0.07541541755199432, 0.11169774830341339, 0.21974381804466248, 0.2577816843986511, -0.06833219528198242, -0.5187199115753174, -0.11264397948980331, 0.21068847179412842, 0.08173704147338867, -0.0878596231341362, 0.47445148229599, 0.040755048394203186, -0.063654825091362, 0.1544479876756668, 0.17794430255889893, 0.3001146912574768, 0.37381303310394287, 0.11380848288536072, 0.2365974485874176, 0.15653587877750397, -0.18408134579658508, -0.15283052623271942, 0.32807013392448425, 0.24444851279258728, -0.3394481837749481, 0.11647757887840271, 0.08642473816871643, -0.08154206722974777, 0.16020812094211578, -0.033596012741327286, 0.25593096017837524, -0.4202652871608734, 0.16240358352661133, -0.1141236424446106, 0.02101665735244751, -0.28338751196861267, -0.03877446800470352, -0.32081055641174316, 0.48569145798683167, 0.5324878692626953, -0.5167497396469116, 0.1391024887561798, -0.2826901376247406, 0.004923216998577118, -0.23538672924041748, 0.491323322057724, 0.22835183143615723, 0.19167670607566833, -0.3157305121421814, -0.19141408801078796, -0.3625487983226776, 0.022881299257278442, -0.1932579129934311, 0.00020923279225826263, -0.02886638417840004, 0.37075385451316833, 0.0029085054993629456, -0.022510133683681488, -0.05018872022628784, 0.3924606144428253, 0.2046591341495514, 0.28086817264556885, -0.3454863429069519, -0.22860850393772125, -0.17606812715530396, 0.37556755542755127, -0.11489010602235794, -0.3758653402328491, 0.2808232009410858, 0.08766908198595047, -0.0633193626999855, 0.22519271075725555, -0.3139374256134033, -0.029629694297909737, -0.10634621977806091, 0.26665300130844116, 0.09538141638040543, 0.27592384815216064, -0.0014209076762199402, 0.0940442681312561, -0.3889633119106293, -0.24600811302661896, -0.09465203434228897, 0.028001826256513596, 0.1564691960811615, 0.2551751136779785, -0.3391405940055847, 0.06737346947193146, -0.10913659632205963, 0.062324777245521545, -0.11318018287420273, -0.39078056812286377, 0.015418412163853645, -0.07689300924539566, -0.07716838270425797, 0.59033203125, -0.20323657989501953, 0.1393173336982727, -0.054239749908447266, 0.04626709967851639, -0.2994954586029053, -0.12897250056266785, 0.5594402551651001, -0.1284497082233429, -0.2336277961730957, -0.4892158806324005, 0.23862159252166748, 0.15081846714019775, 0.21915805339813232, -0.02230498194694519, 0.08133199065923691, 0.2500671446323395, -0.038526616990566254, 0.08547689020633698, 0.18895037472248077, 0.18937094509601593, 0.41535887122154236, -0.11592334508895874, 0.16767239570617676, 0.039780329912900925, -0.26155728101730347, 0.10650663077831268, -0.09126396477222443 ]
https://github.com/huggingface/datasets/issues/6985
AttributeError: module 'pyarrow.lib' has no attribute 'ListViewType'
"Please note that the error is raised just at import:\r\n```python\r\nimport pyarrow.parquet as pq\r(...TRUNCATED)
"### Describe the bug\n\nI have been struggling with this for two days, any help would be appreciate(...TRUNCATED)
121
"AttributeError: module 'pyarrow.lib' has no attribute 'ListViewType' \n ### Describe the bug\n\nI h(...TRUNCATED)
[-0.18593543767929077,-0.4933111071586609,-0.03907205909490585,0.42739152908325195,0.484800398349761(...TRUNCATED)
https://github.com/huggingface/datasets/issues/6985
AttributeError: module 'pyarrow.lib' has no attribute 'ListViewType'
"It is not a problem with the `datasets` library: we support latest version of `pyarrow` and our Con(...TRUNCATED)
"### Describe the bug\n\nI have been struggling with this for two days, any help would be appreciate(...TRUNCATED)
211
"AttributeError: module 'pyarrow.lib' has no attribute 'ListViewType' \n ### Describe the bug\n\nI h(...TRUNCATED)
[-0.18593543767929077,-0.4933111071586609,-0.03907205909490585,0.42739152908325195,0.484800398349761(...TRUNCATED)
https://github.com/huggingface/datasets/issues/6984
Convert polars DataFrame back to datasets
"Hi ! Thanks for reporting :)\r\n\r\nWe don't support `large_list` yet, though it should be added to(...TRUNCATED)
"### Feature request\n\nThis returns error.\r\n```python\r\nfrom datasets import Dataset\r\n\r\ndsdf(...TRUNCATED)
25
"Convert polars DataFrame back to datasets \n ### Feature request\n\nThis returns error.\r\n```pytho(...TRUNCATED)
[-0.29300931096076965,-0.4047183096408844,-0.11217483878135681,0.10133212804794312,0.460617959499359(...TRUNCATED)
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
2