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

Problem with logfile timestamp #6

Open
philippesamuel opened this issue Apr 29, 2021 · 1 comment
Open

Problem with logfile timestamp #6

philippesamuel opened this issue Apr 29, 2021 · 1 comment

Comments

@philippesamuel
Copy link

While trying to run the iris_example an error occured here:

maggot/maggot/experiment.py

Lines 231 to 236 in 2f93644

def _setup_log_file(self):
logdir = os.path.join(self._maggot_meta_dir, "logs")
os.makedirs(logdir, exist_ok=True)
logfile = time.strftime("%Y-%m-%d-%H-%M-%S-%s", time.gmtime())
logfile = os.path.join(logdir, logfile)
self._logfile = logfile

Traceback (most recent call last):
  File "<input>", line 1, in <module>
  File "C:\Users\SantoP23\AppData\Local\JetBrains\PyCharm 2021.1\plugins\python\helpers\pydev\_pydev_bundle\pydev_umd.py", line 197, in runfile
    pydev_imports.execfile(filename, global_vars, local_vars)  # execute the script
  File "C:\Users\SantoP23\AppData\Local\JetBrains\PyCharm 2021.1\plugins\python\helpers\pydev\_pydev_imps\_pydev_execfile.py", line 18, in execfile
    exec(compile(contents+"\n", file, 'exec'), glob, loc)
  File "C:/Users/SantoP23/Documents/_Current_Projects/_NNProjekt/Philippes_Code/test_maggot/iris_sklearn.py", line 66, in <module>
    main()
  File "C:/Users/SantoP23/Documents/_Current_Projects/_NNProjekt/Philippes_Code/test_maggot/iris_sklearn.py", line 43, in main
    experiment = Experiment(config=svm_config)
  File "c:\users\santop23\documents\_current_projects\_nnprojekt\philippes_code\test_maggot\maggot-master\maggot\experiment.py", line 148, in __init__
    self._setup_log_file()
  File "c:\users\santop23\documents\_current_projects\_nnprojekt\philippes_code\test_maggot\maggot-master\maggot\experiment.py", line 234, in _setup_log_file
    logfile = time.strftime("%Y-%m-%d-%H-%M-%S-%s", time.gmtime())
ValueError: Invalid format string
@philippesamuel
Copy link
Author

Removing "-%s" worked for me.

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

1 participant