PermissionError

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)
389

PermissionError: [Errno 13] Permission denied: ‘/home/bunnym/UBSPRICING/Library’


Hope to hear from you about any solution. Much appreciated!


Best

Hello there -


UBSPRICING and UBSSPEQUITY are common directories for all users in each competition, you do not have write access on these folders. You should have a folder with the name of your team and this is where you should do all your work - the content of this folder is only shared to your team members.


If you want to do some work, save some file you also can create a new directory on your home folder.


If you have further access issues that is related to your own environment, please contact us via live support or direct chat.


I hope that helps. Happy coding, Lionel.

hi Lionel,


thankyou for your help!


Best,

Mony

Hi Lionel,

I also ran into this error, only I was already using a notebook from my team’s directory. I also tried various other locations to create my notebook(except for the common directories), and I kept running into this PermissionError… Any ideas why this might occur? Thanks!