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

'Configuration' object has no attribute 'disable_log' #29

Open
rsingh5 opened this issue Jan 30, 2018 · 2 comments
Open

'Configuration' object has no attribute 'disable_log' #29

rsingh5 opened this issue Jan 30, 2018 · 2 comments

Comments

@rsingh5
Copy link

rsingh5 commented Jan 30, 2018

I have a simple configuration Pipeline_config.txt to run CPAC and I am getting 'Configuration' object has no attribute 'disable_log' error. I have tried different configuration options but not able to find how to fix it. Can you please help?

Here is the log
180130-20:12:37,959 workflow INFO:
VERSION: CPAC 1.0.2

Setting maximum number of cores per participant to 1
Setting number of participants at once to 1
Setting OMP_NUM_THREADS to 1
Setting MKL_NUM_THREADS to 1
Setting ANTS/ITK thread usage to 1

Maximum potential number of cores that might be used during this run: 1

++ 3dcalc: AFNI version=AFNI_16.3.08 (Nov 4 2016) [64-bit]
++ Authored by: A cast of thousands
Process Process-7:
Traceback (most recent call last):
File "/usr/local/bin/miniconda/lib/python2.7/multiprocessing/process.py", line 258, in _bootstrap
self.run()
File "/usr/local/bin/miniconda/lib/python2.7/multiprocessing/process.py", line 114, in run
self._target(*self._args, **self._kwargs)
File "/usr/local/bin/miniconda/lib/python2.7/site-packages/CPAC/pipeline/cpac_pipeline.py", line 291, in prep_workflow
if c.disable_log and c.disable_log == True:
AttributeError: 'Configuration' object has no attribute 'disable_log'

@rsingh5
Copy link
Author

rsingh5 commented Jan 30, 2018

I even tried bids/cpac:v1.0.2_disable_log_2 Docker app but I am getting same issue. Any idea what can be wrong?

@sgiavasis
Copy link
Contributor

Hello @rsingh5,

I think this is related to a change in the pipeline config parameter names. The option to disable logging was introduced in CPAC v1.0.2, but the template pipeline config might not have the "disable_log" key introduced.

This changed in CPAC v1.0.3- can you try this fork and branch and see if it resolves your problem?
https://github.com/sgiavasis/CPAC/tree/v1.0.3_merged

Best,
Steve

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