Skip to content
Advertisement

Read a TSV file from a remote server

I have this function which returns the path to the file I need to read

JavaScript

Later on, I am trying to open the file

JavaScript

db_file holds one of the paths above.

When I execute the script I get this error:

JavaScript

I have checked the files names and the paths they all exist and in the right location.

I have tried the following and got the same traceback:

JavaScript
JavaScript
JavaScript

Advertisement

Answer

Your file is on FTP server.

Use paramiko in order to read it.

JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement