Cannot run sage in postinst

28 views
Skip to first unread message

Jan Groenewald

unread,
Oct 23, 2016, 5:23:12 AM10/23/16
to sage-devel
Hi

I'm preparing the PPA for sage 7.4. In the postinst script I run sage once as root to set hardcoded paths (which may have been replaced by replocate-once.py??).

It fails to run under apt or dpkg --configure with

/usr/lib/sagemath/local/lib/python2.7/site-packages/prompt_toolkit/terminal/vt100_input.pyc in __init__(self=<prompt_toolkit
.terminal.vt100_input.raw_mode object>, fileno=0)
--> 409         self.attrs_before = termios.tcgetattr(fileno)
error: (25, 'Inappropriate ioctl for device')

But I can run sage in a terminal. Is it safe to remove 'running sage once as root to set hardcoded paths' from the postinst?

Regards,
Jan

--
  .~.
  /V\     Jan Groenewald
 /( )\    www.aims.ac.za
 ^^-^^ 

Andrey Novoseltsev

unread,
Oct 23, 2016, 4:29:51 PM10/23/16
to sage-devel
On Sunday, 23 October 2016 03:23:12 UTC-6, Jan Groenewald wrote:
Hi

I'm preparing the PPA for sage 7.4. In the postinst script I run sage once as root to set hardcoded paths (which may have been replaced by replocate-once.py??).

It fails to run under apt or dpkg --configure with

/usr/lib/sagemath/local/lib/python2.7/site-packages/prompt_toolkit/terminal/vt100_input.pyc in __init__(self=<prompt_toolkit
.terminal.vt100_input.raw_mode object>, fileno=0)
--> 409         self.attrs_before = termios.tcgetattr(fileno)
error: (25, 'Inappropriate ioctl for device')

Looks like the same problem as in https://groups.google.com/d/topic/sage-devel/5GXnV4tlMXw/discussion with a fix for some situations already created.

Reply all
Reply to author
Forward
0 new messages