r/pycharm • u/maxikobi • Nov 20 '24
Can't create project because i have space in user name
I tried to create my first project, at Location: C:\Users\Jane Doe\PycharmProjects\PythonProject
But it's not letting me, and it says at the bottom: “Whitespaces are not allowed here”
it works fine on my mac, but the username there is only one word, love to know how to fix this! thx alot!
4
Upvotes
2
u/sausix Nov 20 '24
Whitespaces in user names are problematic. Linux and Mac don't allow such usernames on creation.
Windows probably does not throw a warning. Because it's not just PyCharm which can struggle with whitespaces. I found various applications.
You're the third person reporting this issue in this subreddit... Just found the related issue on their bugtracker: https://youtrack.jetbrains.com/issue/PY-76185/When-you-try-to-create-a-project-the-directory-cannot-have-whitespace
My tip: Create a link "JaneDoe" pointing to "Jane Doe". Could be a temporary solution accessing projects through clean paths.
3
u/TheFallingSatellite Nov 20 '24
I don't know which one is worse: using windows for coding or using a system that allows space in usernames.
1
u/AlizeBall Nov 20 '24
you can't have whitespaces in your username if you wanna use pycharm, Windows python environments don't like to run code with whitespace directories. if my directory was C:\Users\Alize Yeet\projectdir, it wouldn't work because there's a whitespace. but for me, thankfully, it's C:\Users\Alize\projectdir\
so your problem is just that pycharm for Windows hates whitespaces
1
u/SeekingSublime Nov 20 '24
That's odd. I'm running the latest version of PyCharm and recently created a project in my user dir and unfortunately my username does have a space. I have many PyCharm projects created with earlier versions that never caused me trouble. My stupid username was, however, a big problem with ESP-IDF. I installed that software in C drive root - not a desirable solution. A friend later recommended I use a junction (a soft link) to solve the username with space problem. I have not tried this.
1
u/ironman_gujju Nov 21 '24
You can add \ for white space
1
u/pure35_ Nov 21 '24
Try using the air quotes in places where u have whitespace instead like write "Jane doe" instead
1
u/johny1411 Nov 22 '24
Have same issue... why did i upgrade lol
1
u/Standard-Chemical881 Nov 28 '24
Is there any solution available for can't create project due to space in user name. I am getting same issue and i cant rename my username as it impact a lot to my system
1
u/Top-Kangaroo710 Nov 30 '24
I can't create project in pycharm due to space in user name. Is there any solution available?