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

importlib not python 2.6 compatible #875

Closed
bari12 opened this issue Mar 13, 2018 · 0 comments
Closed

importlib not python 2.6 compatible #875

bari12 opened this issue Mar 13, 2018 · 0 comments

Comments

@bari12
Copy link
Member

bari12 commented Mar 13, 2018

Motivation

For the dynamic lfn2pfn function the module importlib is used. However, importlib is not part of python 2.6, thus it breaks the clients used on the ATLAS local root base. One option would be to use the backport of importlib for python 2.6 (on pypi) - needs to be investigated.

https://pypi.python.org/pypi/importlib

  • Adding importlib to the dependencies works for python 2.6 and 2.7, but a install on python 3.x fails like this.

For now we move the import to a conditional part of the code, as no module gets dynamically loaded at the moment anyway; This needs to be addressed later on with the dynamic loading of permissions and policies, as this should be handled in a similar way.

@bari12 bari12 added this to the 1.15.3 milestone Mar 13, 2018
@bari12 bari12 self-assigned this Mar 13, 2018
bari12 added a commit that referenced this issue Mar 14, 2018
…6_compatible

Core: Workaround for importlib incompatibility with python 2.6; Closes #875
bari12 added a commit that referenced this issue Mar 14, 2018
…6_compatible

Core: Workaround for importlib incompatibility with python 2.6; Closes #875
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant