# Can't Compile Module: presentations.tcp\_csv.tcp\_csv:TCPCSV

**URL:** <https://forums.digi.com/t/cant-compile-module-presentations-tcp-csv-tcp-csv-tcpcsv/2766>\
**Category:** Python\
**Created:** [January 10, 2011, 7:32am UTC](https://forums.digi.com/t/cant-compile-module-presentations-tcp-csv-tcp-csv-tcpcsv/2766 "2011-01-10T07:32:50Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![DenzChoe](https://avatars.discourse-cdn.com/v4/letter/d/53a042/32.png) [@DenzChoe](https://forums.digi.com/u/DenzChoe)\
**Post date:** [January 10, 2011, 7:32am UTC](https://forums.digi.com/t/cant-compile-module-presentations-tcp-csv-tcp-csv-tcpcsv/2766/1 "2011-01-10T07:32:50Z")

</div>

Hello there,

I’m trying out this presentation module, tcp\_csv.py in the presentation folder of dia\_pkg\_1.3.8. It failed on me ☹

The yml config is written like this:

```auto
  # Enable CSV File type Uploading
  - name: tcp_csv0
    driver: presentations.tcp_csv.tcp_csv:TCPCSV
    settings: 
        server: "10.10.10.20"
        port: 12313
        interval: 1
        channels: [ WallRouter.light, WallRouter.temperature,
        Plug_A.SW1, Plug_A.SW2, Plug_A.SW3, Plug_B.SW1, Plug_B.SW2, Plug_B.SW3]

```

Unfortunately the output prints (a snippet of it): [For the full console output: [click here](http://www.box.net/shared/54nj4iklkf)]

```auto
------------------------------------------------------------
Exception during dynamic class load:
Traceback (most recent call last):
  File "C:\Users\Denz\digi.workspace\OfficeXBee_Proj\src\common\abstract_service_manager.py", line 195, in service_load
XBeeConfigBlockDDO.apply_config: trying SET 'IC' = '0xf' to '[00:13:a2:00:40:4a:6d:88]!'
  File "C:\Users\Denz\digi.workspace\OfficeXBee_Proj\src\common\classloader.py", line 52, in classloader
ImportError: No module named tcp_csv.tcp_csv
------------------------------------------------------------

```

Which baffles me, since there is a **init**.py file created in the \src\presentations cpcsv directory.  
I’ve also checked in the dia.zip, it’s not present in there. Strangely the build is successful after running the script make.py.  
Still looking for answers. I’m gonna start by looking at the make.py file which is rather long… @\_@

---

<div class="post-metadata">

**Author:** ![descalon](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.digi.com/descalon/32/4288_2.png) [@descalon](https://forums.digi.com/u/descalon)\
**Post date:** [January 10, 2011, 5:05pm UTC](https://forums.digi.com/t/cant-compile-module-presentations-tcp-csv-tcp-csv-tcpcsv/2766/2 "2011-01-10T17:05:19Z")

</div>

Hello,  
It seems your custom python file is not being compiled within the dia project. Which is the command you are invoking to build dia? I believe you should add"-i" parameter and specify the location of your project, so required python classes that are in your project will be compiled with dia.

Something like this:

```auto
make.py -i 

```

Try this and check if it works.

Regards.

---

<div class="post-metadata">

**Author:** ![DenzChoe](https://avatars.discourse-cdn.com/v4/letter/d/53a042/32.png) [@DenzChoe](https://forums.digi.com/u/DenzChoe)\
**Post date:** [January 11, 2011, 3:32am UTC](https://forums.digi.com/t/cant-compile-module-presentations-tcp-csv-tcp-csv-tcpcsv/2766/3 "2011-01-11T03:32:04Z")

</div>

!!SOLVED!!

Hey! thanks for the reply.

Did a rookie mistake. Notice the yml config?

```auto
driver: presentations.tcp_csv.tcp_csv:TCPCSV

```

That is the result when I use the graphic yml editor. Thus, that is why I only “trust” the source editor from now onwards.

This is what it supposed to be,

```auto
driver: presentations.tcpcsv.tcpcsv:TCPCSV

```

Going to report this to the Digi team.

Thanks anyway man!

---

<div class="post-metadata">

**Author:** ![descalon](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.digi.com/descalon/32/4288_2.png) [@descalon](https://forums.digi.com/u/descalon)\
**Post date:** [January 11, 2011, 8:59am UTC](https://forums.digi.com/t/cant-compile-module-presentations-tcp-csv-tcp-csv-tcpcsv/2766/4 "2011-01-11T08:59:09Z")

</div>

Hello Denz,  
Glad you could fix the problem. Just curious, I have been trying this with graphic editor and I am always getting

```auto
driver: presentations.tcpcsv.tcpcsv:TCPCSV

```

which is correct. Which version of Dia are you using? is it an official release?

Thanks.

---

<div class="post-metadata">

**Author:** ![DenzChoe](https://avatars.discourse-cdn.com/v4/letter/d/53a042/32.png) [@DenzChoe](https://forums.digi.com/u/DenzChoe)\
**Post date:** [January 11, 2011, 9:09am UTC](https://forums.digi.com/t/cant-compile-module-presentations-tcp-csv-tcp-csv-tcpcsv/2766/5 "2011-01-11T09:09:54Z")

</div>

seems so.  
It came along in the dia\_pkg\_1.3.8.zip file from Digi.  
Currently I’m stuck at where do I create a location to retrieve that data. I’m hoping SQLLite will help. But that would be reserved for another thread topic (i hope it don’t come to that)

---

<div class="post-metadata">

**Author:** ![DenzChoe](https://avatars.discourse-cdn.com/v4/letter/d/53a042/32.png) [@DenzChoe](https://forums.digi.com/u/DenzChoe)\
**Post date:** [January 11, 2011, 9:47am UTC](https://forums.digi.com/t/cant-compile-module-presentations-tcp-csv-tcp-csv-tcpcsv/2766/6 "2011-01-11T09:47:45Z")

</div>

Oh and I realize the problem has to do with the ESP version. Not the Dia.  
Running at v1.1.2.  
Latest release is at v1.2.0.5  
Do you know how can I update it without downloading the entire package?

---

<div class="post-metadata">

**Author:** ![descalon](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.digi.com/descalon/32/4288_2.png) [@descalon](https://forums.digi.com/u/descalon)\
**Post date:** [January 11, 2011, 11:33am UTC](https://forums.digi.com/t/cant-compile-module-presentations-tcp-csv-tcp-csv-tcpcsv/2766/7 "2011-01-11T11:33:13Z")

</div>

Hello Denz,  
As far as I see, the XML file describing the TCP CSV presentation of Dia 1.3.8 package is wrong. Problem resides in the Dia package that is being distributed. It contains the “\_” characters where it should not.

This problem is fixed in the latest version of Digi ESP. There is not a direct way to update the Digi ESP because lot of improvements and new features are included. You can however maintain your workspace with your projects and use the new version of Digi ESP with them, there should not be any problem with that.

Thanks for helping us addressing this issue.

Regards.
