[Tutor] help with installing and/or running PyNomo

2013-03-23 Thread Edythe Thompson
Using Python 2.6.5
Mac OS X version 10.6.8

I want to run the PyNomo package that uses python.  I have followed the 
instructions shown.

Install newest python (2.6.5 tested) [1]
Download and install latest Numpy for python 2.6.
Download and install latest Scipy
Install PIL (or skip, probably you won't need it)
Install MacTex
Install PyX
sudo python setup.py install
Install PyNomo
Run tests on examples directory found in zip-distribution

python GENERATE_ALL.py

The Numpy  and PyX files do not have an installer and can't be dropped into the 
applications folder, so I have them on the desktop.

Python will open in a shell, but shows the following when I run it.

Python 2.7.1 (r271:86882M, Nov 30 2010, 10:35:34) 
[GCC 4.2.1 (Apple Inc. build 5664)] on darwin
Type copyright, credits or license() for more information.
  RESTART 
 

Traceback (most recent call last):
  File /Users/edythethompson/Desktop/Type8-Sample.py, line 3, in module
from pynomo.nomographer import *
ImportError: No module named pynomo.nomographer
 

I'm stuck here.  What do I need to do to make this work, if it will?

Regards,

Edythe___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] help with installing and/or running PyNomo

2013-03-23 Thread Alan Gauld

On 23/03/13 22:35, Edythe Thompson wrote:

Using Python 2.6.5
Mac OS X version 10.6.8

I want to run the PyNomo package that uses python.


This list is for learning core Python so you are probably better off 
asking on a PyNomo forum or mailing list. Or at the very least the 
MacPython list.


However,


Python 2.7.1 (r271:86882M, Nov 30 2010, 10:35:34)


This is running Python 2.7 not the 2.6 that you installed.

This os probably because your MacOS has python 2.7 installed by default.
You will maybe need to explicitly run  the 2.6 version for PyNomo.


Traceback (most recent call last):
   File /Users/edythethompson/Desktop/Type8-Sample.py, line 3, in module
 from pynomo.nomographer import *
ImportError: No module named pynomo.nomographer
 


I have no idea what PyNomo is or how it works so thats a guess but there 
is also a danger that some of your other packages have installed 
themselves in the wrong Python so some may be inPython 2.6 and others in 
2.7! That's a pure guess...


But what the error says is that python 2.7 doesn't know what/where 
PyNomo is.


My best advice is to see if there is a Python 2./7 version available and 
if so install that instead. Failing that check that all your installs 
have been in the 2.6 area and then run Python2.6 (create a shortcut to 
the executable)


Finally your paste suggests you are actually running Python within IDLE. 
That may not be the best thing to do when using 3rd party packages like 
PyNomo.


Again check with a PyNomo forum (or the developer if there is
no forum)


HTH
--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/

___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor