First time here? Check out the Help page!

Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question
2

How to install openstudio python binding?

asked 1 year ago

Ali-Khosravani's avatar

updated 1 year ago

I am trying to use python to read osm files. For that, I am using import openstudio which gives me this error: No module named 'openstudio'

According to https://pypi.org/project/openstudio/#..., I tried pip install openstudio but it gives me this error:

ERROR: Could not find a version that satisfies the requirement openstudio (from versions: none)

ERROR: No matching distribution found for openstudio

Has anyone used import openstudio before?

I am using (openstudio 3.6.0)(python 3.11.4 packaged by Anaconda)

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
3

answered 1 year ago

updated 1 year ago

We don't support Python 3.11 on Windows at the moment, we support 3.7, 3.8, 3.9 and 3.10.

Refer to the OpenStudio SDK Python Binding Version Compatibility Matrix for up to date information

I added an Enhancement Request at NREL#4975, go upvote if this is important for you.


Fix implemented in https://github.com/NREL/OpenStudio/pu...

You can try them with pip install -i https://test.pypi.org/simple/ openstudio==3.7.0a2. This is a nightly snapshot of the develop branch, 3.7.0-alpha, so do not use in production. @Ali-Khosravani Please report if you try them with python 3.11

Preview: (hide)
link

Comments

I downgraded to python 3.10 and it worked.

Ali-Khosravani's avatar Ali-Khosravani  ( 1 year ago )

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Training Workshops

Careers

Question Tools

1 follower

Stats

Asked: 1 year ago

Seen: 301 times

Last updated: Sep 29 '23