Hi:
I am using slitaz 3.0.
How can I update to python 2.7?
Thanks a lot

update python 2.7
(6 posts) (3 voices)-
Posted 13 years ago #
-
It's already available in the latest cooking and will be available in the SliTaz 4 release.
That said, 2.7 might not be what your looking for since it follows stricter rules than 2.6 and uses more Python 3 syntax for many of it's commands to make portability easier. This is the main reason many Linux distributions ship with separate Python 2.6.* and Python 3 packages - leaving out 2.7 completely.
Posted 13 years ago # -
Hi:
Thanks for the reply.
I am new using slitaz and i have many problems with the cooking version ( the vga and the monitor resolution..I think so. After install it and reboot i just can see a white screen). The only one working for me is the 3.0.
I compiled quodlibet 2.3 using a live cd and saved the files form /usr/bin etc etc.So installing quodlibet 2.0 with the cooking version and replacing the files for the 2.3 i have quodlibet working...but i need python 2.7 to make it work with the plugins etc.
I would like to make you a question.
I am using the pc at work and I have to play videos and music.
I have to close quodlibet to use the video player or youtube.Only one instance could use alsa.
I was reading your reply to a problem with flash player.http://www.alsa-project.org/main/index.php/Asoundrc#Software_mixing
Reading it (my english is not very good) i could see diffrent options to have software mixing with alsa but i don't know wich one is the best with slitaz or my sound card.
In ubuntu and archlinux ( the distros I used before ) automatically configure alsa to have more than one instance at a time.I have been reading about it but I don't know the way to do it.
Before to make a mistake trying a wrong configuration i prefer to ask about it.
Thanks a lotPosted 13 years ago # -
Using the dmixing method is probably best. It does however use slightly more resources than a single instance of ALSA (About 15%-25% difference). It works pretty well if you can balance everything properly. What they don't tell you is that some of those options are optional.
Here is an example .asoundrc I've tried before, so just create this file in your home folder:
pcm.multi { type plug slave.pcm "dmixer" } pcm.dmixer { type dmix ipc_key 1024 slave { pcm "hw:1,0" period_time 0 period_size 1024 buffer_size 4096 } bindings { 0 0 1 1 } } ctl.dmixer { type hw card 0 }
Everything in slave {} is optional except for pcm. It will just use the default options rather than the ones you expect. I left out rate because it then automatically picks the rate based on the file rather than a preset one (44100 or 48000 by default). You should mess with values until there is no jitter in your sound or comment or delete them out completely just to the default settings provided by ALSA.
Posted 13 years ago # -
Hey!
I am running a live installation of Slitaz 4.0 and I am taking a course on Python. The proble is that the course uses Python 3 and what I could get until now in Slitaz was Python 2.7. Is there a way I can upgrade to Python 3?Posted 12 years ago # -
It's not so much an upgrade as installing a different package. In SliTaz the Python 3 package is called py3k - So just install that and you'll have Python 3.3.2 installed. Just be warned that not all python related packages will work with it - pygame being a prime example.
If you're looking for a great supplement guide try a Byte of Python @ http://www.swaroopch.com/notes/python/ - It's how I first learned how to code in a Perl and I highly recommend it. It covers everything, even object oriented programming, in only ~180 pages with examples :)
Posted 12 years ago #
Reply
You must log in to post.