Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Working directory error

I am working with PyCharm 4.04. Since I installed it, every time I open it, as default directory I get this:

C:\Users\Laura\AppData\Local\Temp\main.py1.tmp>cd

Which gives me an error when trying to use the console:

Error:Cannot start process, the path specified for working directory is not a directory

But even if I change the directory, the message does not disappear.

The terminal, though, it does work and I can run projects, but I would like to use the console.

like image 459
Laura López Avatar asked Jan 28 '15 20:01

Laura López


People also ask

Can not change working directory error in R?

Unfortunately, the RStudio console returns the error message “cannot change working directory”. The reason for this is that the directory we are trying to access does not exist. We might have specified the folder name wrong, or the path before the folder name is not existing.

Why can I not change working directory?

Common reasons include: You simply misspelled the file path. You included invalid characters in the file path. You do not have permission to access the file path.

What does set working directory mean?

The working directory is just a file path on your computer that sets the default location of any files you read into R, or save out of R.


1 Answers

Another solution is to close the project, run rm -rf .idea and re-open it. Apparently Pycharm gets confused by some direct folder manipulation and doesn't reflect it properly in his .idea/*.xml files

like image 85
chiffa Avatar answered Oct 03 '22 04:10

chiffa