on lab.ebrains.eu, bs.logger.setLevel("INFO") results in error
how to reproduce:
log onto lab.ebrains.eu, start a new notebook
!pip install brainscapes
from os import environ
environ['HBP_AUTH_TOKEN'] = clb_oauth.get_token()
import brainscapes as bs
bs.logger.setLevel("INFO") # we want to see some messages!
results in
---------------------------------------------------------------------------
PermissionError Traceback (most recent call last)
<ipython-input-10-a71e2479fcba> in <module>
----> 1 import brainscapes as bs
2 bs.logger.setLevel("INFO") # we want to see some messages!
/opt/app-root/lib/python3.6/site-packages/brainscapes/__init__.py in <module>
20 logger.addHandler(ch)
21
---> 22 from .space import REGISTRY as spaces
23 from .parcellation import REGISTRY as parcellations
24 from .atlas import REGISTRY as atlases
/opt/app-root/lib/python3.6/site-packages/brainscapes/space.py in <module>
14
15 from .commons import create_key
---> 16 from .config import ConfigurationRegistry
17
18 class Space:
/opt/app-root/lib/python3.6/site-packages/brainscapes/config.py in <module>
17 from . import logger
18 from .commons import create_key
---> 19 from .retrieval import cached_get
20 from gitlab import Gitlab
21 logger.setLevel('INFO')
/opt/app-root/lib/python3.6/site-packages/brainscapes/retrieval.py in <module>
46 return cachedir
47
---> 48 CACHEDIR = __compile_cachedir()
49 logger.debug('Using cache: {}'.format(CACHEDIR))
50
/opt/app-root/lib/python3.6/site-packages/brainscapes/retrieval.py in __compile_cachedir()
43 cachedir = user_cache_dir(__name__,"")
44 if not path.isdir(cachedir):
---> 45 makedirs(cachedir)
46 return cachedir
47
/opt/app-root/lib64/python3.6/os.py in makedirs(name, mode, exist_ok)
208 if head and tail and not path.exists(head):
209 try:
--> 210 makedirs(head, mode, exist_ok)
211 except FileExistsError:
212 # Defeats race condition when another thread created the path
/opt/app-root/lib64/python3.6/os.py in makedirs(name, mode, exist_ok)
218 return
219 try:
--> 220 mkdir(name, mode)
221 except OSError:
222 # Cannot rely on checking for EEXIST, since the operating system
PermissionError: [Errno 13] Permission denied: '/home//.cache'
This may be an issue with the implementation of jupyternotebook on ebrains side, but it's worth chasing up.