Re: PyGeo
On 8/31/10 7:21 AM, Giacomo Boffi wrote: L writes: 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 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 -- http://mail.python.org/mailman/listinfo/python-list
Re: PyGeo
L writes: > 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 -- http://mail.python.org/mailman/listinfo/python-list
Re: PyGeo
On Tuesday 31 August 2010, it occurred to L to exclaim: > Traceback (most recent call last): >File > "/usr/lib/python2.6/dist-packages/pygeo/examples/real/dandelinspheres2.py", > line 2, in > from pygeo.base.abstract_elements_real import _Sphere, _Point >File "/usr/lib/python2.6/dist-packages/pygeo/__init__.py", line 3, in > > from pygeo.vpyframe import display > File "/usr/lib/python2.6/dist-packages/pygeo/vpyframe.py", line 38, > in > 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 -- http://mail.python.org/mailman/listinfo/python-list
Re: PyGeo
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 thatread 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 from pygeo.base.abstract_elements_real import _Sphere, _Point File "/usr/lib/python2.6/dist-packages/pygeo/__init__.py", line 3, in from pygeo.vpyframe import display File "/usr/lib/python2.6/dist-packages/pygeo/vpyframe.py", line 38, in 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 root4096 2010-04-29 22:42 appindicator drwxr-xr-x 3 root root4096 2010-04-29 22:43 apport drwxr-xr-x 2 root root4096 2010-07-29 17:56 AppTools-3.3.0.egg-info drwxr-xr-x 3 root root4096 2010-08-10 12:43 apt drwxr-xr-x 2 root root4096 2010-04-29 22:43 aptdaemon drwxr-xr-x 2 root root4096 2010-08-10 12:43 aptsources drwxr-xr-x 3 root root4096 2010-04-29 22:43 AptUrl drwxr-xr-x 5 root root4096 2010-07-28 21:14 butterfly drwxr-xr-x 5 root root4096 2010-04-29 22:41 checkbox drwxr-xr-x 2 root root4096 2010-04-29 22:43 checkbox_gtk drwxr-xr-x 2 root root4096 2010-04-29 22:43 CommandNotFound drwxr-xr-x 2 root root4096 2010-08-10 12:43 computerjanitor drwxr-xr-x 3 root root4096 2010-04-29 22:42 configglue drwxr-xr-x 2 root root4096 2010-04-29 22:42 configglue-0.2dev.egg-info drwxr-xr-x 7 root root4096 2010-04-29 22:42 Crypto drwxr-xr-x 7 root root4096 2010-04-29 22:44 desktopcouch drwxr-xr-x 2 root root4096 2010-08-28 17:36 distribute-0.6.10.egg-info drwxr-xr-x 2 root root4096 2010-08-10 12:43 DistUpgrade drwxr-xr-x 3 root root4096 2010-08-28 17:36 DistUtilsExtra drwxr-xr-x 26 root root4096 2010-07-29 17:56 enthought drwxr-xr-x 2 root root4096 2010-07-29 17:56 EnthoughtBase-3.0.3.egg-info drwxr-xr-x 2 root root4096 2010-07-29 17:56 EnvisageCore-3.1.1.egg-info drwxr-xr-x 2 root root4096 2010-07-29 17:56 EnvisagePlugins-3.1.1.egg-info drwxr-xr-x 2 root root4096 2010-08-15 11:38 GDebi drwxr-xr-x 7 root root4096 2010-04-29 22:28 glchess drwxr-xr-x 2 root root4096 2010-04-29 22:43 gnome_app_install-0.4.2ubuntu2.egg-info drwxr-xr-x 2 root root4096 2010-04-29 22:43 GnomeCodecInstall drwxr-xr-x 3 root root4096 2010-04-29 22:28 gnome_sudoku drwxr-xr-x 2 root root4096 2010-08-28 18:02 Gnuplot drwxr-xr-x 3 root root4096 2010-04-29 22:32 gst-0.10 drwxr-xr-x 3 root root4096 2010-04-29 22:32 gtk-2.0 drwxr-xr-x 4 root root4096 2010-07-28 21:14 gw
Re: PyGeo
Maybe you could try this: http://hyry.dip.jp/files/pygeo.7z I found it on this page: http://hyry.dip.jp/blogt.py?file=0432.blog -- http://mail.python.org/mailman/listinfo/python-list
Re: PyGeo
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 thatread 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 -- http://mail.python.org/mailman/listinfo/python-list
Re: PyGeo
On 30/08/10 05:00, Thomas Jollans wrote: On Sunday 29 August 2010, it occurred to L to exclaim: 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 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 thatread and write permissions set for ALL FILES and DIRECTORIES to RW using sudo chmod 777 any ideas. -- http://mail.python.org/mailman/listinfo/python-list
Re: PyGeo
On Sunday 29 August 2010, it occurred to L to exclaim: > 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 -- http://mail.python.org/mailman/listinfo/python-list
PyGeo
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 -- http://mail.python.org/mailman/listinfo/python-list