Closed SteffenBrinckmann closed 3 years ago
import datalad datalad.api.create(path='mydataset', cfg_proc='text2git')
Minor comment: Should likely be import datalad.api
otherwise it should fail before execution.
At a first trial, this create call works for me in python 3.6, 3.7 and 3.8. So, it's not the python API per se leading to that issue. However, the error suggests that something goes wrong with the output capturing.
@SteffenBrinckmann : Apart from the need to get to the core of the problem, just want to point out, that
import datalad.api
dataset = datalad.api.create('mydataset')
dataset.run_procedure('cfg_text2git')
Is supposed to do the same thing. Would be good to see, whether that works for you (and is a workaround in case it does).
Sorry, it is an ipython/jupyter issue. If I run in native python it works fine.
What is the problem?
If I run in python datalad.api.create(path='mydataset', cfg_proc='text2git') I get an exception UnsupportedOperation: fileno
What steps will reproduce the problem?
import datalad datalad.api.create(path='mydataset', cfg_proc='text2git')
What version of DataLad are you using (run
datalad --version
)? On what operating system (consider runningdatalad wtf
)?datalad 0.13.4
WTF
configuration <SENSITIVE, report disabled by configuration>
datalad
dataset
dependencies
environment
extensions
git-annex
location
metadata_extractors
python
system
Is there anything else that would be useful to know in this context?
The exception log: [INFO] Creating a new annex repo at /home/sbrinckm/temporary_test0/mydataset [INFO] Running procedure cfg_text2git [INFO] == Command start (output follows) =====
UnsupportedOperation Traceback (most recent call last)