Skip to content

InterpolationSyntaxError from get_info() #2541

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

Closed
djarecka opened this issue Apr 13, 2018 · 3 comments · Fixed by #2542
Closed

InterpolationSyntaxError from get_info() #2541

djarecka opened this issue Apr 13, 2018 · 3 comments · Fixed by #2542
Milestone

Comments

@djarecka
Copy link
Collaborator

Summary

getting an error running nipype workflow or simply nipype.get_info (related to #1970)

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/dorota/anaconda/envs/nipype_test/lib/python2.7/site-packages/nipype/__init__.py", line 48, in get_info
    return _get_pkg_info(os.path.dirname(__file__))
  File "/Users/dorota/anaconda/envs/nipype_test/lib/python2.7/site-packages/nipype/pkg_info.py", line 92, in get_pkg_info
    src, hsh = pkg_commit_hash(pkg_path)
  File "/Users/dorota/anaconda/envs/nipype_test/lib/python2.7/site-packages/nipype/pkg_info.py", line 58, in pkg_commit_hash
    archive_subst = cfg_parser.get('commit hash', 'archive_subst_hash')
  File "/Users/dorota/anaconda/envs/nipype_test/lib/python2.7/site-packages/backports/configparser/__init__.py", line 811, in get
    d)
  File "/Users/dorota/anaconda/envs/nipype_test/lib/python2.7/site-packages/backports/configparser/__init__.py", line 384, in before_get
    self._interpolate_some(parser, option, L, value, section, defaults, 1)
  File "/Users/dorota/anaconda/envs/nipype_test/lib/python2.7/site-packages/backports/configparser/__init__.py", line 434, in _interpolate_some
    "found: %r" % (rest,))
backports.configparser.InterpolationSyntaxError: '%' must be followed by '%' or '(', found: u'%h'

How to replicate the behavior

It can be replicated in conda environment (used conda create -n nipype_test python=2 nipype):
python -c "import nipype; nipype.get_info()"

If nipype is installed with pip the error disappears

@djarecka djarecka changed the title InterpolationSyntaxError form get_info() InterpolationSyntaxError from get_info() Apr 13, 2018
@djarecka
Copy link
Collaborator Author

error is from this line

@oesteban
Copy link
Contributor

Possible duplicate of #1880?

@djarecka
Copy link
Collaborator Author

@oesteban it looks like #1880 is about the installation problem as it was #1970. And we believed that we solved it with #2282
but I had a similar error when running error

satra added a commit that referenced this issue Apr 25, 2018
using RawConfigParser instead of ConfigParser (closes #2541)
@effigies effigies added this to the 1.0.3 milestone Apr 25, 2018
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

Successfully merging a pull request may close this issue.

3 participants