Open l-reymond opened 3 months ago
@l-reymond Thanks. I recently (like, a couple weeks ago!) saw a similar problem using Python 3.12 and changed the master branch to sconf.read_file(StringIO(initext))
. But I think sconf.read_string(initext)
is better, and will fix that.
I'm intending to add a more general trajectory generator, and then release a version 1.0, hoping for later this week....
@l-reymond This is fixed in version 0.9.
@newville Thank you so much for your reactivity. And I am glad I could provide a tiny piece of the puzzle.
Hi !
I have had trouble communicating with a Newport XPS-Q8 controller, and after thorough debugging, I found a workaround that might be of use. First, I got the "Could not read system.ini!!!" error, and got thrown off by others experiencing similar symptoms.
As the content of the "system.ini" file was correctly loaded into local variables (
initext
), I figured it was not a (S)FTP problem, which was then confirmed by the traceback error I obtained (after commenting the try/except inNewportXPS.connect()
):As it looked like a parsing error, after some digging, I eventually replaced the conflictive line
sconf.readfp(StringIO(initext))
bysconf.read_string(initext)
that did the job. I am unsure of the consequences of that change and the origin of the issue (maybe packages versions ?). Do you have any idea ?The "system.ini" file: system.txt