PIO Core Call Error: "The current working directory

Hi when ı try to creat a new project ı got error smthng like this
PIO Core Call Error: "The current working directory /home/onur/Voyager/voyager_ble will be used for the project.

What should ı do ?
I am using ubuntu 18.04.6

With what board and framework did you create the project?

esp32 doit devkitv1
esp idf framework

What happens when you open a CLI and execute

cd /tmp
pio init -b esp32dev -O "framework=espidf" --ide=vscode

?

Complete output from command python setup.py egg_info:

        =============================DEBUG ASSISTANCE==========================
        If you are seeing an error here please try the following to
        successfully install cryptography:

        Upgrade to the latest pip and try again. This will fix errors for most
        users. See: https://pip.pypa.io/en/stable/installing/#upgrading-pip
        =============================DEBUG ASSISTANCE==========================

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/tmp/pip-build-d08pjpfi/cryptography/setup.py", line 14, in <module>
    from setuptools_rust import RustExtension
ModuleNotFoundError: No module named 'setuptools_rust'

----------------------------------------

Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-build-d08pjpfi/cryptography/
*** Error 1
Reading CMake configuration…
– Found Git: /usr/bin/git (found version “2.17.1”)
– The C compiler identification is GNU 8.4.0
– The CXX compiler identification is GNU 8.4.0
– The ASM compiler identification is GNU
– Found assembler: /home/onur/.platformio/packages/toolchain-xtensa-esp32/bin/xtensa-esp32-elf-gcc
– Check for working C compiler: /home/onur/.platformio/packages/toolchain-xtensa-esp32/bin/xtensa-esp32-elf-gcc
– Check for working C compiler: /home/onur/.platformio/packages/toolchain-xtensa-esp32/bin/xtensa-esp32-elf-gcc – works
– Detecting C compiler ABI info
– Detecting C compiler ABI info - done
– Detecting C compile features
– Detecting C compile features - done
– Check for working CXX compiler: /home/onur/.platformio/packages/toolchain-xtensa-esp32/bin/xtensa-esp32-elf-g++
– Check for working CXX compiler: /home/onur/.platformio/packages/toolchain-xtensa-esp32/bin/xtensa-esp32-elf-g++ – works
– Detecting CXX compiler ABI info
– Detecting CXX compiler ABI info - done
– Detecting CXX compile features
– Detecting CXX compile features - done
– Project is not inside a git repository, or git repository has no commits; will not use ‘git describe’ to determine PROJECT_VER.
– Building ESP-IDF components for target esp32
– Project sdkconfig file /home/onur/Voyager/sdkconfig.esp32dev
– Configuring incomplete, errors occurred!
See also “/home/onur/Voyager/.pio/build/esp32dev/CMakeFiles/CMakeOutput.log”.

fatal: not a git repository (or any of the parent directories): .git
Traceback (most recent call last):
File “/home/onur/.platformio/packages/framework-espidf/tools/kconfig_new/confgen.py”, line 33, in
import gen_kconfig_doc
File “/home/onur/.platformio/packages/framework-espidf/tools/kconfig_new/gen_kconfig_doc.py”, line 27, in
import kconfiglib
ModuleNotFoundError: No module named ‘kconfiglib’
CMake Error at /home/onur/.platformio/packages/framework-espidf/tools/cmake/kconfig.cmake:228 (message):
Failed to run confgen.py
(/home/onur/.platformio/penv/bin/python;/home/onur/.platformio/packages/framework-espidf/tools/kconfig_new/confgen.py;–kconfig;/home/onur/.platformio/packages/framework-espidf/Kconfig;–sdkconfig-rename;/home/onur/.platformio/packages/framework-espidf/sdkconfig.rename;–config;/home/onur/Voyager/sdkconfig.esp32dev;–env-file;/home/onur/Voyager/.pio/build/esp32dev/config.env).
Error 1
Call Stack (most recent call first):
/home/onur/.platformio/packages/framework-espidf/tools/cmake/build.cmake:457 (__kconfig_generate_config)
/home/onur/.platformio/packages/framework-espidf/tools/cmake/project.cmake:399 (idf_build_process)
CMakeLists.txt:3 (project)

Interesting, so the cryptography package fails to be installed because it doesn’t have the setuptools_rust. So the rest of the dependencies are also not installed.

This is weird because it should try and install 3.4.8 as the last version before 35.0.0 that odesn’t depend on rust.

Can you make sure your packages are up-to-date? In the CLI again,

pio pkg update -g -p espressif32

and retry creating the project.

If that does not help, execute the command

pip install setuptools-rust

in the CLI and retry.

Unfortunately didnt change anyhing.

What the output of pio system info on the CLI?