Got a similar issue with different error code
(base) iMac-di-Andrea:noaa-runtime andrea$ make test-submission
chmod -R 0777 submission/
docker run
-it
–network none
–mount type=bind,source="/Users/andrea/Desktop/WQU Course/Drivendata comp/magnet/noaa-runtime"/data,target=/codeexecution/data,readonly
–mount type=bind,source="/Users/andrea/Desktop/WQU Course/Drivendata comp/magnet/noaa-runtime"/submission,target=/codeexecution/submission
–shm-size 8g
a7e818734188
Unpacking submission…
Archive: ./submission/submission.zip
inflating: ./config.json
inflating: ./predict.py
creating: ./model/
creating: ./model/variables/
inflating: ./model/variables/variables.data-00000-of-00001
inflating: ./model/variables/variables.index
inflating: ./model/saved_model.pb
creating: ./model/assets/
inflating: ./scaler.pck
Copying main.py
… main.py copied bd6ff34c39b399463c4a1c2b4bd2b302 ./main.py
Running submission with Python
2021-01-09 21:07:10.750 | INFO | main:main:140 - reading raw Dst data from /codeexecution/data/dst_labels.csv …
2021-01-09 21:07:11.417 | INFO | main:main:144 - calculating submission format and ground truth …
2021-01-09 21:07:15.681 | INFO | main:main:151 - calculated submission format and ground truth dataframes with 139,365 rows
2021-01-09 21:07:15.681 | INFO | main:main:156 - reading in solar wind data …
2021-01-09 21:08:15.356 | INFO | main:main:160 - reading in satellite positions data …
2021-01-09 21:08:15.630 | INFO | main:main:164 - reading in sunspots data …
2021-01-09 21:08:15.642 | INFO | main:main:168 - entering main loop
2021-01-09 21:08:31.743705: I tensorflow/core/platform/cpu_feature_guard.cc:142] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN)to use the following CPU instructions in performance-critical operations: SSE4.1 SSE4.2 AVX AVX2 FMA
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
2021-01-09 21:08:31.947253: I tensorflow/core/platform/profile_utils/cpu_utils.cc:104] CPU Frequency: 3489280000 Hz
2021-01-09 21:08:31.947948: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x559a31758dc0 initialized for platform Host (this does not guarantee that XLA will be used). Devices:
2021-01-09 21:08:31.947965: I tensorflow/compiler/xla/service/service.cc:176] StreamExecutor device (0): Host, Default Version
2021-01-09 21:08:37.513 | INFO | main:main_loop:78 - making predictions for period train_a
Traceback (most recent call last):
File “main.py”, line 181, in
typer.run(main)
File “/home/appuser/miniconda/envs/py/lib/python3.8/site-packages/typer/main.py”, line 855, in run
app()
File “/home/appuser/miniconda/envs/py/lib/python3.8/site-packages/typer/main.py”, line 214, in call
return get_command(self)(*args, **kwargs)
File “/home/appuser/miniconda/envs/py/lib/python3.8/site-packages/click/core.py”, line 829, in call
return self.main(*args, **kwargs)
File “/home/appuser/miniconda/envs/py/lib/python3.8/site-packages/click/core.py”, line 782, in main
rv = self.invoke(ctx)
File “/home/appuser/miniconda/envs/py/lib/python3.8/site-packages/click/core.py”, line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/home/appuser/miniconda/envs/py/lib/python3.8/site-packages/click/core.py”, line 610, in invoke
return callback(*args, **kwargs)
File “/home/appuser/miniconda/envs/py/lib/python3.8/site-packages/typer/main.py”, line 497, in wrapper
return callback(**use_params) # type: ignore
File “main.py”, line 169, in main
submission = main_loop(
File “main.py”, line 97, in main_loop
dst0, dst1 = predict_dst(
File “/codeexecution/predict.py”, line 129, in predict_dst
features, s = preprocess_features(
File “/codeexecution/predict.py”, line 81, in preprocess_features
hourly_features = aggregate_hourly(solar_wind).join(sunspots)
File “/codeexecution/predict.py”, line 60, in aggregate_hourly
[“period”, feature_df.index.get_level_values(1).floor(“H”)]
File “/home/appuser/miniconda/envs/py/lib/python3.8/site-packages/pandas/core/indexes/base.py”, line 1469, in _get_level_values
self._validate_index_level(level)
File “/home/appuser/miniconda/envs/py/lib/python3.8/site-packages/pandas/core/indexes/base.py”, line 1402, in _validate_index_level
raise IndexError(
IndexError: Too many levels: Index has only 1 level, not 2
ERROR conda.cli.main_run:execute(34): Subprocess for ‘conda run [‘python’, ‘main.py’]’ command failed. (See above for error)
Exporting submission.csv result…
ERROR: Script did not produce a submission.csv file in the main directory.
================ END ================