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

Jupyter Notebook: Can't parse config file #31

Open
adintegra opened this issue Oct 19, 2020 · 1 comment
Open

Jupyter Notebook: Can't parse config file #31

adintegra opened this issue Oct 19, 2020 · 1 comment

Comments

@adintegra
Copy link

adintegra commented Oct 19, 2020

The example Jupyter Notebook can't be run as there seems to be an issue reading the example config file:

singleConfig = ConfigFileReader(singleConfigPath)

Causes the following error:

---------------------------------------------------------------------------
KeyError                                  Traceback (most recent call last)
<ipython-input-16-81364d44a7da> in <module>
      1 # Read config file.
----> 2 singleConfig = ConfigFileReader(singleConfigPath)

C:\temp\Anaconda\lib\site-packages\callflow\operations\read_config.py in __init__(self, filepath, config_json)
     31 
     32         self.scheme = self.json["scheme"]
---> 33         self.datasets = self.json["datasets"]
     34         self.runName = self.json["run_name"]
     35         self.save_path = os.path.join(self.data_path, ".callflow")

KeyError: 'datasets'

Config file: hpctoolkit-cpi-database/callflow.config.json
Environment: CallFlow 1.1.1 / Jupyter Notebook 6.0.3 / Anaconda Python 3.7.6 / Win10 64bit

@adintegra adintegra changed the title Jupyter Notebook Jupyter Notebook: Can't parse config file Oct 19, 2020
@jarusified
Copy link
Collaborator

Hey @adintegra, Thanks for filling the issue. I was able to reproduce the bug and this is primarily because the new version 1.2.0 deprecated the callflow/operations/read_config.py into a more generic server/argparser.py. I am currently working on fixing this. Will keep you posted.

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