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

Error when a line in the config file is commented out #297

Closed
joneuhauser opened this issue Jun 23, 2023 · 2 comments
Closed

Error when a line in the config file is commented out #297

joneuhauser opened this issue Jun 23, 2023 · 2 comments

Comments

@joneuhauser
Copy link

I wanted to remove a setting from my config file, i.e.

CC: gcc
FC: gfortran
MPICC: mpicc
MPIFC: mpif77
MPIEXEC: "mpiexec"
#MPIEXEC_FLAGS: ""
CFLAGS: "-march=native"
FFLAGS: "-march=native -mcmodel=medium -std=legacy"

which leads to this not very helpful error message:

AttributeError in file /tmp/.venv/lib/python3.10/site-packages/snek5000_cbox/Snakefile, line 9:
type object 'OutputCbox' has no attribute 'get_configfile'
  File "/tmp/.venv/lib/python3.10/site-packages/snek5000_cbox/Snakefile", line 9, in <module>
  File "/tmp/.venv/lib/python3.10/site-packages/snek5000/output/base.py", line 306, in update_snakemake_config
@paugier
Copy link
Contributor

paugier commented Jul 4, 2023

Thanks for the report. It's indeed a quite weird error message! I can reproduce so I'm going to investigate.

@paugier
Copy link
Contributor

paugier commented Jul 6, 2023

Fixed by #298

@paugier paugier closed this as completed Jul 6, 2023
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