PyGeo

L lamlbiro at optusnet.com.au
Tue Aug 31 02:17:33 EDT 2010


On 30/08/10 18:59, Thomas Jollans wrote:
> On Monday 30 August 2010, it occurred to L to exclaim:
>    
>> I have tried it and as soon as you try any of the examples  in the
>> examples dir it cannot find numpy etc....
>>
>> I have manually move the pygeo dirs and contents to
>> /usr/lib/python2.6/dis-packages,
>>
>>    (this is the directory where numpy, numeric and scipy were installed
>> when using synaptic )
>>
>>    made sure that    read and write permissions set for ALL FILES and
>> DIRECTORIES to RW using sudo chmod 777
>>      
> Wait -- did you just try to use pymaxima, or did you properly (try to) install
> the dependencies?
>
> You need VPython. It's in the ubuntu archives.
> http://packages.ubuntu.com/lucid/python-visual
>
> And then you need to download and install pygeo.
> http://pygeo.sourceforge.net/download.html
> It probably uses distutils, so you'd extract the source archive and run
> sudo python setup.py install
>
> If THAT gives you any errors, then please come back here, with the exact error
> messages. If it works, then PyGeo should be installed. If it still doesn't
> work, then there's certainly a chance it won't work, but you can still ask
> here for help, with the exact error messages, so we have something to build
> upon when trying to figure out what's wrong.
>
>   - Thomas
>    
No, I have not tried pymaxma ( I have maxima and wxmaxima install via 
synaptic, tested and all works OK)

yes, that is what I did for install.

Vpython already install via synaptic, ran a number of examples and all 
produced the expected output.

also the PyGeo readme text mentions Numerical python (I think it means 
Numeric, but I also have NumPy installed)

to install i did the following steps
PyGeo
downloaded form sourceforge
tar xvfc PyGeo-1.0a1.tar.gz
cd PyGeo-1.0a1
python setup.py install

NO ERROR MESSAGES ecountered

IT DID NOT WORK  coplaing about the NUMERIC module

I repeated the install and issued the parameter to  'python steup.py 
install.....) to force the directory name to be the same where the other 
python modules are (see listing below)
NO ERROR MESSAGES ecountered


Note what I did to ensure permissions etc (see my second post for 
directories etc)

install successful, but running the example from ...examples/real/  
using IDLE

I get
IDLE 2.6.5      ==== No Subprocess ====
 >>>
Traceback (most recent call last):
   File 
"/usr/lib/python2.6/dist-packages/pygeo/examples/real/dandelinspheres2.py", 
line 2, in <module>
     from pygeo.base.abstract_elements_real import _Sphere, _Point
   File "/usr/lib/python2.6/dist-packages/pygeo/__init__.py", line 3, in 
<module>
     from pygeo.vpyframe import display
   File "/usr/lib/python2.6/dist-packages/pygeo/vpyframe.py", line 38, 
in <module>
     class display( visual.ui.display):
AttributeError: 'module' object has no attribute 'ui'
 >>>


/usr/lib/python2.6/dist-packages has the following directories and 
permissions....

drwxr-xr-x  2 root root    4096 2010-04-29 22:42 appindicator
drwxr-xr-x  3 root root    4096 2010-04-29 22:43 apport
drwxr-xr-x  2 root root    4096 2010-07-29 17:56 AppTools-3.3.0.egg-info
drwxr-xr-x  3 root root    4096 2010-08-10 12:43 apt
drwxr-xr-x  2 root root    4096 2010-04-29 22:43 aptdaemon
drwxr-xr-x  2 root root    4096 2010-08-10 12:43 aptsources
drwxr-xr-x  3 root root    4096 2010-04-29 22:43 AptUrl
drwxr-xr-x  5 root root    4096 2010-07-28 21:14 butterfly
drwxr-xr-x  5 root root    4096 2010-04-29 22:41 checkbox
drwxr-xr-x  2 root root    4096 2010-04-29 22:43 checkbox_gtk
drwxr-xr-x  2 root root    4096 2010-04-29 22:43 CommandNotFound
drwxr-xr-x  2 root root    4096 2010-08-10 12:43 computerjanitor
drwxr-xr-x  3 root root    4096 2010-04-29 22:42 configglue
drwxr-xr-x  2 root root    4096 2010-04-29 22:42 configglue-0.2dev.egg-info
drwxr-xr-x  7 root root    4096 2010-04-29 22:42 Crypto
drwxr-xr-x  7 root root    4096 2010-04-29 22:44 desktopcouch
drwxr-xr-x  2 root root    4096 2010-08-28 17:36 distribute-0.6.10.egg-info
drwxr-xr-x  2 root root    4096 2010-08-10 12:43 DistUpgrade
drwxr-xr-x  3 root root    4096 2010-08-28 17:36 DistUtilsExtra
drwxr-xr-x 26 root root    4096 2010-07-29 17:56 enthought
drwxr-xr-x  2 root root    4096 2010-07-29 17:56 
EnthoughtBase-3.0.3.egg-info
drwxr-xr-x  2 root root    4096 2010-07-29 17:56 EnvisageCore-3.1.1.egg-info
drwxr-xr-x  2 root root    4096 2010-07-29 17:56 
EnvisagePlugins-3.1.1.egg-info
drwxr-xr-x  2 root root    4096 2010-08-15 11:38 GDebi
drwxr-xr-x  7 root root    4096 2010-04-29 22:28 glchess
drwxr-xr-x  2 root root    4096 2010-04-29 22:43 
gnome_app_install-0.4.2ubuntu2.egg-info
drwxr-xr-x  2 root root    4096 2010-04-29 22:43 GnomeCodecInstall
drwxr-xr-x  3 root root    4096 2010-04-29 22:28 gnome_sudoku
drwxr-xr-x  2 root root    4096 2010-08-28 18:02 Gnuplot
drwxr-xr-x  3 root root    4096 2010-04-29 22:32 gst-0.10
drwxr-xr-x  3 root root    4096 2010-04-29 22:32 gtk-2.0
drwxr-xr-x  4 root root    4096 2010-07-28 21:14 gwibber
drwxr-xr-x  2 root root    4096 2010-04-29 22:42 indicate
drwxr-xr-x  3 root root    4096 2010-07-29 17:56 integrationtests
drwxr-xr-x  2 root root    4096 2010-07-28 21:14 jockey
drwxr-xr-x  2 root root    4096 2010-07-29 20:31 kiki
drwxr-xr-x  3 root root    4096 2010-07-28 21:14 LanguageSelector
drwxr-xr-x  3 root root    4096 2010-08-11 16:45 lxml
drwxr-xr-x  2 root root    4096 2010-07-29 17:56 Mayavi-3.3.0.egg-info
drwxr-xr-x  5 root root    4096 2010-04-29 22:42 mx
*drwxr-xr-x  7 root root    4096 2010-08-28 18:03 Numeric
drwxr-xr-x 13 root root    4096 2010-07-29 17:56 numpy*
drwxr-xr-x  2 root root    4096 2010-08-28 18:03 NumTut
drwxr-xr-x  2 root root    4096 2010-04-29 22:42 NvidiaDetector
drwxr-xr-x  2 root root    4096 2010-04-29 22:41 oauth
drwxr-xr-x  2 root root    4096 2010-04-29 22:41 oauth-1.0a.egg-info
drwxr-xr-x  2 root root    4096 2010-04-29 22:43 Onboard
drwxr-xr-x  2 root root    4096 2010-08-15 11:38 packagekit
drwxr-xr-x  2 root root   12288 2010-08-28 18:02 PIL
drwxr-xr-x  2 root root    4096 2010-07-28 21:14 pyatspi
*drwxrwx--- 11 root lou     4096 2010-08-29 12:49 pygeo*
drwxr-xr-x  2 root root    4096 2010-08-28 17:36 
python_distutils_extra-2.18.egg-info
drwxr-xr-x  2 root root    4096 2010-08-28 18:03 pytz
drwxr-xr-x  2 root root    4096 2010-08-28 18:03 pytz-2010b.egg-info
drwxr-xr-x  7 root root    4096 2010-08-11 16:45 reportlab
drwxr-xr-x 16 root root    4096 2010-08-28 18:03 Scientific
drwxr-xr-x 23 root root    4096 2010-08-28 18:03 scipy
drwxr-xr-x  2 root root    4096 2010-04-29 22:43 ScreenResolution
drwxr-xr-x  2 root root    4096 2010-04-29 22:42 serial
drwxr-xr-x  4 root root    4096 2010-08-28 17:36 setuptools
drwxr-xr-x  4 root root    4096 2010-08-15 11:38 softwareproperties
drwxr-xr-x  2 root root    4096 2010-04-29 22:41 speechd
drwxr-xr-x  2 root root    4096 2010-04-29 22:41 speechd_config
drwxr-xr-x  9 root root    4096 2010-08-28 18:03 tables
drwxr-xr-x  5 root root    4096 2010-04-29 22:42 telepathy
drwxr-xr-x  2 root root    4096 2010-07-29 17:56 Traits-3.2.0.egg-info
drwxr-xr-x  2 root root    4096 2010-07-29 17:56 
TraitsBackendWX-3.2.0.egg-info
drwxr-xr-x  2 root root    4096 2010-07-29 17:56 TraitsGUI-3.1.0.egg-info
drwxr-xr-x 18 root root    4096 2010-04-29 22:43 twisted
drwxr-xr-x  5 root root    4096 2010-07-28 21:14 ubuntuone
drwxr-xr-x  2 root root    4096 2010-08-05 16:41 UbuntuSystemService
drwxr-xr-x 10 root root    4096 2010-08-24 11:21 ubuntutweak
drwxr-xr-x  2 root root    4096 2010-08-24 11:21 ubuntu_tweak-0.5.6.egg-info
drwxr-xr-x  2 root root    4096 2010-04-29 22:41 ufw
drwxr-xr-x  4 root root    4096 2010-08-15 11:38 UpdateManager
drwxr-xr-x  4 root root    4096 2010-04-29 22:43 usbcreator
drwxr-xr-x  2 root root    4096 2010-08-11 17:04 visual
drwxr-xr-x  4 root root    4096 2010-07-29 17:49 wx-2.6-gtk2-unicode
drwxr-xr-x  4 root root    4096 2010-07-29 17:49 wx-2.8-gtk2-unicode
drwxr-xr-x  6 root root    4096 2010-07-29 20:31 wxglade
drwxr-xr-x  2 root root    4096 2010-04-29 22:42 XKit
drwxr-xr-x  3 root root    4096 2010-04-29 22:43 zope
drwxr-xr-x  2 root root    4096 2010-04-29 22:43 
zope.interface-3.5.3.egg-info


does this help somewhat??














More information about the Python-list mailing list