Skip to content

How to solve FileNotFoundError  #3

Description

@SaraSharbaf

Hi,

I have a problem reading IDF file by pyidf. While I am running this code:

from pyidf import ValidationLevel
import pyidf

pyidf.validation_level = ValidationLevel.no

import logging
from pyidf.idf import IDF

logging.info("start")
idf = IDF(r"C:/EnergyPlusV23-2-0/ExampleFiles/BasicsFiles/Exercise1A.idf")

It shows me that:

FileNotFoundError: [Errno 2] No such file or directory: 'C:/EnergyPlusV23-2-0/ExampleFiles/BasicsFiles/Exercise1A.idf'

But this is the exact address to my idf file which I copy pasted. Do you know what could be the reason behind not finding this?

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions