# programmable source failed to import text

**URL:** https://discourse.paraview.org/t/programmable-source-failed-to-import-text/9501
**Category:** ParaView Support
**Created:** [April 23, 2022, 2:05am UTC](https://discourse.paraview.org/t/programmable-source-failed-to-import-text/9501 "2022-04-23T02:05:42Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![wu\_ying](https://discourse.paraview.org/user_avatar/discourse.paraview.org/wu_ying/32/9035_2.png) [@wu\_ying](https://discourse.paraview.org/u/wu_ying)
#### Post date: [April 23, 2022, 2:05am UTC](https://discourse.paraview.org/t/programmable-source-failed-to-import-text/9501/1 "2022-04-23T02:05:42Z")

</div>

programmable source failed to import text

ERROR: In C:\glr\builds\paraview\paraview-ci\build\superbuild\paraview\src\VTK\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx, line 668  
vtkPVCompositeDataPipeline (000001C99BBC1D70): Input port 0 of algorithm vtkOpenGLTexture(000001C9BBB28410) has 0 connections but is not optional.

```auto
# Code for 'Script'

# We will use NumPy to read the csv file.
# Refer to NumPy documentation for genfromtxt() for details on
# customizing the CSV file parsing.

import numpy as np
# assuming data.csv is a CSV file with the 1st row being the names names for
# the columns
data = np.genfromtxt("c:/00yf/dh/time0.txt", dtype=None, names=True, delimiter=',', autostrip=True)
for name in data.dtype.names:
   array = data[name]

   # You can directly pass a NumPy array to the pipeline.
   # Since ParaView expects all arrays to be named, you
   # need to assign it a name in the 'append' call.
   output.RowData.append(array, name)

```
