Solved

How to set up CSV extractors using PyCharm [Community Contributed]

  • 29 August 2022
  • 4 replies
  • 118 views

Userlevel 1
Badge +1

I tried to setup the CSV Extractor as shown in the training using PyCham but there was no .venv for the new project setup. Has someone encountered this experience? If yes, what was the workaround? 

 

icon

Best answer by Anonymous 31 August 2022, 16:41

View original

4 replies

Userlevel 4
Badge +5

Hi @ikequarsh

Thank you for your question. Which course are you working on?

Best regards, 

Madina

When the Poetry does the install of the of a poetry project, try to remove the directory created by cogex, could be that you can find the virtual environment poetry made inside the local AppData poetry Cache 

So you can potentially find it in: (if you are running a pure windows dev environment)

C:\Users\%USERPROFILE%\AppData\Local\pypoetry\Cache\virtualenvs

But before any future install or initializations with poetry I suggest you run this command

poetry config virtualenvs.in-project true

This will that from any new python project you install or initialize with poetry that the .venv will be inside the project directory and not on your user. I would wish the default was to set the project directory myself and not a Cache directory under the users local AppData.  

 

Note: If you delete a poetry project directory and remake it with the same name, without removing the virtual environment in it made in the users local AppData, then it won’t make a new .venv file in the project, so make sure you delete the virtual environment directories for the local AppData directory aswell.


 

Userlevel 1
Badge +1

Hello @Madina Kholmatova

I’m a learner working on “Extractor-utils Library for Cognite Python SDK” and in “ Python Utility Package”.

 

I need help on how to configure my PyCharm or VS Code for the Cognite training. 

 

Userlevel 3

Hi @ikequarsh,

Did Stig’s answer help you?

Reply