Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #103497 > unrolled thread
| Started by | Sapna Mishra <sapna@aries.res.in> |
|---|---|
| First post | 2016-02-25 20:07 +0530 |
| Last post | 2016-02-26 07:04 -0800 |
| Articles | 3 — 3 participants |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
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
| From | Sapna Mishra <sapna@aries.res.in> |
|---|---|
| Date | 2016-02-25 20:07 +0530 |
| Subject | Pyraf problem |
| Message-ID | <mailman.125.1456411053.20994.python-list@python.org> |
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 I have added bath of pyraf in my bashrc file , I have even downloaded numpy but again it is showing same error. Any help will be highly appreciated. Thanks and regards, ***************************************************************************************** Sapna Mishra JRF Aryabhatta Research Institute of Observational Sciences (ARIES) Manora Peak Nainital-263002 Uttarakhand (India) email: sapna.intell@gmail.com sapna@aries.res.in
[toc] | [next] | [standalone]
| From | Steven D'Aprano <steve@pearwood.info> |
|---|---|
| Date | 2016-02-26 03:14 +1100 |
| Message-ID | <56cf2858$0$1607$c3e8da3$5496439d@news.astraweb.com> |
| In reply to | #103497 |
On Fri, 26 Feb 2016 01:37 am, 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 I am sorry, I don't understand what "getting open as a root" means. > 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 Where are you getting this? Is it a Python traceback? If so, please copy and paste the entire traceback, starting with the line: Traceback and ending with the last of the error message. Where are you typing pyraf? In the Python interpreter or the operating system shell? Is the prompt >>> or $ or something else? Are you using the default Python interactive interpreter, IDLE, or some third party IDE? Please explain how you launch Python, e.g.: "I double-click on the Python icon on the desktop" "I open a terminal, and enter python at the shell prompt" Or something else? What version of Python are you using? What operating system? > I have added bath of pyraf in my bashrc file , I have even downloaded > numpy but again it is showing same error. What have you added to your bashrc file? Did you add it to the PATH or the PYTHONPATH? What happens if you run this at the bash prompt? python -c "import sys; print(sys.path)" Do you see the path to pyraf in Python's path? (Python does not use the same path as bash.) -- Steven
[toc] | [prev] | [next] | [standalone]
| From | Arshpreet Singh <arsh840@gmail.com> |
|---|---|
| Date | 2016-02-26 07:04 -0800 |
| Message-ID | <da22d884-1cd5-4e07-b6c3-f0738e2c76d5@googlegroups.com> |
| In reply to | #103497 |
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
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web