Skip to content

ValueError: can't have unbuffered text I/O at simon start #92

@juanfariaso

Description

@juanfariaso

Hi,
I am having trouble starting simon on two systems, one with a fresh install of python3 (on a docker image) but on my local computer as well.

I installed simon with :
python3 -m pip install astrosimon

which currently install astrosimon-0.8.5

the simon command works but the daemon seems to fail:

root@3ea2f60ff829:/docker/test# simon 
Running SiMon in the interactive mode...
/docker/test/examples/demo_simulations
[NEW] /docker/test/examples/demo_simulations
[NEW]   1| demo_sim_t_end=30_a=1_e=10.5         T: 0 >> 0 >> 30 [....................] 01-01 00:00
[NEW]   2| demo_sim_t_end=30_a=1_e=16.5         T: 0 >> 0 >> 30 [....................] 01-01 00:00
[NEW]   3| demo_sim_t_end=30_a=1_e=3.5          T: 0 >> 0 >> 30 [....................] 01-01 00:00
[NEW]   4| demo_sim_t_end=30_a=1_e=7.5          T: 0 >> 0 >> 30 [....................] 01-01 00:00
[NEW]   5| demo_sim_t_end=30_a=2_e=10.5         T: 0 >> 0 >> 30 [....................] 01-01 00:00
[NEW]   6| demo_sim_t_end=30_a=2_e=16.5         T: 0 >> 0 >> 30 [....................] 01-01 00:00
[NEW]   7| demo_sim_t_end=30_a=2_e=3.5          T: 0 >> 0 >> 30 [....................] 01-01 00:00
[NEW]   8| demo_sim_t_end=30_a=2_e=7.5          T: 0 >> 0 >> 30 [....................] 01-01 00:00
[NEW]   9| demo_sim_t_end=30_a=3_e=10.5         T: 0 >> 0 >> 30 [....................] 01-01 00:00
[NEW]   10| demo_sim_t_end=30_a=3_e=16.5        T: 0 >> 0 >> 30 [....................] 01-01 00:00
[NEW]   11| demo_sim_t_end=30_a=3_e=3.5         T: 0 >> 0 >> 30 [....................] 01-01 00:00
[NEW]   12| demo_sim_t_end=30_a=3_e=7.5         T: 0 >> 0 >> 30 [....................] 01-01 00:00

root@3ea2f60ff829:/docker/test# simon start
Traceback (most recent call last):
  File "/usr/local/bin/simon", line 11, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.6/dist-packages/SiMon/simon.py", line 504, in main
    SiMon.daemon_mode(os.getcwd())
  File "/usr/local/lib/python3.6/dist-packages/SiMon/simon.py", line 476, in daemon_mode
    daemon_runner = runner.DaemonRunner(app)
  File "/usr/local/lib/python3.6/dist-packages/daemon/runner.py", line 114, in __init__
    self._open_streams_from_app_stream_paths(app)
  File "/usr/local/lib/python3.6/dist-packages/daemon/runner.py", line 135, in _open_streams_from_app_stream_paths
    app.stderr_path, 'w+t', buffering=0)
ValueError: can't have unbuffered text I/O

Can you reproduce this error on a fresh install?

I tried installing directly from git but there I got a different error, I could open another issue for that.

Any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions