I’ve tried installing Graphite One under my new clean Suse 11.4 64-bit installation. However, graphite one apparently needs python 2.6 to install and suse 11.4 comes with 2.7.
I hope I can just create symbolic links to satisfy the installer to run?!?!?
I’ve tried to make 2.6 links under /usr/bin and /usr/lib64. I’m using
to create the links, but I’ve sort of lost track of all the python library’s (.so .so.1 .so.1.0 and so on). Furthermore I have no idea about how to verify if it is correct.
As “superuser”, in the /usr/lib64 directory, your link (ln -s libpython2.7.so.1.0 libpython2.6.so.1.0) worked to fix the “non-start” ‘can’t find 2.6.so.1.0’ problem for my MakeHuman application. I did not have to make any other links. **
The clean solution if you need several python versions in parallel is to
compile the extra versions from source. Python supports the option to
compile and have as many parallel versions as you want by a make target. (I
have myself several versions)
as usual, but after that do NOT do a “make install” as root, but instead a
“make altinstall” which does not overwrite anything and adds the full
version number to all library paths and creates also the binaries with
version numbers appended.
–
PC: oS 11.3 64 bit | Intel Core2 Quad Q8300@2.50GHz | KDE 4.6.2 | GeForce
9600 GT | 4GB Ram
Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.6.0 | nVidia
ION | 3GB Ram
sjstanich wrote:
> And how i can install some lib for my python 2.6 instance, and how i
> execute a script with the 2.6 version instead the 2.7?
>
> Thanks
>
Sorry for the late reply, I was not at home the last days. Both is easy: The
executable for python 2.6 is python2.6 so you simply call that instead of
python. If you have a script you need to change the !# line.
Installing a library is of course done in the traditional way not with a rpm
which depends on the library. In many cases you install a library with
python2.6 setup.py install
instead of
python setup.py install
–
PC: oS 11.3 64 bit | Intel Core2 Quad Q8300@2.50GHz | KDE 4.6.3 | GeForce
9600 GT | 4GB Ram
Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.6.0 | nVidia
ION | 3GB Ram
I am having a little trouble compiling python 2.6.
I don’t know which package(s) provide the dependencies…
/Python-2.6.6/Modules/_curses_panel.c:17:19: fatal error: panel.h: No such file or directory
compilation terminated.
Failed to find the necessary bits to build these modules:
_bsddb _tkinter bsddb185
dl imageop sunaudiodev
To find the necessary bits, look in setup.py in detect_modules() for the module's name.
Failed to build these modules:
_curses_panel
–
PC: oS 11.3 64 bit | Intel Core2 Quad Q8300@2.50GHz | KDE 4.6.3 | GeForce
9600 GT | 4GB Ram
Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.6.0 | nVidia
ION | 3GB Ram
> ed v wrote:
>
>> panel.h
> I would say you need ncurses-devel
>
Or even simpler
su - -c "zypper si -d python"
installs (only) the build dependencies for python (2.7 but the build
dependencies should be identical with the ones for 2.6, in the worst case
you waste a bit of disk space).
–
PC: oS 11.3 64 bit | Intel Core2 Quad Q8300@2.50GHz | KDE 4.6.3 | GeForce
9600 GT | 4GB Ram
Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.6.0 | nVidia
ION | 3GB Ram
I’ve been reading this thread as I’ve had some problems with Python 2.6. Whilst I’m no developer I find that occasionally something I install from the Repos, both the default 11.4 or Packman are returning dependencies of python2.6.
I’ve followed the instructions left by yourself, Martin, and had no errors returned, however apps that require it still refuse to run, such as my torrent client of choice Deluge, is there any help you could offer?
Failed to find the necessary bits to build these modules:
_bsddb bsddb185 dl
imageop sunaudiodev
To find the necessary bits, look in setup.py in detect_modules() for the module's name.
Failed to build these modules:
_curses_panel
> Deluge
Hi, how do you install that? If you compile python 2.6 yourself it is not
visible to the package system (you would need to create a rpm for python 2.6
to make it visible).
But deluge should be simply installable via yast (it is in the packman
repo), is something wrong with that version?
–
PC: oS 11.3 64 bit | Intel Core2 Quad Q8300@2.50GHz | KDE 4.6.3 | GeForce
9600 GT | 4GB Ram
Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.6.0 | nVidia
ION | 3GB Ram
> But deluge should be simply installable via yast (it is in the packman
> repo), is something wrong with that version?
> @DawthLasu:
I did a dry run to install deluge from packman (simulated install without
installing it) and it pulls in some dependencies on 11.4 (additional python
packages) but nothing it cannot resolve from the standard repositories
everthing satisfied. Are you sure you configured the correct version of the
packman repo?
–
PC: oS 11.3 64 bit | Intel Core2 Quad Q8300@2.50GHz | KDE 4.6.3 | GeForce
9600 GT | 4GB Ram
Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.6.0 | nVidia
ION | 3GB Ram
>
> same error… after I ran zypper
>
> Code:
> --------------------
>
> Failed to find the necessary bits to build these modules:
> _bsddb bsddb185 dl
> imageop sunaudiodev
> To find the necessary bits, look in setup.py in detect_modules() for the
> module’s name.
>
>
> Failed to build these modules:
> _curses_panel
>
> --------------------
>
Ok I can check this evening, what I had to install on 11.4 to compile it.
Will come back on this in a few hours.
–
PC: oS 11.3 64 bit | Intel Core2 Quad Q8300@2.50GHz | KDE 4.6.3 | GeForce
9600 GT | 4GB Ram
Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.6.0 | nVidia
ION | 3GB Ram
> ed v wrote:
>
>>
>> same error… after I ran zypper
>>
>> Code:
>> --------------------
>>
>> Failed to find the necessary bits to build these modules:
>> _bsddb bsddb185 dl
>> imageop sunaudiodev
>> To find the necessary bits, look in setup.py in detect_modules() for
>> the module’s name.
>>
>>
>> Failed to build these modules:
>> _curses_panel
>>
>> --------------------
>>
> Ok I can check this evening, what I had to install on 11.4 to compile it.
> Will come back on this in a few hours.
>
No sorry nonsense just checked your messages again.
Your build succeeded, the build process just informs you that there exist
some modules which cannot be build on your environment (this differs a
little bit from what cannot be built on a 32 bit test machine). On my own 64
bit also not everything can be built and on solaris and ubuntu and others
you have slightly different modules which cannot be built.
Just ignore that, it nearly never works to have all the exotic stuff built.
Fact is your python build is successfull.
–
PC: oS 11.3 64 bit | Intel Core2 Quad Q8300@2.50GHz | KDE 4.6.3 | GeForce
9600 GT | 4GB Ram
Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.6.0 | nVidia
ION | 3GB Ram
With regards to Deluge, I had installed from within YaST, it tells me there are broken dependencies, and indeed it did not work. However following your help to compile and install Python 2.6 alongside the bundle 2.7 helped me build it from source no problem and now it works fine.
I have all of Packman configured, as in I have the one Packman repo listed to be all of it in the Wiki.