Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #103546

Re: Pyraf problem

Newsgroups comp.lang.python
Date 2016-02-26 07:04 -0800
References <705629636.351550.1456410947390.JavaMail.zimbra@aries.res.in> <mailman.125.1456411053.20994.python-list@python.org>
Message-ID <da22d884-1cd5-4e07-b6c3-f0738e2c76d5@googlegroups.com> (permalink)
Subject Re: Pyraf problem
From Arshpreet Singh <arsh840@gmail.com>

Show all headers | View raw


On Thursday, 25 February 2016 20:07:52 UTC+5:30, Sapna Mishra  wrote:
> Dear Sir/Mam, 
> 
> I am using python for my astronomy purpose, for that I want to use PyRaf, but strange thing is occurring that pyraf is getting open as a root but out side my root user directory when I am typing pyraf I am getting like; 
> No graphics/display possible for this session. 
> Tkinter import failed. 
> The numpy package is required by PyRAF and was not found. Please visit http://numpy.scipy.org 

Hi Sapna, You can't run directly X-window system from root account, SO you are getting Tkinter error. 

You can try to install as follows:

sudo pip install pyraf

But befoore that you also need to install numpy as it is required for pyraf or scipy too.

SO you need to run 
sudo pip install numpy scipy

Above instructions will work only for Python2.X

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Pyraf problem Sapna Mishra <sapna@aries.res.in> - 2016-02-25 20:07 +0530
  Re: Pyraf problem Steven D'Aprano <steve@pearwood.info> - 2016-02-26 03:14 +1100
  Re: Pyraf problem Arshpreet Singh <arsh840@gmail.com> - 2016-02-26 07:04 -0800

csiph-web