On Sat, Sep 29, 2018 at 03:36:51PM +0300, Adrian Bunk wrote:
./wrap-python 2 ./test-fiu_ctrl.py
./wrap-python 2 ./test-basic.py
cc -I../../libfiu/ -L../../libfiu/ -D_XOPEN_SOURCE=600 -D_GNU_SOURCE -fPIC 
-DFIU_ENABLE=1 -g -O2 -fdebug-prefix-map=/build/libfiu-0.96=. 
-fstack-protector-strong -Wformat -Werror=format-security -std=c99 -pedantic 
-Wall -std=c99 -pedantic -Wall tests/open.c -lfiu -o tests/open.bin
Traceback (most recent call last):
 File "./test-fiu_ctrl.py", line 21, in <module>
   cmd = run_cat()
 File "./test-fiu_ctrl.py", line 16, in run_cat
   return fiu_ctrl.Subprocess(["./small-cat"],
AttributeError: 'module' object has no attribute 'Subprocess'

This is weird.

fiu_ctrl.py definitely defines a class Subprocess, so if the file is there and with the proper contents, this should work.

I think this might be caused by building python2 and python3 in parallel, because both builds could attempt to generate fiu_ctrl.py and they might be stepping onto each other, to the point where one copies a partial (or empty) file as the module.

But that's just a wild theory at this point, I will look into it a bit more and post again once I have any news.

Thanks,
                Alberto

Reply via email to