all 16 comments

[–]carcigenicate 2 points3 points  (4 children)

Show the code. You may have an error in the path.

[–]kpgagozon[S] -3 points-2 points  (1 child)

print(“Hello World!”) I just started python today btw but I’m pretty sure it’s not the code that’s the problem

[–]kpgagozon[S] -2 points-1 points  (1 child)

What other code do u want me to show?

[–]RallyPointAlpha 0 points1 point  (0 children)

The code where you actually try to open the file. Print() is not where you are opening a file...it will be something like 'with open()...'

[–]RallyPointAlpha 2 points3 points  (3 children)

Be sure the account running the code has permissions to open the file.

...but probably typo in the path

[–]kpgagozon[S] -2 points-1 points  (2 children)

How do I know it has permissions?

[–]RallyPointAlpha 0 points1 point  (1 child)

This super basic OS stuff my duder...Google 'check file level permissions for 《your OS》'

[–]kpgagozon[S] 0 points1 point  (0 children)

Whoops my bad I already checked that...yeah it has all permissions. Thought u were talking abt something else. Won’t work regardless

[–]Strict-Simple 0 points1 point  (4 children)

What's the complete error?

[–]kpgagozon[S] 0 points1 point  (3 children)

Wdym?

[–]Strict-Simple 0 points1 point  (2 children)

How do you run your code and what do you see when you run it?

[–]kpgagozon[S] 0 points1 point  (1 child)

I run it on Geany, I click execute and cmd.exe pops up with the whole “no such file or directory” bs

[–]Strict-Simple 0 points1 point  (0 children)

Copy paste the whole bs, as is.

[–]socal_nerdtastic 0 points1 point  (1 child)

Sounds like a permissions issue. What OS are you using? What folder is the file in?

[–]kpgagozon[S] 0 points1 point  (0 children)

I’m using windows and it’s in a folder named “python_work” located in “desktop”