Skip to main content
Solved

Issue Installing cognite-toolkit (0.4.15) – FileNotFoundError


Andre Alves
MVP
Forum|alt.badge.img+13

Hi Cognite Team,

I’m encountering an issue when trying to install cognite-toolkit (version 0.4.15) using Poetry. The installation fails with the following error:

Installing C:\Users\andre.carvalho\AppData\Local\pypoetry\Cache\virtualenvs\cognite-toolkit-playgroud-gU7xo0oD-py3.11\Lib\site-packages\cognite_toolkit\_builtin_modules\contextualization\cdf_entity_matching\default.config.yaml - Installing cognite-toolkit (0.4.15): Failed FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\andre.carvalho\\AppData\\Local\\pypoetry\\Cache\\virtualenvs\\cognite-toolkit-playgroud-gU7xo0oD-py3.11\\Lib\\site-packages\\cognite_toolkit\\_builtin_modules\\contextualization\\cdf_entity_matching\\extraction_pipelines\\ctx_files_entity_matcher.ExtractionPipeline.yaml'


Before running poetry add cognite-toolkit, I ensured my environment was set up correctly. However, it seems like the package is missing required files.


Could you confirm if this is a known issue or if there’s a recommended workaround? Should I try installing a previous version, or is there an updated release planned to resolve this?

Thanks in advance for your help!

Best answer by Andre Alves

Windows has a default path length limit of 260 characters, which might be causing the issue. Switching to WSL (Windows Subsystem for Linux) resolved the problem. Please disregard my previous message.

View original
Did this topic help you find an answer to your question?

3 replies

Andre Alves
MVP
Forum|alt.badge.img+13
  • Author
  • MVP
  • 138 replies
  • Answer
  • March 13, 2025

Windows has a default path length limit of 260 characters, which might be causing the issue. Switching to WSL (Windows Subsystem for Linux) resolved the problem. Please disregard my previous message.


Anders  Albert
Seasoned Practitioner
Forum|alt.badge.img
  • Seasoned Practitioner
  • 96 replies
  • March 14, 2025

You can also manually change the limit, see the troubleshooting section of the docs

https://docs.cognite.com/cdf/deploy/cdf_toolkit/guides/setup#troubleshooting

 


Andre Alves
MVP
Forum|alt.badge.img+13
  • Author
  • MVP
  • 138 replies
  • March 14, 2025

Thanks, ​@Anders Albert !


Reply


Cookie Policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings