Chia error 13 permission denied

[BUG] [Error 13] Permission denied. #3636

Comments

vasya37 commented May 4, 2021

[Error 13] Permission denied. You are trying to access a file/directory without having the necessary permissions. Most likely one of the plot folders in your config.yaml has an issue.

Hello! Error number 13 appeared. Now I can’t add my own directories with plots, how can I solve this problem? Program version 1.1.3. System version Windows 10 pro 64 bit. Before that, everything worked fine, after the update, this problem appeared.

The text was updated successfully, but these errors were encountered:

Alfed777 commented May 4, 2021

vladimircicovic commented May 4, 2021 •

Hi people, do this:
Before doing this make backup of config.yaml first !

  1. Go to C:\Users\.chia\mainnet\config\
  2. Backup and THEN edit config.yaml
  3. find inside of yaml: plot_directories:
  4. Remove paths that are you not using or not existing or remove all (this is just where are directory for plot are)
  5. save config.yaml
  6. Start Chia app — if missing plot dir — add them

I just fixed and it works for me ok.

vasya37 commented May 4, 2021

It works, thank you! There I had a few disks that I took out.

vladimircicovic commented May 4, 2021

CLOBUG CLOBUG
(close the bug)

htcll411 commented May 5, 2021

Still can’t be identified with this method!

salvarez1988 commented May 5, 2021

Hi people, do this:
Before doing this make backup of config.yaml first !

  1. Go to C:\Users.chia\mainnet\config\
  2. Backup and THEN edit config.yaml
  3. find inside of yaml: plot_directories:
  4. Remove paths that are you not using or not existing or remove all (this is just where are directory for plot are)
  5. save config.yaml
  6. Start Chia app — if missing plot dir — add them

Thank you very much, works!! I realize what happened and why this error happen!

vladimircicovic commented May 5, 2021

Still can’t be identified with this method!

Please describe what is happening. Could you remove all paths from config.yaml as I wroted ? And then add path by path.

htcll411 commented May 5, 2021

I remove all paths from config.yaml and add path, but it’s still not recognized

htcll411 commented May 5, 2021

My wallet generates a new address,But the Manage Farming Rewards address is old, inconsistent.

ramiali1994 commented May 11, 2021

Traceback (most recent call last):
File «chia/cmds/chia.py», line 81, in
File «chia/cmds/chia.py», line 77, in main
File «click/core.py», line 829, in call
File «click/core.py», line 782, in main
File «click/core.py», line 1259, in invoke
File «click/core.py», line 1259, in invoke
File «click/core.py», line 1066, in invoke
File «click/core.py», line 610, in invoke
File «click/decorators.py», line 21, in new_func
File «chia/cmds/plots.py», line 135, in create_cmd
File «chia/plotting/create_plots.py», line 96, in create_plots
File «chia/util/path.py», line 23, in mkdir
File «pathlib.py», line 1312, in mkdir
PermissionError: [Errno 13] Permission denied: ‘/Volumes/Chia — Temp’
[20582] Failed to execute script chia

MacOS Big Sur
Hard drive External 20TB
ExFAT

I need Command to create Ploting in My mac but the main pc doing farm in windows then i have my pool key and my farm key

eagle283 commented May 18, 2021

I had this same issue today. I’m running Win 10 and had 5 plots stuck because of permission denied. I looked at the log of the first plot that was stuck, found the file that had permission issues and copied the name to notepad. I went to my ssd temp plotting directory and searched for the file name and copied that file to a different directory, deleted the old one in the temp plotting directory and than copied it back to the plotting directory. All of the plots that were stuck are now continuing. I hope this helps you.

baronduke commented May 29, 2021

J’ai eu le même bug aujourd’hui . Suite au retrait d’un disque dur usb. Mais une nouvelle erreur s’affiche après avoir supprimer les lignes du fichier config.yaml

Erreur : argument of type «none Type» is not iterable

Источник

Ошибка:[Errno 13] Permission denied

Разработать программу о телефонной компании, которая хранит данные о
своих клиентах. Для простого учета использовать класс Customer (Клиент),
который содержащий атрибуты:
— поле name: имя клиента (чтение/запись);
— свойство balance: баланс счета клиента (только чтение);
— метод record_payment(): выполняет пополнение баланса;
— метод record_call(): выполняет обработку звонка клиента в зависимости
от:типа звонка: «городской» (5 руб./мин.) и «мобильный» (1 руб./мин.);
— количества минут разговора.
Повременный: «городской» (5 руб./мин.) и «мобильный» (1 руб./мин.);
После 10 минут в 2 раза дешевле: после 10 минут звонка на городской
номер каждая вторая минута бесплатно; в остальном как Повременный;
Плати до 5 минут: до 5 минут разговора в 2 раза дешевле тарифа
Повременный, после — в 2 раза дороже.

Помощь в написании контрольных, курсовых и дипломных работ здесь.

Возникло исключение: PermissionError [Errno 13] Permission denied:
Выскакивает ошибка Возникло исключение: PermissionError Permission denied: ‘Results’ File.

Запись в файл: Permission denied
По мере выполнения скрипта надо записывать кое какие данные в текстовой файл. def.

Открытие файла, ошибка [Errno 2] No such file or directory
Помогите, пожалуйста. Не могу разобраться в работе с файлами. Открытие файла, как я понимаю: f =.

[Errno 13] Permission denied
Добрый день. Выполняю в Python команду: z = zipfile.ZipFile(path_to_zip, ‘r’) Выдает Хотя.

Записывайтесь на профессиональные IT-курсы здесь

Источник

Errno 13 Permission denied Python

In python, I am currently experimenting with what I can do with open command. I tried to open a file, and got an error message. Here’s my code:

My error message was:

I looked on the website to try and find some answers and I saw a post where somebody mentioned chmod . 1. I’m not sure what this is and 2. I don’t know how to use it, and thats why I’ve come here.

5 Answers 5

Your user don’t have the right permissions to read the file, since you used open() without specifying a mode.

Since you’re using Windows, you should read a little more about File and Folder Permissions.

Also, if you want to play with your file permissions, you should right-click it, choose Properties and select Security tab.

Or if you want to be a little more hardcore, you can run your script as admin.

SO Related Questions:

For future searchers, if none of the above worked, for me, python was trying to open a folder as a file.

Check at the location where you try to open the file, if you have a folder with exactly the same name as the file you try to open (the file extension is part of the file name).

The problem here is your user doesn’t have proper rights/permissions to open the file this means that you’d need to grant some administrative privileges to your python ide before you run that command.

As you are a windows user you just need to right click on python ide => select option ‘Run as Administrator’ and then run your command.

And if you are using the command line to run the codes, do the same open the command prompt with admin rights. Hope it helps

If nothing worked for you, make sure the file is not open in another program. I was trying to import an xlsx file and Excel was blocking me from doing so.

If you have this problem in Windows 10, and you know you have premisions on folder (You could write before but it just started to print exception PermissionError recently).. You will need to install Windows updates. I hope someone will help this info.

Not the answer you’re looking for? Browse other questions tagged python or ask your own question.

Linked

Hot Network Questions

Subscribe to RSS

To subscribe to this RSS feed, copy and paste this URL into your RSS reader.

site design / logo © 2021 Stack Exchange Inc; user contributions licensed under cc by-sa. rev 2021.6.10.39473

By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.

Источник

PermissionError: [Errno 13] Permission denied on Windows

I’m working on a python program that outputs information into an Excel file using the openpyxl library. When I go to save the information using “workbook.save(excel_file_path),” I get «PermissionError: [Errno 13] path\to\output_file.xlsx» message and the program crashes before writing to the file.

I keep getting directed to this post, but it did not solve my problem: https://stackoverflow.com/a/36469464

  1. Running CMD.exe as an administrator, navigating to my “application.exe” file, and then running it does not work.
  2. I cannot create a shortcut or batch file to run it with “python.exe application.py” because it imports an external library that is not detectable when run like this. In addition, I plan on running this program on multiple VMs, and would like to avoid downloading and installing Python and the necessary libraries for each one. A single .exe file is the best solution for this.
  3. I have tried running the .exe file as an administrator by right-clicking on it and clicking “Run as administrator.” I have also tried checking the «Run this program as an administrator» check button in the «properties > compatibility > settings» menu.

I opened the .exe file’s «properties > security» tab, and it shows that the program should have the necessary permissions to write to a file. When I click the «Advanced» button in the security tab, the Access column has «full control» for each row. This is also the case with the parent directory the Excel file is being saved to.

Other things to note:

  1. The program creates a parent directory with os.makedirs() to put the Excel file into if the directory does not exist already. The parent directory is always created before the program crashes, and since the parent directory was made by the program, I’m guessing it would not deny write permissions to files contained within it.
  2. The Excel file being written to is not open (or it does not exist yet), so it is not because of conflicting file usage.
  3. The Excel file is located in a different directory from the .exe file. Both the output directory and the .exe file are both on the administrator account in two different Desktop subdirectories.
  4. The program works fine in PyCharm, but not in the .exe created from Pyinstaller.

My OS is Windows 10, but I have also had this same problem on my old Windows 7 computer involving a text file. Python 3.8 and Pyinstaller 4.2 are being used for this.

Источник

Как решить ошибку PermissionError: [Errno 13] Permission denied: ‘/proc/stat’ !?

Traceback (most recent call last):
File «/data/data/com.termux/files/usr/lib/python3.9/site-packages/psutil/_common.py», line 403, in wrapper
return cacheChia error 13 permission denied
KeyError: ((‘/proc’,), frozenset())

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File «/data/data/com.termux/files/usr/lib/python3.9/site-packages/psutil/_pslinux.py», line 302, in
set_scputimes_ntuple(«/proc»)
File «/data/data/com.termux/files/usr/lib/python3.9/site-packages/psutil/_common.py», line 405, in wrapper
ret = cacheChia error 13 permission denied = fun(*args, **kwargs)
File «/data/data/com.termux/files/usr/lib/python3.9/site-packages/psutil/_pslinux.py», line 269, in set_scputimes_ntuple
with open_binary(‘%s/stat’ % procfs_path) as f:
File «/data/data/com.termux/files/usr/lib/python3.9/site-packages/psutil/_common.py», line 711, in open_binary
return open(fname, «rb», **kwargs)
PermissionError: [Errno 13] Permission denied: ‘/proc/stat’

  • Вопрос задан 21 апр.
  • 70 просмотров

Закрыл , запустил , выдало следующее :

ERROR:asyncio:Task exception was never retrieved
future: exception=PermissionError(13, ‘Permission denied’)>
Traceback (most recent call last):
File «/data/data/com.termux/files/usr/lib/python3.9/site-packages/psutil/_common.py», line 403, in wrapper
return cacheChia error 13 permission denied
KeyError: ((‘/proc’,), frozenset())

During handling of the above exception, another exception occurred:

Источник

Читайте также:  Самые быстрые новости криптовалют
Оцените статью