-
Notifications
You must be signed in to change notification settings - Fork 119
"idf.py create-project" fails with "PermissionError: [Errno 13] Permission denied: ..." #75
Copy link
Copy link
Open
Description
Created dev environment with nix --experimental-features 'nix-command flakes' develop github:mirrexagon/nixpkgs-esp-dev#esp32-idf
And tried to create an empty project causes permission errors:
[capreme@thinkpad:~/Projects/tmp_fresh]$ idf.py create-project hello
WARNING: Python interpreter "/nix/store/6ipv375swmlk0yf1m1fwn0fq6i7ph2jl-python3-3.12.6-env/bin/python3.12" used to start idf.py is not from installed venv "/nix/store/b0d45nsqi08wyqvfqadgmxnw820fpfrz-esp-idf-v5.4/python-env"
Executing action: create-project
Traceback (most recent call last):
File "/nix/store/b0d45nsqi08wyqvfqadgmxnw820fpfrz-esp-idf-v5.4/tools/idf.py", line 855, in <module>
main()
File "/nix/store/b0d45nsqi08wyqvfqadgmxnw820fpfrz-esp-idf-v5.4/tools/idf.py", line 745, in main
cli(argv, prog_name=PROG, complete_var=SHELL_COMPLETE_VAR)
File "/nix/store/6ipv375swmlk0yf1m1fwn0fq6i7ph2jl-python3-3.12.6-env/lib/python3.12/site-packages/click/core.py", line 1157, in __call__
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/nix/store/6ipv375swmlk0yf1m1fwn0fq6i7ph2jl-python3-3.12.6-env/lib/python3.12/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/nix/store/6ipv375swmlk0yf1m1fwn0fq6i7ph2jl-python3-3.12.6-env/lib/python3.12/site-packages/click/core.py", line 1720, in invoke
return _process_result(rv)
^^^^^^^^^^^^^^^^^^^
File "/nix/store/6ipv375swmlk0yf1m1fwn0fq6i7ph2jl-python3-3.12.6-env/lib/python3.12/site-packages/click/core.py", line 1657, in _process_result
value = ctx.invoke(self._result_callback, value, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/nix/store/6ipv375swmlk0yf1m1fwn0fq6i7ph2jl-python3-3.12.6-env/lib/python3.12/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/nix/store/b0d45nsqi08wyqvfqadgmxnw820fpfrz-esp-idf-v5.4/tools/idf.py", line 640, in execute_tasks
task(ctx, global_args, task.action_args)
File "/nix/store/b0d45nsqi08wyqvfqadgmxnw820fpfrz-esp-idf-v5.4/tools/idf.py", line 212, in __call__
self.callback(self.name, context, global_args, **action_args)
File "/nix/store/b0d45nsqi08wyqvfqadgmxnw820fpfrz-esp-idf-v5.4/tools/idf_py_actions/create_ext.py", line 76, in create_new
func_action_map[action](target_path, action_args['name'])
File "/nix/store/b0d45nsqi08wyqvfqadgmxnw820fpfrz-esp-idf-v5.4/tools/idf_py_actions/create_ext.py", line 49, in create_project
os.rename(os.path.join(main_folder, 'main.c'), os.path.join(main_folder, '.'.join((name, 'c'))))
PermissionError: [Errno 13] Permission denied: '/home/capreme/Projects/tmp_fresh/hello/main/main.c' -> '/home/capreme/Projects/tmp_fresh/hello/main/hello.c'idf --version works and reports a version
[capreme@thinkpad:~/Projects/tmp_fresh]$ idf.py --version
WARNING: Python interpreter "/nix/store/6ipv375swmlk0yf1m1fwn0fq6i7ph2jl-python3-3.12.6-env/bin/python3.12" used to start idf.py is not from installed venv "/nix/store/b0d45nsqi08wyqvfqadgmxnw820fpfrz-esp-idf-v5.4/python-env"
fatal: not a git repository: '/nix/store/b0d45nsqi08wyqvfqadgmxnw820fpfrz-esp-idf-v5.4/.git'
WARNING: Git version unavailable, reading from source
ESP-IDF v5.4.0Running all on Nixos uname -a: Linux thinkpad 6.12.12 #1-NixOS SMP PREEMPT_DYNAMIC Sat Feb 1 17:39:40 UTC 2025 x86_64 GNU/Linux
Might be related issue 53, but in my case issue is with main.c file not CMakeLists.txt and I assume that it happends at a different step.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels