permissions

Permission error in Python, when working with audiosegment in Windows 10

Permission error in Python, when working with audiosegment in Windows 10 Question: I wrote a short text to play the audio file. But when running, the program gives error permission. I noticed that every time I run the program, the name of the file that has the permission error is different This file is in …

Total answers: 2

Filter view based on the users Group

Filter view based on the users Group Question: I am trying to filter the query further to only show records where the Groups matches the logged in users group. I am new to Python and not sure how to add an additional filter into the below view. View @login_required(login_url=’login’) def home(request): q= request.GET.get(‘q’) if request.GET.get(‘q’) …

Total answers: 1

Permission denied when calling SHAP

Permission denied when calling SHAP Question: I am using Jupyter Notebook and my OS is windows. I wanted to call shap library using the code !pip install shap but I got this error: ModuleNotFoundError: No module named ‘shap’ I have already installed shap in windows Command Prompt by pip install shap After that I tried …

Total answers: 1

Errno 13 Permission denied error when trying to load Huggingface dataset

Errno 13 Permission denied error when trying to load Huggingface dataset Question: I’m trying to do a very simple thing: to load a dataset from the Huggingface library (see example code here) on my Mac: from datasets import load_dataset raw_datasets = load_dataset("glue", "mrpc") I’m getting the following error: PermissionError: [Errno 13] Permission denied: ‘/Users/username/.cache/huggingface/datasets/downloads/6d9bc094a0588d875caee4e51df39ab5d6b6316bf60695294827b02601d421a5.759f3e257a3fad0984d9f8ba9a26479d341795eb50fa64e4c1de40f1fc421313.py.lock’ I’ve …

Total answers: 2

Linux [Errno 13] Permission denied

Linux [Errno 13] Permission denied Question: I have a python script that works on Windows but am having a hard time running it on Ubuntu Desktop. Not a lot of wisdom here any tips greatly appreciated… test.py #!/usr/bin/env python3 """ https://pymodbustcp.readthedocs.io/en/latest/examples/server_allow.html An example of Modbus/TCP server which allow modbus read and/or write only from specific …

Total answers: 2

pip install planemo fails with error: "ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied: '/usr/local/locale'"

pip install planemo fails with error: "ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied: '/usr/local/locale'" Question: I am trying to install planemo like so: /usr/local/bin/pip3 install virtualenv virtualenv .venv . .venv/bin/activate /usr/local/bin/pip3 install planemo The last command fails with this error message: ERROR: Could not install packages due to an …

Total answers: 3

What does "DEFAULT_PERMISSION_CLASSES will only work for the views or objects that don't have permissions explicitly set." mean?

What does "DEFAULT_PERMISSION_CLASSES will only work for the views or objects that don't have permissions explicitly set." mean? Question: I was reading below mentioned blog which is about Built-in permissions in DRF Source: https://testdriven.io/blog/built-in-permission-classes-drf/ In this blog there is statement: DEFAULT_PERMISSION_CLASSES will only work for the views or objects that don’t have permissions explicitly set. …

Total answers: 1

Jupyter Notebook: Access to the file was denied

Jupyter Notebook: Access to the file was denied Question: I’m trying to run a Jupyter notebook on Ubuntu 21.10. I’ve installed python, jupyter notebook, and all the various prerequisites. I added export PATH=$PATH:~/.local/bin to my bashrc so that the command jupyter notebook would be operational from the terminal. When I call jupyter notebook from the …

Total answers: 5

permission denied on Mac

permission denied on Mac Question: I want to change the default version of my Python on Mac from Python2 to Python3. However, when I try to do that, it says that the permission is denied. Here is what I have tried: ls -l /usr/local/bin/python* The output was: lrwxr-xr-x 1 root wheel 69 Jun 21 10:41 …

Total answers: 2

PyCharm cannot access files in /usr/lib/ and /usr/bin/

PyCharm cannot access files in /usr/lib/ and /usr/bin/ Question: I am using PyCharm 2020.2.3 with Python 3.8.6 under Pop_OS! 20.10 (you can probably do as if I am using Ubuntu 20.10) which is unable to see files into /usr/bin or /usr/lib. Here is an example if I try to touch the /usr/lib/firefox/firefox binary file. # …

Total answers: 1