Search code examples
c++windows-10conan

Conan adding a dot in the middle of a path during installation


I'm experiencing a weird issue with Conan while trying to install something.

After installing the packages Conan yields the next error:

FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\{USERNAME}\.conan\data\IOSS\7.0.0\Compass\Release\package\e0698b86d575a60ad0dc25e6cb03ccfbd2f6b04f\.\IOSS\Docs\Generated\html\struct_f_a_c_e_1_1_i_o_s_s_1_1_precision_synchro_1_1_i_o___p_a_r_a_m_e_t_e_r___t_r_a_n_s_a_c_t_i_o_n___t_y_p_e-members.html'

The weird part is that the dot (…b04f\\.\\IOSS…) before \IOSS does not exists and if I remove the dot and check the path manually the path is valid.

enter image description here

It never happened before and I couldn’t resolve it after trying different things like:

• Enabling the use_always_short_paths = False variable in the Conan config file

• Restarting the computer

• Upgrading the Conan version

• Enable the windows NTFS long path

It'll be great if someone can explain me the situation or even help me figure it out.


Solution

  • Setting the use_always_short_paths variable in the conan.conf file to True was the right solution