cea-hpc / pdwfs

A simple Redis-backed distributed virtual filesystem for co-execution of HPC and data analytics workloads
Apache License 2.0
14 stars 1 forks source link

Issue with python 2.x: ferror not implemented by pdwfs #3

Open mathaefele opened 4 years ago

mathaefele commented 4 years ago

Describe the bug

When trying to use pdwfs with a simulation and post processing code in python 2.x, it does not work. I get:

[PDWFS][6865][ERROR][C] ferror not implemented by pdwfs

However, it works with python 3.

To Reproduce

python_issue.zip

unzip python_issue.zip 
cd py
./launch.sh 

Expected behavior

A file named pyres should be created and should contain

Hello World 0
Hello world 0
[0 1 2 3 4 5 6]

Additional context

Running on Ubuntu 18.04.3 LTS, with python 2.7.15+

JCapul commented 4 years ago

Thanks for the issue Mat! We are looking into how to implement the ferror behaviour to make this work.

JCapul commented 4 years ago

I just merged PR #5 into develop which should fix this issue.