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

Hi,there was a problem halfway through the run, how should I solve it? #9

Open
hhhhh-dei opened this issue Jan 6, 2025 · 1 comment

Comments

@hhhhh-dei
Copy link

template.ipynb
Executing: 11%|█ | 4/37 [00:05<00:48, 1.48s/cell]
Traceback (most recent call last):
File "D:\AAAdybrqs\master-thesis-main\run_all_notebooks.py", line 31, in
exec(open(LOCAL_RUNNER_FILENAME).read())
File "", line 7, in
File "D:\Anaconda\envs\master\lib\site-packages\papermill\execute.py", line 131, in execute_notebook
raise_for_execution_errors(nb, output_path)
File "D:\Anaconda\envs\master\lib\site-packages\papermill\execute.py", line 251, in raise_for_execution_errors
raise error
papermill.exceptions.PapermillExecutionError:

Exception encountered at "In [3]":

KeyError Traceback (most recent call last)
File D:\Anaconda\envs\master\lib\configparser.py:789, in RawConfigParser.get(self, section, option, raw, vars, fallback)
788 try:
--> 789 value = d[option]
790 except KeyError:

File D:\Anaconda\envs\master\lib\collections_init_.py:941, in ChainMap.getitem(self, key)
940 pass
--> 941 return self.missing(key)

File D:\Anaconda\envs\master\lib\collections_init_.py:933, in ChainMap.missing(self, key)
932 def missing(self, key):
--> 933 raise KeyError(key)

KeyError: 'neuralnetworkname'

During handling of the above exception, another exception occurred:

NoOptionError Traceback (most recent call last)
Cell In[3], line 6
3 config = configparser.ConfigParser()
4 config.read(DEFAULT_CONFIG_FILENAME)
----> 6 NEURAL_NETWORK_NAME = config.get('NeuralNetworkNames', NN_NAME)
7 NEURAL_NETWORK_FILENAME = NEURAL_NETWORK_NAME + '.wts.h5'
9 TRAINING_SET_DIMENSION = config.getfloat('TrainingValues', 'TrainingSetSplitPercentage')

File D:\Anaconda\envs\master\lib\configparser.py:792, in RawConfigParser.get(self, section, option, raw, vars, fallback)
790 except KeyError:
791 if fallback is _UNSET:
--> 792 raise NoOptionError(option, section)
793 else:
794 return fallback

NoOptionError: No option 'neuralnetworkname' in section: 'NeuralNetworkNames'

@thanh-guong
Copy link
Owner

Hi there,
thank you for your question.

Did you edit any file before running the run_all_notebooks.py script?

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