PyGeo

L

L

has anyone successfully installed PyGeo under python 2.7 (prefer ubuntu
10.04) ,
the site says

http://www.wspiegel.de/pymaxima/index_en.html

"Note: The installation of PyGeo work's only under Python 2.4 (The
further development of pygeo seems to be stopped)"

is this to do with re-org of site-packages, dist_packages etc.

any help most appreciated.

TIA
 
T

Thomas Jollans

has anyone successfully installed PyGeo under python 2.7 (prefer ubuntu
10.04) ,
the site says

http://www.wspiegel.de/pymaxima/index_en.html

"Note: The installation of PyGeo work's only under Python 2.4 (The
further development of pygeo seems to be stopped)"

is this to do with re-org of site-packages, dist_packages etc.

any help most appreciated.

I don't know. I haven't tried. Maybe somebody else here has, but don't count
on it. Have you tried it? If not, then why not? Try it. Maybe it just works.
As far as I know, distutils haven't changed much, carefully avoiding any
changes that could break packages.

I think it's entirely possible that the web page author claiming "the
installation" doesn't work was referring only to the Windows installer.

Have fun,
Thomas
 
L

L

I don't know. I haven't tried. Maybe somebody else here has, but don't count
on it. Have you tried it? If not, then why not? Try it. Maybe it just works.
As far as I know, distutils haven't changed much, carefully avoiding any
changes that could break packages.

I think it's entirely possible that the web page author claiming "the
installation" doesn't work was referring only to the Windows installer.

Have fun,
Thomas
--------------------------------

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

any ideas.
 
T

Thomas Jollans

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
 
L

L

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??
 
T

Thomas Jollans

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'

THAT's the information I was waiting for. So, it looks like everything is
working together, except that the visual module appears to have changed
somewhat since PyGeo was written. Importing "visual" within PyGeo appears to
have worked, but "visual.ui" doesn't exist.

After having a brief look at the documentation, I found no mention of a "ui"
object, but there appears to be visual.display -- so, if you wanted to port
the package to the latest VPython, that would be a place to start: replace
"visual.ui.display" with "visual.display", and try again. And the fix the next
problem, and so on, until it works, when you can send a patch to the old
maintainer.
http://www.vpython.org/webdoc/visual/index.html

- Thomas
 
G

Giacomo Boffi

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

afaict, Numerical python is numpy --- if you look at pygeo home page,
the reference to Numerical python is a link to numpy home page

on the contrary, there is no "import numpy" in all the sources of
pygeo, and a couples or so of "import Numeric", so that the situation
is unclear

aiuole/../PyGeo-1.0a1 $ find build| grep py$ | xargs grep -n import'.*'numpy
aiuole/../PyGeo-1.0a1 $ find build| grep py$ | xargs grep -n import'.*'Numeric
build/lib.linux-i686-2.6/pygeo/base/pygeomath.py:1:import Numeric as N
build/lib.linux-i686-2.6/pygeo/base/wiresphere.py:2:import Numeric
aiuole/../PyGeo-1.0a1 $

to complicate matters, it is not possible to install python-numeric
using the apt system on debian unstable

i don't know if it is possible to build numeric against the default
python (2.6) on my system, further i don't know if it is worthwhile
because, at a first sight, it looks like pygeo does not use advanced
features of numeric, and replacing numeric with numpy should be very
easy
 
R

Robert Kern

afaict, Numerical python is numpy --- if you look at pygeo home page,
the reference to Numerical python is a link to numpy home page

on the contrary, there is no "import numpy" in all the sources of
pygeo, and a couples or so of "import Numeric", so that the situation
is unclear

numpy supercedes the older Numeric package. However, "numpy" used to be a
colloquial name for Numeric, too.

--
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth."
-- Umberto Eco
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,169
Messages
2,570,920
Members
47,464
Latest member
Bobbylenly

Latest Threads

Top