# DF Run URBANOpt: No sql output

**URL:** <https://discourse.ladybug.tools/t/df-run-urbanopt-no-sql-output/14983>\
**Category:** dragonfly\
**Created:** [June 22, 2021, 1:09am UTC](https://discourse.ladybug.tools/t/df-run-urbanopt-no-sql-output/14983 "2021-06-22T01:09:04Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![MaxMarschall](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/maxmarschall/32/393_2.png) [@MaxMarschall](https://discourse.ladybug.tools/u/MaxMarschall)\
**Post date:** [June 22, 2021, 1:09am UTC](https://discourse.ladybug.tools/t/df-run-urbanopt-no-sql-output/14983/1 "2021-06-22T01:09:04Z")

</div>

I am trying to get the Dragonfly “from\_building\_footprints.gh” sample file to work. Some of the components weren’t working, which I think was because I have a later version of LBT installed, so I used the `LB Sync Grasshopper File` component to update the definition.

Now, the DF Run URBANOpt component runs but doesn’t output anything (except from the “scenario” output).

 ![image](https://discourse.ladybug.tools/uploads/default/original/3X/b/7/b7113b33b9187bdd43d56e01658902941a7a1f6c.png)

Why is this?  
[from\_building\_footprints.gh](https://discourse.ladybug.tools/uploads/short-url/mOyM2hxCuROJISd0mpAwEevei6z.gh) (113.2 KB)

---

<div class="post-metadata">

**Author:** ![chris](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/chris/32/10179_2.png) [@chris](https://discourse.ladybug.tools/u/chris)\
**Post date:** [July 7, 2021, 1:03am UTC](https://discourse.ladybug.tools/t/df-run-urbanopt-no-sql-output/14983/2 "2021-07-07T01:03:29Z")

</div>

It runs fine for me, @MaxMarschall . Do you have URBANopt CLI installed as noted at the end of the installation instructions:

> **[ladybug-tools/lbt-grasshopper - 
Optional Steps](https://github.com/ladybug-tools/lbt-grasshopper/wiki/1.1-Windows-Installation-Steps#optional-steps)**
>
> 1.1-Windows-Installation-Steps

---

<div class="post-metadata">

**Author:** ![MaxMarschall](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/maxmarschall/32/393_2.png) [@MaxMarschall](https://discourse.ladybug.tools/u/MaxMarschall)\
**Post date:** [July 7, 2021, 5:41am UTC](https://discourse.ladybug.tools/t/df-run-urbanopt-no-sql-output/14983/3 "2021-07-07T05:41:09Z")

</div>

Thanks @chris, I have now installed URBANopt CLI but I am getting a “Windows Error”:

 ![image](https://discourse.ladybug.tools/uploads/default/original/3X/4/3/43bbcd6a449bc9fc952b010da259b9024ac10884.jpeg)  
[from\_building\_footprints 01.gh](https://discourse.ladybug.tools/uploads/short-url/sG7gPkbMCvhhco3eNqQCa1YOcb8.gh) (117.4 KB)

I previously used the LB Versioner to update to the latest development version and used the LB Sync component to update the definition (and even restarted my computer after installing URBANopt), but have noticed that now some components say 1.2.0, some say 1.2.1 and some say 1.2.2. Could it have anything to do with this? When doing an update, I would expect all components to then have the same version number.

---

<div class="post-metadata">

**Author:** ![chris](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/chris/32/10179_2.png) [@chris](https://discourse.ladybug.tools/u/chris)\
**Post date:** [July 7, 2021, 4:57pm UTC](https://discourse.ladybug.tools/t/df-run-urbanopt-no-sql-output/14983/4 "2021-07-07T16:57:15Z")

</div>

@MaxMarschall ,

When you use a development version of the LBT plugin, all of the components will have different versions depending on whether they have been edited since the last stable release. When we do a stable release, we sync all of the version number of the components. So long story short, your components are fine for someone using the development version of the plugin and URBANopt CLI 0.6.0.

Your URBANopt simulation didn’t run successfully for some reason. I would try plugging in a `_folder_` to write the GeoJSON to that is different than the default for the reasons that I outline here:

> [@Using the URBANopt Component](https://discourse.ladybug.tools/t/using-the-urbanopt-component/11996/17):
>
> @Omprakash , I think this is happening because Rhino doesn’t have permission to fully delete the simulation folder before it overwrites an existing project folder. So you either have to manually delete the folder where the GeoJSON is written before exporting a new one or just use the \_folder\_ input to specify a new project folder for each simulation you run. I think running Rhino as Administrator might also give Rhino permission to fully overwrite existing project folder.

---

<div class="post-metadata">

**Author:** ![BcBod](https://discourse.ladybug.tools/letter_avatar_proxy/v4/letter/b/cab0a1/32.png) [@BcBod](https://discourse.ladybug.tools/u/BcBod)\
**Post date:** [May 1, 2024, 2:04pm UTC](https://discourse.ladybug.tools/t/df-run-urbanopt-no-sql-output/14983/5 "2024-05-01T14:04:13Z")

</div>

I tried to manually specify a new folder for the simulation to run in but it doesn’t work. I sitll get the “all open studio workflows failed to execute” error.

It refers me to this part (line 159) of the code:

if \_run == 1:  
osm, idf, sql, zsz, rdd, html, err = run\_urbanopt(\_geojson, scenario)  
if len(sql) == 0:  
msg = ‘All of the OpenStudio workflows failed to execute.\n’   
‘Check the run.log files in the sub-folders of this directory:\n{}’.format(  
os.path.join(os.path.dirname(\_geojson), ‘run’, ‘honeybee\_scenario’))

Do you know what else could’ve gone wrong?

---

<div class="post-metadata">

**Author:** ![chris](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/chris/32/10179_2.png) [@chris](https://discourse.ladybug.tools/u/chris)\
**Post date:** [May 29, 2024, 10:54pm UTC](https://discourse.ladybug.tools/t/df-run-urbanopt-no-sql-output/14983/6 "2024-05-29T22:54:46Z")

</div>

@BcBod 's message is duplicated and the discussion should not continue here. Rather, it should happen on the new topic following my recommendations there:

> [@All of the OpenStudio workflows failed to execute](https://discourse.ladybug.tools/t/all-of-the-openstudio-workflows-failed-to-execute/24805/2):
>
> Hi @BcBod , Sorry for the late response. I realized that I forgot to update the [Compatibility Matrix](https://github.com/ladybug-tools/lbt-grasshopper/wiki/1.4-Compatibility-Matrix) with the LBT 1.8.0 release but I just did it now. You are supposed to use URBANopt CLI 0.11.1 with LBT 1.8.0: Also, your screenshot has components from both LBT 1.7 and LBT 1.8 on it. I recommend running the [LB Sync Grasshopper File](https://docs.ladybug.tools/ladybug-primer/components/5_version/sync_grasshopper_file) component to make sure that everything on your canvas is synced with your installation. If doing those changes does not fix it, please upload the log fil…
