Skip to main content

🚀 In our NEW AI Bootcamp you'll build a working app in 28 days, no experience required. Free to all subscription levels.

Join the Treehouse affiliate program and earn 25% recurring commission! 🤑

✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

  • Treehouse Logo
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
    • All Courses
    • Tracks
    • AI Bootcamp
    • College Credit
    • Techdegree Bootcamps
    • Front End Development
    • Full Stack JavaScript
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
    • Explore
    • Career Toolbox
    • Free Treehouse Near Me
    • Affiliates
    • Blog
    • Support
    • About
    • Learn
    • Beginner's Guide to Coding
    • Data Analysis with SQL & Python
    • Front-End Web Development
    • Python Programming Basics
    • Techdegree Bootcamp Overview
    • UX Design Fundamentals
    • AI Tools for Beginners
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks AI Bootcamp College Credit
  • Techdegree Bootcamps Front End Web Development Full Stack JavaScript
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Explore Career Toolbox Free Treehouse Near Me Affiliates Blog Support About
    Learn Beginner's Guide to Coding Data Analysis with SQL & Python Front-End Web Development Python Programming Basics Techdegree Bootcamp Overview UX Design Fundamentals AI Tools for Beginners
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
Loading banner... Start your free trial at Treehouse
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • APIs
      • • Coding for Kids
      • • College Credit
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Game Development
      • • Go Language
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • No-Code
      • • PHP
      • • Professional Growth
      • • Python
      • • Quality Assurance
      • • React
      • • Ruby
      • • Security
      • • Swift
      • • Vibe Coding
  • shawn007
    shawn007
    15,408 Points

    EOFError: EOF when reading a line

    Posted September 25, 2022 6:28am by shawn007
    shawn007
    15,408 Points
    • Python
    • Python for File Systems
    • Project Starter
    • Solid Paths

    3 Answers

  • William Hall
    William Hall
    19,502 Points

    i have no clue how to do this

    Posted July 5, 2021 6:57pm by William Hall
    William Hall
    19,502 Points
    • Python
    • Python for File Systems
    • Project Starter
    • Solid Paths

    1 Answer

  • Hanwen Zhang
    Hanwen Zhang
    20,084 Points

    Help with file system python question

    Posted April 25, 2021 3:36pm by Hanwen Zhang
    Hanwen Zhang
    20,084 Points
    • Python
    • Python for File Systems
    • Project Starter
    • Solid Paths

    0 Answers

  • Albert Egberg
    Albert Egberg
    7,786 Points

    Im getting an EOFError on Python for File Systems challenge

    Posted February 21, 2020 10:09pm by Albert Egberg
    Albert Egberg
    7,786 Points
    • Python
    • Python for File Systems
    • Project Starter
    • Solid Paths

    1 Answer

  • Thapelo Mokgwaphe
    Thapelo Mokgwaphe
    5,892 Points

    Morning, i been trying this for weeks but no answers

    Posted November 4, 2019 10:03am by Thapelo Mokgwaphe
    Thapelo Mokgwaphe
    5,892 Points
    • Python
    • Python for File Systems
    • Project Starter
    • Solid Paths

    1 Answer

  • Tanyala Motsebe
    Tanyala Motsebe
    3,245 Points

    why am i getting a Bummer??

    Posted September 18, 2019 6:50pm by Tanyala Motsebe
    Tanyala Motsebe
    3,245 Points
    • Python
    • Python for File Systems
    • Project Starter
    • Solid Paths

    1 Answer

  • Chelsea Mofiz
    Chelsea Mofiz
    15,153 Points

    I'm getting a bummer.

    Posted November 1, 2018 4:48pm by Chelsea Mofiz
    Chelsea Mofiz
    15,153 Points
    • Python
    • Python for File Systems
    • Project Starter
    • Solid Paths

    1 Answer

  • Karen Shumate
    Karen Shumate
    13,579 Points

    'd like you to change how get_root works. I still want to ask for a path but if the path is relative, change it into an

    Posted September 24, 2018 12:15am by Karen Shumate
    Karen Shumate
    13,579 Points
    • Python
    • Python for File Systems
    • Project Starter
    • Solid Paths

    0 Answers

  • Karen Shumate
    Karen Shumate
    13,579 Points

    I'd like you to change how get_root works. I still want to ask for a path but if the path is relative, change it into an

    Posted September 23, 2018 3:54pm by Karen Shumate
    Karen Shumate
    13,579 Points
    • Python
    • Python for File Systems
    • Project Starter
    • Solid Paths

    0 Answers

  • Karen Shumate
    Karen Shumate
    13,579 Points

    I'd like you to change how get_root works. I still want to ask for a path but if the path is relative, change it into an

    Posted September 23, 2018 3:04pm by Karen Shumate
    Karen Shumate
    13,579 Points
    • Python
    • Python for File Systems
    • Project Starter
    • Solid Paths

    1 Answer

  • Rafay Ahmed
    Rafay Ahmed
    956 Points

    I'd like you to change how get_root works. I still want to ask for a path but if the path is relative, change it into

    Posted September 4, 2018 2:42am by Rafay Ahmed
    Rafay Ahmed
    956 Points
    • Python
    • Python for File Systems
    • Project Starter
    • Solid Paths

    0 Answers

  • Rafay Ahmed
    Rafay Ahmed
    956 Points

    Can someone help me out?

    Posted August 29, 2018 2:40am by Rafay Ahmed
    Rafay Ahmed
    956 Points
    • Python
    • Python for File Systems
    • Project Starter
    • Solid Paths

    0 Answers

  • Terri Valentine
    Terri Valentine
    23,034 Points

    ``import pathlib def get_root(): root = pathlib.PurePath( input("What's the full path where you'd ``

    Posted May 10, 2018 9:46pm by Terri Valentine
    Terri Valentine
    23,034 Points
    • Python
    • Python for File Systems
    • Project Starter
    • Solid Paths

    1 Answer

  • Alexander Davison
    Alexander Davison
    65,470 Points

    Python for File Systems problem — been stuck for days! Please help~

    Posted March 30, 2018 3:44am by Alexander Davison
    Alexander Davison
    65,470 Points
    • Python
    • Python for File Systems
    • Project Starter
    • Solid Paths

    0 Answers

  • Alexander Davison
    Alexander Davison
    65,470 Points

    Problem with get_root(). Help would be appreciated.

    Posted March 29, 2018 2:41am by Alexander Davison
    Alexander Davison
    65,470 Points
    • Python
    • Python for File Systems
    • Project Starter
    • Solid Paths

    1 Answer

  • Stephen Cole
    PLUS
    Stephen Cole
    Courses Plus Student 15,811 Points

    Why do I have to convert my path variable to a string to convert a relative path to an absolute one? (Using Python 3.)

    Posted November 29, 2017 2:45am by Stephen Cole
    Stephen Cole
    Courses Plus Student 15,811 Points
    • Python
    • Python for File Systems
    • Project Starter
    • Solid Paths

    1 Answer

  • Edgar Castelo
    PLUS
    Edgar Castelo
    Courses Plus Student 19,428 Points

    More ways to solve this problem.

    Posted October 12, 2017 3:14pm by Edgar Castelo
    Edgar Castelo
    Courses Plus Student 19,428 Points
    • Python
    • Python for File Systems
    • Project Starter
    • Solid Paths

    1 Answer

  • Tinotenda Tariro Mhishi
    Tinotenda Tariro Mhishi
    9,877 Points

    Stuck

    Posted October 4, 2017 3:17am by Tinotenda Tariro Mhishi
    Tinotenda Tariro Mhishi
    9,877 Points
    • Python
    • Python for File Systems
    • Project Starter
    • Solid Paths

    1 Answer

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
SEE ALL

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
SEE ALL

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
SEE ALL

About Us

  • About
  • Blog
  • Community
  • Stories
  • Contact
  • Gift Card

Explore

  • Plans
  • Affiliates
  • Perks
  • Shop
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses

Treehouse is an online technology education platform founded in 2011. Treehouse offers more than 700 self-paced, video-based courses in web development, programming, data analysis, design, and AI, plus two project-based bootcamp programs in Front End Web Development and Full Stack JavaScript. Individual Treehouse plans start at $25 per month and include a 7-day free trial. Treehouse serves individual learners, businesses, schools, and public libraries. Cardholders at participating U.S. public libraries can use Treehouse for free. Select Treehouse courses, offered with University Pathways International, are recommended for college credit by ACE and NCCRS. Treehouse learners earn digital certificates for completed Tracks.

Terms & Conditions · Privacy · © 2026 Treehouse Island, Inc.
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
  • Discord