Hi Alphien Team,
I had a PermissionError popping up when I run import alphien in Notebook (Python 3) , the error was in this section:
Importing your Qlib functions… from team:
PermissionError Traceback (most recent call last)
<ipython-input-1-d485941ac64f> in <module>
----> 1 import alphien/mnt/public/IT/Libs/Python/alphien/init.py in <module>
57 moduleFile = “”
58 moduleCode = “”
—> 59 for modulePath in path.rglob("*.py"):
60 if “.ipynb_checkpoints” not in str(modulePath):
61 # The module is not a checkpoints file/opt/conda/lib/python3.6/pathlib.py in rglob(self, pattern)
1110 raise NotImplementedError(“Non-relative patterns are unsupported”)
1111 selector = _make_selector(("**",) + tuple(pattern_parts))
-> 1112 for p in selector.select_from(self):
1113 yield p
1114/opt/conda/lib/python3.6/pathlib.py in select_from(self, parent_path)
485 exists = path_cls.exists
486 scandir = parent_path._accessor.scandir
–> 487 if not is_dir(parent_path):
488 return iter([])
489 return self._select_from(parent_path, is_dir, exists, scandir)/opt/conda/lib/python3.6/pathlib.py in is_dir(self)
1346 “”"
1347 try:
-> 1348 return S_ISDIR(self.stat().st_mode)
1349 except OSError as e:
1350 if e.errno not in (ENOENT, ENOTDIR):/opt/conda/lib/python3.6/pathlib.py in stat(self)
1156 os.stat() does.
1157 “”"
-> 1158 return self._accessor.stat(self)
1159
1160 def owner(self):/opt/conda/lib/python3.6/pathlib.py in wrapped(pathobj, *args)
385 @functools.wraps(strfunc)
386 def wrapped(pathobj, *args):
–> 387 return strfunc(str(pathobj), *args)
388 return staticmethod(wrapped)
389PermissionError: [Errno 13] Permission denied: ‘/home/bunnym/UBSPRICING/Library’
Hope to hear from you about any solution. Much appreciated!
Best