# Dragonfly issue with UWG component

**URL:** <https://discourse.ladybug.tools/t/dragonfly-issue-with-uwg-component/1129>\
**Category:** dragonfly-legacy\
**Created:** [April 20, 2016, 8:29am UTC](https://discourse.ladybug.tools/t/dragonfly-issue-with-uwg-component/1129 "2016-04-20T08:29:00Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ambrosinus](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/ambrosinus/32/39184_2.png) [@Ambrosinus](https://discourse.ladybug.tools/u/Ambrosinus)\
**Post date:** [April 20, 2016, 8:29am UTC](https://discourse.ladybug.tools/t/dragonfly-issue-with-uwg-component/1129/1 "2016-04-20T08:29:00Z")

</div>

Hi All, hi Chris,

I’m trying to investigate with your latest tool “Dragonfly”.

After some re-installation procedure i have this error with UWG component, this is the error message (readMe! out):

* * *

{0;0;0}  
0. Current working directory is set to: D:\Documenti\Documenti Luciano\Dottorato PC\RESEARCH\Urban\_Weather\_Generator\_Workflow\UWG definition\EPW\_Morphed\unnamed\UWG\<br/\>1. Runtime error (FileNotFoundException): Impossibile trovare il file ‘D:\Documenti\Documenti Luciano\Dottorato PC\RESEARCH\Urban\_Weather\_Generator\_Workflow\UWG definition\EPW\_Morphed\unnamed\UWG\unnamed\_USA\_FL\_Miami.Intl.AP.722020\_TMY3.epw’.  
2. Traceback:  
 line 232, in reOrderEPWData, “\<string\>”  
 line 382, in main, “\<string\>”  
 line 410, in script

* * *

I’ve checked in UWG directory and i saw that epw file (morphed) is empty 0kb, it’s the only empty file (.bat 1kb , xml 18kb). maybe the issue is simpler than it looks.

I hope I was clear. Could you help me? Thanks for your effort&support.

---

<div class="post-metadata">

**Author:** ![mostapha](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/mostapha/32/15244_2.png) [@mostapha](https://discourse.ladybug.tools/u/mostapha)\
**Post date:** [April 20, 2016, 8:56am UTC](https://discourse.ladybug.tools/t/dragonfly-issue-with-uwg-component/1129/2 "2016-04-20T08:56:00Z")

</div>

Hi Luciano, Just a wild guess from the error message. Try to generate the file in a different path with no white space. I think ‘\Dottorato PC’ is the source of the error.

---

<div class="post-metadata">

**Author:** ![Ambrosinus](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/ambrosinus/32/39184_2.png) [@Ambrosinus](https://discourse.ladybug.tools/u/Ambrosinus)\
**Post date:** [April 20, 2016, 11:26am UTC](https://discourse.ladybug.tools/t/dragonfly-issue-with-uwg-component/1129/3 "2016-04-20T11:26:00Z")

</div>

Thank you for your quickly reply, but nothing, even without any path. I gave a look (too fast) at prompt cmd.exe window before this kind of issue, i took a screenshot;

![](https://discourse.ladybug.tools/uploads/default/original/2X/f/f17e67e830d6a8d6f550bf3ed20bd20250652da2.PNG)

---

<div class="post-metadata">

**Author:** ![mostapha](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/mostapha/32/15244_2.png) [@mostapha](https://discourse.ladybug.tools/u/mostapha)\
**Post date:** [April 20, 2016, 11:48am UTC](https://discourse.ladybug.tools/t/dragonfly-issue-with-uwg-component/1129/4 "2016-04-20T11:48:00Z")

</div>

There is still a white space between ‘documenti luciano’. You need to either put the address in “” or use path with no white space.

---

<div class="post-metadata">

**Author:** ![Ambrosinus](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/ambrosinus/32/39184_2.png) [@Ambrosinus](https://discourse.ladybug.tools/u/Ambrosinus)\
**Post date:** [April 20, 2016, 11:57am UTC](https://discourse.ladybug.tools/t/dragonfly-issue-with-uwg-component/1129/5 "2016-04-20T11:57:00Z")

</div>

Yes, my fault this screenshot is before your advice. Then i tried to remove every blank/white space.

---

<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:** [April 20, 2016, 4:30pm UTC](https://discourse.ladybug.tools/t/dragonfly-issue-with-uwg-component/1129/6 "2016-04-20T16:30:00Z")

</div>

Hi Luciano,

It is clear that the correct xml file is being written but it is not being successfully run through the UWG.

1. Can you upload your GH file to see if I can replicate the error on my machine?

2. Can you check to be sure that you have installed the latest UWG from this link ([https://github.com/hansukyang/UWG\_Matlab/blob/master/UWGEngine/for\_…](https://github.com/hansukyang/UWG_Matlab/blob/master/UWGEngine/for_redistribution/UWGEngine.exe?raw=true)) and that you have the following folder on your machine (C:\Program Files\MATLAB\MATLAB Runtime\v90)?

3. Can you verify that you have a C:\ladybug\UWG folder on your machine?

With all of this, we will hopefully get to the bottom of this.

-Chris

---

<div class="post-metadata">

**Author:** ![Ambrosinus](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/ambrosinus/32/39184_2.png) [@Ambrosinus](https://discourse.ladybug.tools/u/Ambrosinus)\
**Post date:** [April 21, 2016, 12:13am UTC](https://discourse.ladybug.tools/t/dragonfly-issue-with-uwg-component/1129/7 "2016-04-21T00:13:00Z")

</div>

Hi Chris,

Thanks for your reply. I’ve checked your list: after re-installed Dragonfly, I run MyAppInstaller\_web.exe (it installed UWGengine v2.2 + MCR v9).

From your link (it seems to be the same of readMe! message of DF, before to install UWGengine + MCR v9) i noticed that MCR version is 2.11, so i’ve unistalled my previous version (UWG v2.2) then installed that one from your link.

So I saw that from your point 3) in my ladybug directory there isn’t UWG folder, so i copied from [https://github.com/hansukyang/UWG\_Matlab/commit/f9e7ecb46a1a294dfcf…](https://github.com/hansukyang/UWG_Matlab/commit/f9e7ecb46a1a294dfcfe090f0d084dc674a8f301) UWG.zip and I moved UWG folder to c:\ladybug.

Maybe i forget something, so attached my def (that’s original one) i suppose that issue is in my machine (programs).

P.S.: I have the same issue even without specify a new EPW (morphed) path, so I’ve deleted that one in my attached def.

---

<div class="post-metadata">

**Author:** ![Ambrosinus](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/ambrosinus/32/39184_2.png) [@Ambrosinus](https://discourse.ladybug.tools/u/Ambrosinus)\
**Post date:** [April 21, 2016, 12:22am UTC](https://discourse.ladybug.tools/t/dragonfly-issue-with-uwg-component/1129/8 "2016-04-21T00:22:00Z")

</div>

here you are.

[Urban\_Weather\_Generator\_Workflow\_v2.gh](https://discourse.ladybug.tools/uploads/default/original/2X/9/9efd85d91da665770030a1d135715807e2b9c1ab.gh) (1.12 MB)

---

<div class="post-metadata">

**Author:** ![Ambrosinus](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/ambrosinus/32/39184_2.png) [@Ambrosinus](https://discourse.ladybug.tools/u/Ambrosinus)\
**Post date:** [April 21, 2016, 12:06pm UTC](https://discourse.ladybug.tools/t/dragonfly-issue-with-uwg-component/1129/9 "2016-04-21T12:06:00Z")

</div>

thanks anyway, but magically after launching this definition on another PC, and after again on mine it has worked!

I would like to ask you some advice about the documents/research consulted to develop Dragonfly/UWG, because I’d like to be able to produce some results with these tools (yours and LB+HB team work) to define the search scope of my doctoral thesis (tips in the direction of the Environmental design are always welcome 🙂 ), always thanks for your support and your work!

P.S .: I hope that the problem does not happen again, I’ll stay tuned with all the updates about dragonfly + UWG

[Urban\_Weather\_Generator\_Workflow\_v2.gh](https://discourse.ladybug.tools/uploads/default/original/2X/9/9efd85d91da665770030a1d135715807e2b9c1ab.gh) (1.12 MB)

---

<div class="post-metadata">

**Author:** ![Ambrosinus](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/ambrosinus/32/39184_2.png) [@Ambrosinus](https://discourse.ladybug.tools/u/Ambrosinus)\
**Post date:** [April 21, 2016, 12:31pm UTC](https://discourse.ladybug.tools/t/dragonfly-issue-with-uwg-component/1129/10 "2016-04-21T12:31:00Z")

</div>

P.P.S: I took this two screenshots while UWG running, and i wonder if it’s a good thing.

![](https://discourse.ladybug.tools/uploads/default/original/2X/5/507c2289b742852fc8f1cc9bbdb6fe9dfb9153b4.PNG)  
  
 ![](https://discourse.ladybug.tools/uploads/default/original/2X/6/6ddc6d6f603e678573c6916024f2105d5bec94bd.PNG)

---

<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:** [April 21, 2016, 4:48pm UTC](https://discourse.ladybug.tools/t/dragonfly-issue-with-uwg-component/1129/11 "2016-04-21T16:48:00Z")

</div>

Luciano,

Glad that you were able to get it working. My guess is that it had something to do with the last thing you did (download the UWG.zip). The Dragonfly\_Dragonfly component is supposed to download this file in the background the first time that you drop itnon the canvas but something might have been stopping this from happening on your machine. I should write an error/warning message if this download fails.

I’m also happy to hear that you plan to use the UWG to inform your thesis. The most comprehensive documentation. That exists right now is in Bruno’s PhD thesis (Bruno being the original developer):  
[http://dspace.mit.edu/handle/1721.1/59107](http://dspace.mit.edu/handle/1721.1/59107)

There’s also some documentation on the urban microclimate group website:  
[http://urbanmicroclimate.scripts.mit.edu/uwg.php](http://urbanmicroclimate.scripts.mit.edu/uwg.php)

I know that many of the original UWG functions come from a Linux program called Town Energy Budget (TEB).

The FatalError messages that you are getting in the command prompt are likely the result of a bug in the UWG. I had discovered several when I first started working with it, particularly if you specify really thin materials on the constructions. If you post an issue to the UGW github with a link to the XML file generated by Dragonfly, I imagine Joseph should fix the bug soon:

> **[hansukyang/UWG\_Matlab](https://github.com/hansukyang/UWG_Matlab)**
>
> UWG\_Matlab - Urban Weather Generator

-Chris

---

<div class="post-metadata">

**Author:** ![Ambrosinus](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/ambrosinus/32/39184_2.png) [@Ambrosinus](https://discourse.ladybug.tools/u/Ambrosinus)\
**Post date:** [April 23, 2016, 2:16am UTC](https://discourse.ladybug.tools/t/dragonfly-issue-with-uwg-component/1129/12 "2016-04-23T02:16:00Z")

</div>

Firstly thanks for your precious suggestions!

Secondly I have the same issue and I didn’t change anything before last run, so with a video capture app I was able to grap a flash command prompt window. It displays: **“.\UWGEngine” It is not recognized as an internal or external command, operable program or batch file.**

(Anyway I will post an issue to the UWG github about the othe issue with "Fatal Error Message).

![](https://discourse.ladybug.tools/uploads/default/original/2X/c/ce6e5b735b4b3d62939f8c3b97ab83112a573f3d.JPG)

---

<div class="post-metadata">

**Author:** ![RamJoshi](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/ramjoshi/32/63_2.png) [@RamJoshi](https://discourse.ladybug.tools/u/RamJoshi)\
**Post date:** [October 19, 2016, 9:49pm UTC](https://discourse.ladybug.tools/t/dragonfly-issue-with-uwg-component/1129/13 "2016-10-19T21:49:00Z")

</div>

Hi!

I am facing some errors when I try to run the example file. Can you please let me know where the problem might be. Is there any component that I have not installed?

Regards,

[![](http://api.ning.com:80/files/OoGCfrwiFG-I4VxAqt4SYDU-7cUyW-cN9AT1BixRh6jFVEhvrBH5tdekstDiVTza6wj3C5b8TKwE4eXW0N85zTolWhph*jQh/Picture1.png?width=721)](http://api.ning.com:80/files/OoGCfrwiFG-I4VxAqt4SYDU-7cUyW-cN9AT1BixRh6jFVEhvrBH5tdekstDiVTza6wj3C5b8TKwE4eXW0N85zTolWhph*jQh/Picture1.png)
