# Module path GHpython - csv module

**URL:** <https://discourse.mcneel.com/t/module-path-ghpython-csv-module/46976>\
**Category:** Grasshopper Developer\
**Created:** [August 27, 2017, 5:57pm UTC](https://discourse.mcneel.com/t/module-path-ghpython-csv-module/46976 "2017-08-27T17:57:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Giulio\_Graziani](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/giulio_graziani/32/66093_2.png) [@Giulio\_Graziani](https://discourse.mcneel.com/u/Giulio_Graziani)\
**Post date:** [August 27, 2017, 5:57pm UTC](https://discourse.mcneel.com/t/module-path-ghpython-csv-module/46976/1 "2017-08-27T17:57:19Z")

</div>

Hi everyone, I just started with Rhino Python and I wanted to read some csv files but I can’t do it: the error I get from the interpeter is ‘1. Solution exception:No module named csv’. I’ve tried the ‘import csv’ and then to read from a file…  
It looks like I’m missing the path of the [csv.py](http://csv.py) module I guess which is actually located at ‘C:\Program Files\Python36\Lib’ in my laptop… I cannot understand how to manually check module location from the GHpython editor… Can anyone help me with this stupid and tricky issue?! thanks

---

<div class="post-metadata">

**Author:** ![dale](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/dale/32/772741_2.png) [@dale](https://discourse.mcneel.com/u/dale)\
**Post date:** [August 31, 2017, 7:53pm UTC](https://discourse.mcneel.com/t/module-path-ghpython-csv-module/46976/2 "2017-08-31T19:53:04Z")

</div>

> [@Trouble importing csv data](https://discourse.mcneel.com/t/trouble-importing-csv-data/46058):
>
> Here is my python code (which runs in python fine); import math as ma import csv brand ='phillips' filename = 'C:\Users\gornall72\Desktop\import.csv' with open(filename,'r') as file: reader = csv.DictReader(file) for row in reader: if(brand in row['Brand Name']): I = (float(row['dB'])) D= 3/ma.sqrt(30/I) D2= D+3 print D2 When I try to bring it into Rhino I am getting a message saying “No module named csv”. The half of my Rhino code is: import rhinoscriptsynta…

---

<div class="post-metadata">

**Author:** ![Giulio\_Graziani](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/giulio_graziani/32/66093_2.png) [@Giulio\_Graziani](https://discourse.mcneel.com/u/Giulio_Graziani)\
**Post date:** [August 31, 2017, 9:02pm UTC](https://discourse.mcneel.com/t/module-path-ghpython-csv-module/46976/3 "2017-08-31T21:02:34Z")

</div>

Thank you for the link…(actually messing around in the Library I found out that the csv imports a module ‘\_csv’ which I think is some kind of C module somewhere located compiled … but I couldn’t manage to merge Python and Ironpython libraries)

---

<div class="post-metadata">

**Author:** ![piac](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/piac/32/769366_2.png) [@piac](https://discourse.mcneel.com/u/piac)\
**Post date:** [September 8, 2017, 4:22pm UTC](https://discourse.mcneel.com/t/module-path-ghpython-csv-module/46976/4 "2017-09-08T16:22:46Z")

</div>

Generally, you cannot merge CPython and IronPython libraries, unless they are pure Python.  
It’s best if you leave the default module, in general. Does it help?

---

<div class="post-metadata">

**Author:** ![Giulio\_Graziani](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/giulio_graziani/32/66093_2.png) [@Giulio\_Graziani](https://discourse.mcneel.com/u/Giulio_Graziani)\
**Post date:** [September 10, 2017, 11:03am UTC](https://discourse.mcneel.com/t/module-path-ghpython-csv-module/46976/6 "2017-09-10T11:03:44Z")

</div>

Yep, I found out. Actually I achieved what I wanted looking through the other topic linked by @Dale… Anyway…it’s a pity libraries are different…
