python 3.1

i have just recently switched over to Gnome in openSUSE 11.1 from XP and was hoping someone could help me with the installation of python 3.1 and an editor. In windows I had been using 3.0 with IDLE, but i’m at a loss as to how to install software in openSUSE when you aren’t using “Software Management” in YaST

i’m not even sure if i should be downloading Gzipped or Bzipped, or if it even matters.

Python 3.1 Release

I would also appreciate any suggestions on anything out there for py3.1 that is better than IDLE

thanks

Hi,

the installation process would be more or less identical to the one described in Python v2.5 and v2.6 together on openSUSE 11.1 - openSUSE Forums but you should also consider Python 3 and openSUSE. How? - openSUSE Forums

As an editor you can use eric, kdevelop, kate … but I would favoring eric because of the syntax completion feature.

Hope this helps

thanks, i guess i’m not sure where to start is my main problem, i downloaded the source and then created an “Apps” folder in my “home folder” and extracted the Python-3.1.tgz file into the “Apps” folder.

From the newly created Python-3.1 folder within Apps, i right-click and select the “Open in terminal” option and try to follow the instructions in the README file, but when i type “./configure” in the terminal i get the following error:

configure: error: no acceptable C compiler found in $PATH

which leads me to believe i should be extracting the program somewhere other than my home directory, but i’m just not sure where i should be doing that

as for eric, i’ve read that it’s quite nice, but i was under the impression that it does not yet work for 3.1, does anyone know if it is working for 3.1?

thanks

Hi,

it doesn’t matter where you extract the sources but you have to install all needed devel packages before you can start. I’m not sure which packages are all needed but starting with gcc wouldn’t be the wrong choice :slight_smile: Maybe you should read the README carefully and install all required devel packages accordingly to that file.

Don’t know if eric runs with python 3.1 as long as suse won’t ship official python 3 packages with suse I won’t upgrade to python 3 because 2.x absolutely fulfill my requirements.

Hope this helps

thanks – i had just sort of assumed that gcc was part of the installation, but now i went through YaST and installed it, which allowed me to pretty easily follow the instructions and run

> ./configure
> make
> make test
> sudo make install

it seemed like everything installed perfectly, but when i run python from a prompt by typing “python” it still says:

Python 2.6 (r26:66714, Feb 3 2009, 20:52:03)

has anyone else been able to get the python upgrade to work?

i would like to just use 2.6, but i’ve written a bunch of code in 3.0 when i was using windows XP and now they are saying that 3.0 is an ex-release and i should upgrade to 3.1 – which leaves me where i am today

On Mon, 20 Jul 2009 21:46:02 GMT, oddlot
<oddlot@no-mx.forums.opensuse.org> wrote:

>
>thanks – i had just sort of assumed that gcc was part of the
>installation, but now i went through YaST and installed it, which
>allowed me to pretty easily follow the instructions and run
>
>> ./configure
>> make
>> make test
>> sudo make install
>
>it seemed like everything installed perfectly, but when i run python
>from a prompt by typing “python” it still says:
>
>Python 2.6 (r26:66714, Feb 3 2009, 20:52:03)
>
>has anyone else been able to get the python upgrade to work?
>
>i would like to just use 2.6, but i’ve written a bunch of code in 3.0
>when i was using windows XP and now they are saying that 3.0 is an
>ex-release and i should upgrade to 3.1 – which leaves me where i am
>today

Your Python 3.1 is probably actually there somewhere. This is one of
the more than a nuisance issues of installing without using a package
manager.

Try using yast->software management to uninstall Python 2.6. Then use
package manager to install Python 3.0.1, available here:
http://en.opensuse.org/Python
You will need sources as well.

Now you have enough compare the make files and update the 3.0.1 .spec
file for 3.1. Next you may try to use buildrpm to build the 3.1 rpm.
If this succeeds try installing Python from your fresh 3.1 rpm.

Hi,

the executable should be located in /usr/local/bin. You should try to use /usr/local/bin/python (or so) instead otherwise the python located in /usr/bin will be preferred. Maybe you want to make a symlink to python3 in /usr/local/bin :slight_smile:

Hope this helps