6 Replies Latest reply on Aug 13, 2016 7:57 PM by LaiSuan

    How to access csv file from network share folder using Intel Edison.

    LaiSuan

      @I need to read the csv file from network share folder in Window by using Intel Edison board (Poky (Yocto Project Reference Distro) 1.7.3 piot005ai ttyMFD2), i686 GNU/Linux. I try to use the python code as below, but I get error.. I did change the '/' to '\', but same error resulted.

       

      import csv
      import os

      x=os.listdir('////10.203.7.130//IoT//')  

      with open('////10.203.7.130//IoT//AlarmTrigger.csv', 'rb') as onOff:
          reader = csv.reader(onOff)
          for row in reader:
              print row

      onOff.close()

       

       

      Error Message:

      Traceback (most recent call last):

        File "AlarmTrigger.py", line 4, in <module>

          x=os.listdir(''////10.203.7.130//IoT//')

      OSError: [Errno 2] No such file or directory: ''////10.203.7.130//IoT//'