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


Groups > comp.lang.python > #103546

Re: Pyraf problem

X-Received by 10.66.122.101 with SMTP id lr5mr1439314pab.3.1456499084584; Fri, 26 Feb 2016 07:04:44 -0800 (PST)
X-Received by 10.50.138.165 with SMTP id qr5mr52099igb.10.1456499084536; Fri, 26 Feb 2016 07:04:44 -0800 (PST)
Path csiph.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!news.glorb.com!hb3no9251297igb.0!news-out.google.com!pn7ni3013igb.0!nntp.google.com!hb3no9251296igb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups comp.lang.python
Date Fri, 26 Feb 2016 07:04:44 -0800 (PST)
In-Reply-To <mailman.125.1456411053.20994.python-list@python.org>
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=122.173.0.176; posting-account=LPV9ggoAAAB0QwvcAJJbW6Xr98w8dVCs
NNTP-Posting-Host 122.173.0.176
References <705629636.351550.1456410947390.JavaMail.zimbra@aries.res.in> <mailman.125.1456411053.20994.python-list@python.org>
User-Agent G2/1.0
MIME-Version 1.0
Message-ID <da22d884-1cd5-4e07-b6c3-f0738e2c76d5@googlegroups.com> (permalink)
Subject Re: Pyraf problem
From Arshpreet Singh <arsh840@gmail.com>
Injection-Date Fri, 26 Feb 2016 15:04:44 +0000
Content-Type text/plain; charset=ISO-8859-1
Xref csiph.com comp.lang.python:103546

Show key headers only | 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