From: Roan E. <rem...@vu...> - 2005-03-12 12:37:15
|
Hi everyone, I'm a new would-be user of Pythoncard, I found it while looking for a modern day open source variant of hypercard. Unfortunately I have not been able to install it on my fedora core 3 linux box. I'm not a great linux expert, but I know my way around a little. I'm pretty sure it's wxpython that gives problems. I have written down my installation attempts as a sort of how to install guide, except it doesn't work. Here it is, I hope someone can help out, or this provides at least a starting point for other fedora users... Roan ===================================================== Friday, March 11th, 2005 I will try to install Pythoncard on Fedora Core 3 Linux. The page http://pythoncard.sourceforge.net/linux_installation.html explains the install for mandrake and debian, maybe I learn something for fedora too. First I check wether python is installed: $ python Python 2.3.4 (#1, Feb 2 2005, 12:11:53) [GCC 3.4.2 20041017 (Red Hat 3.4.2-6.fc3)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> (Type Ctrl-D here to exit) and this is so. Good, we're almost done :-) (if you don't have python installed, use your package manager to do so) My python version is 2.3.something so I download http://prdownloads.sourceforge.net/wxpython/wxPythonGTK-py2.3-2.5.1.5-1.i386.rpm as advised in the linux_installation.html text. I find the downloaded package with my file browser, right-click on it, and select "Open with 'Install packages'". I give my root password, and it installs without any problem. I download the pythoncard "tarball" from http://prdownloads.sourceforge.net/pythoncard/PythonCard-0.8.1.tar.gz?download I just downloaded the .tar.gz file and unpacked it, then I saw a big directory with lots of files in it. I was hoping this would be it, but I was out of luck. Running one of the examples (./samples/minimal/minimal.py) failed. After searching on the net for a while, I noticed another python application installing itself by using $python setup.py install and sure enough, executing the command from the directory of pythoncard worked. A lot of config output flew by and when it was done I could *almost* run the example ./samples/minimal/minimal.py it now gave an error dialog, the minimum requirements to run were wxpython 2.5.2.8 instead of 2.5.1.5 (so there's a wrong mention in the documentation on the pythoncard website). Luckily I found a recent version (2.5.3.1) on the sourceforge project page of wxpython: http://sourceforge.net/projects/wxpython I couldn't find an rpm just like the one I downloaded for version 2.5.1.5! And there are no prebuilt packages for fedora core 3. It all goes downhill from here, and I was so close... Attempt a) downloading the source: I hate this. I've never been able to make things like this work on my fedora core3. So I download the code, and do a ./configure in the code dir. It fails somewhere around the GTK+. Attempt b) installing packages: I can't find any for fedora core 3. So I install the wxPython common and wxPython runtime for fedora core2 (see http://wxpython.org/download.php). the command ./samples/minimal/minimal.py still returns the same error, so obviously things have not worked out. Attempt c) second attempt to compile I read the http://wxpython.org/BUILD.html that describes how to build from the code, and try again with ./configure --with-gtk --with-opengl --enable-debug --enable-geometry --enable-sound --with-sdl --enable-display however this still gives the same error. I check my package manager (synaptic) and install some GTK+ development packages that were not installed yet. Then I try to run gtk-config --libs (a suggestion from the failing ./configure error output) but this doesn't work. Hope conquers experience, and I try to compile again. You never know. ./configure --with-gtk --with-opengl --enable-debug --enable-geometry --enable-sound --with-sdl --enable-display Amazingly, it seems to work. ------------------------- last output ----------------------- Configured wxWidgets 2.5.3 for `i686-pc-linux-gnu' Which GUI toolkit should wxWidgets use? GTK+ 2 Should wxWidgets be compiled into single library? no Should wxWidgets be compiled in debug mode? yes Should wxWidgets be linked as a shared library? yes Should wxWidgets be compiled in Unicode mode? no What level of wxWidgets compatibility should be enabled? wxWidgets 2.2 no wxWidgets 2.4 yes Which libraries should wxWidgets use? jpeg builtin png builtin regex sys tiff builtin zlib sys odbc no expat sys libmspack no sdl yes ------------------------- end output ------------------------- So I type make This did not produce any errors, so I now type make install This also succeeds but trying to run the sample STILL gives the same error. Perhaps I need to give some parameters for the make or make install commands? |
From: Andy T. <an...@ha...> - 2005-03-29 11:51:29
|
Roan Embrechts wrote: > Hi everyone, > > I'm a new would-be user of Pythoncard, I found it while looking for a > modern day open source variant of hypercard. > > Unfortunately I have not been able to install it on my fedora core 3 > linux box. I'm not a great linux expert, but I know my way around a > little. I'm pretty sure it's wxpython that gives problems. I have > written down my installation attempts as a sort of how to install guide, > except it doesn't work. Here it is, I hope someone can help out, or this > provides at least a starting point for other fedora users... > > Roan > > ===================================================== > Friday, March 11th, 2005 > I will try to install Pythoncard on Fedora Core 3 Linux. > > The page > http://pythoncard.sourceforge.net/linux_installation.html > explains the install for mandrake and debian, maybe I learn something > for fedora too. > > First I check wether python is installed: > > $ python > Python 2.3.4 (#1, Feb 2 2005, 12:11:53) > [GCC 3.4.2 20041017 (Red Hat 3.4.2-6.fc3)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>> (Type Ctrl-D here to exit) > > and this is so. Good, we're almost done :-) > (if you don't have python installed, use your package manager to do so) > > My python version is 2.3.something so I download > http://prdownloads.sourceforge.net/wxpython/wxPythonGTK-py2.3-2.5.1.5-1.i386.rpm > > as advised in the linux_installation.html text. > [snip] You are right, the linux installation instructions are a bit out of date. I'll update them and update the web site. If I were you I'd stick to the binaries though, unlesss you really know your way around your system. First, the installation of wxPython. Checking the distribution page [1] there are binary RPMs of wxPython 2.5.4.1 for Python 2.3 and 2.4 on Fedora Core 2, which I presume will work with Fedora Core 3. Once these are installed check everything is working by starting your Python interpreter and typing; >>> import wx If there are no error messages then you should be O.K. I'd then follow the existing instructions on the web page to download and install the PythonCard RPM. Let us know how this goes. [1] http://www.wxpython.org/download.php#binaries Regards, Andy -- -------------------------------------------------------------------------------- From the desk of Andrew J Todd esq - http://www.halfcooked.com/ |
From: Andy T. <an...@ha...> - 2005-03-31 12:27:04
|
Roan Embrechts wrote: > Andy Todd wrote: > > You are right, the linux installation instructions are a bit out of > >> date. I'll update them and update the web site. >> >> If I were you I'd stick to the binaries though, unlesss you really >> know your way around your system. >> >> First, the installation of wxPython. Checking the distribution page >> [1] there are binary RPMs of wxPython 2.5.4.1 for Python 2.3 and 2.4 >> on Fedora Core 2, which I presume will work with Fedora Core 3. >> >> Once these are installed check everything is working by starting your >> Python interpreter and typing; >> >> >>> import wx >> >> If there are no error messages then you should be O.K. I'd then follow >> the existing instructions on the web page to download and install the >> PythonCard RPM. Let us know how this goes. >> >> [1] http://www.wxpython.org/download.php#binaries >> >> Regards, >> Andy > > > Current situation: > > $python > >>>> import wx >>>> > > This works fine. > > When I am in the pythoncard directory and I type > ./samples/minimal/minimal.py > > it still produces an error dialog stating that I only have wxPython > 2.5.1.5 but I need wxPython 2.5.2.8. > > --- > > I try again to install the wxPython common, runtime and develop packages > for fedora core 2, gtk2, ansi. Then I reinstall pythoncard 0.8.1. I > still get the same error... > > thanks for trying to help, > > Roan The installation instructions (and RPM packages) have been updated in the last couple of days. Can you possibly try installing again - you may need to remove the packages you have already installed, or at least upgrade rather than install the new packages. I would suggest a quick read of http://www.tuxfiles.org/linuxhelp/rpminstall.html If you have any more problems please bring them up on the list. Regards, Andy -- -------------------------------------------------------------------------------- From the desk of Andrew J Todd esq - http://www.halfcooked.com/ |