Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6066243
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T09:28:48+00:00 2026-05-23T09:28:48+00:00

I am placing this code into IDLE: f = open(‘/Users/alex/Documents/URM8/health.tdf’) I don’t understand why

  • 0

I am placing this code into IDLE:

f = open('/Users/alex/Documents/URM8/health.tdf')

I don’t understand why I am unable to open it. I get the error:

Traceback (most recent call last):
  File "<pyshell#21>", line 1, in <module>
    f = open('/Users/alex/Documents/URM8/health.tdf')
IOError: [Errno 2] No such file or directory: '/Users/alex/Documents/URM8/health.tdf'

Of course usually the problem is filename. I have checked it lots of times and it is correct.

I ‘unlocked’ the file (I’m using Mac OSX). Also set write access to Everyone in Mac OSX.

Do i need to set permissions in Bash?

Really appreciate someone telling me what I’m doing wrong!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T09:28:48+00:00Added an answer on May 23, 2026 at 9:28 am

    The problem is not the permissions. If it were, the error message would be different. Is some component of the path a Mac alias to a directory, rather than a directory? If so, Python won’t follow it, and will give that error.

    Try individual parts of the pathname to see exactly which directory or file Python can’t find. You could do this simply using cd in the shell.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this piece of code for placing elements from an array into the
this code gives an instant seg fault,I tried placing printf's all over, I even
When placing a conditional breakpoint in my code, this fails: Sophie Dee <> myString
I'm creating an SQL file, placing this file into a zip file with some
When I run this code: - (NSString *)description{ return [NSString stringWithFormat:@(FROG idle:%i animating:%i rect:%@
Im planing on using this code to make random sounds play with an action,
I was playing around with some Javascript snippets today and noticed that this code
i'm playing with MEF and in the example i see this code ( i
I detect if a user has chrome frame by placing this in teh body
How to make this img go alone placing? all images have width=300, 3 images/row,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.