nipype icon indicating copy to clipboard operation
nipype copied to clipboard

c3 iflogger is none

Open reghbali opened this issue 4 years ago • 0 comments
trafficstars

Summary

The iflogger in nipype.interfaces.c3 is None, resulting in errors like this:

File "/home/user/.local/lib/python3.6/site-packages/nipype/interfaces/c3.py", line 229, in _gen_outfile
    iflogger.info("Generating `out_file`.")

AttributeError: 'NoneType' object has no attribute 'info'

I suspect the issue is that iflogger is generated as:

iflogger = logging.getLogger("interface")

but it should be

iflogger = logging.getLogger("nipype.interface")

Actual behavior

Expected behavior

How to replicate the behavior

Script/Workflow details

Please put URL to code or code here (if not too long).

Platform details:


Execution environment

{'commit_hash': '54f502940', 'commit_source': 'installation', 'networkx_version': '2.1', 'nibabel_version': '3.2.1', 'nipype_version': '1.6.0', 'numpy_version': '1.14.3', 'pkg_path': '/home/reghbali/.local/lib/python3.6/site-packages/nipype', 'scipy_version': '1.1.0', 'sys_executable': '/netopt/rhel7/versions/python/anaconda3/bin/python', 'sys_platform': 'linux', 'sys_version': '3.6.5 |Anaconda, Inc.| (default, Apr 29 2018, 16:14:56) \n' '[GCC 7.2.0]', 'traits_version': '6.2.0'}

Choose one

  • My python environment outside container

reghbali avatar Jul 18 '21 02:07 reghbali