Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Common Errors and Fixes #56

Open
rburghol opened this issue Jan 11, 2023 · 1 comment
Open

Common Errors and Fixes #56

rburghol opened this issue Jan 11, 2023 · 1 comment
Assignees

Comments

@rburghol
Copy link

Put them here.

@jdkleiner
Copy link
Member

jdkleiner commented Jan 11, 2023

Error:

TypeError: cannot properly create the storer for: [_TABLE_MAP] [group->/PERLND/SNOW/STATES (Group) '',value-><class 'NoneType'>,format->None

Call that results in this error:

(hsp2dev_venv) C:\Users\nrf46657\Desktop\GitHub\HSPsquared\tests\testcbp\HSP2results>hsp2 import_uci PL3_5250_0001.uci PL3_5250_0001.h5
Traceback (most recent call last):
  File "C:\Users\nrf46657\virtualenvs\hsp2dev_venv\lib\site-packages\pandas\io\pytables.py", line 1693, in _create_storer
    cls = _TABLE_MAP[tt]
KeyError: None

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "C:\Users\nrf46657\AppData\Local\Programs\Python\Python38\lib\runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Users\nrf46657\AppData\Local\Programs\Python\Python38\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\Users\nrf46657\virtualenvs\hsp2dev_venv\Scripts\hsp2.exe\__main__.py", line 7, in <module>
  File "C:\Users\nrf46657\virtualenvs\hsp2dev_venv\lib\site-packages\HSP2tools\HSP2_CLI.py", line 60, in main
    mando.main()
  File "C:\Users\nrf46657\virtualenvs\hsp2dev_venv\lib\site-packages\mando\core.py", line 208, in __call__
    return self.execute(sys.argv[1:])
  File "C:\Users\nrf46657\virtualenvs\hsp2dev_venv\lib\site-packages\mando\core.py", line 204, in execute
    return command(*a)
  File "C:\Users\nrf46657\virtualenvs\hsp2dev_venv\lib\site-packages\HSP2tools\HSP2_CLI.py", line 40, in import_uci
    readUCI(ucifile, h5file)
  File "C:\Users\nrf46657\virtualenvs\hsp2dev_venv\lib\site-packages\HSP2tools\readUCI.py", line 179, in readUCI
    df = read_hdf(store, path)
  File "C:\Users\nrf46657\virtualenvs\hsp2dev_venv\lib\site-packages\pandas\io\pytables.py", line 425, in read_hdf
    return store.select(
  File "C:\Users\nrf46657\virtualenvs\hsp2dev_venv\lib\site-packages\pandas\io\pytables.py", line 824, in select
    s = self._create_storer(group)
  File "C:\Users\nrf46657\virtualenvs\hsp2dev_venv\lib\site-packages\pandas\io\pytables.py", line 1695, in _create_storer
    raise error("_TABLE_MAP") from err
TypeError: cannot properly create the storer for: [_TABLE_MAP] [group->/PERLND/SNOW/STATES (Group) '',value-><class 'NoneType'>,format->None

Solution:

  • delete your .h5 file!
  • In this case, must delete the file: C:\Users\nrf46657\Desktop\GitHub\HSPsquared\tests\testcbp\HSP2results\PL3_5250_0001.h5

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

No branches or pull requests

2 participants