Archive for the ‘pardus’ Category

Python 3.0 + Pardus ?

Sunday, February 1st, 2009

Installing Python3 took quite a while. What caused this ?

- Python would not build because of missing tkinter + a problem with dbm
- I had two freezes of Pardus 2008.2 Canis aureus with the new KDE 4.2.0 (not sure yet, what caused this - one was during the “make test” - I hope my HD is still ok)
- the “make test” :-)

But it works now - the first Hello world in new syntax:

./python3.0
Python 3.0 (r30:67503, Feb 1 2009, 21:41:15)
[GCC 4.3.2] on linux2
Type “help”, “copyright”, “credits” or “license” for more information.

>>> print(’Hello world’)
Hello world
[34091 refs]

>>> print ‘now with an error’
File ““, line 1
print ‘now with an error’
^
SyntaxError: invalid syntax
[34128 refs]

>>> import os
[34076 refs]
>>> print (os.name)
posix
[34093 refs]
>>> dir(os)
[’EX_CANTCREAT’, ‘EX_CONFIG’, ‘EX_DATAERR’, ‘EX_IOERR’, ‘EX_NOHOST’, ‘EX_NOINPUT’, ‘EX_NOPERM’, ‘EX_NOUSER’, ‘EX_OK’, ‘EX_OSERR’, ‘EX_OSFILE’, ‘EX_PROTOCOL’, ‘EX_SOFTWARE’, ‘EX_TEMPFAIL’, ‘EX_UNAVAILABLE’, ‘EX_USAGE’, ‘F_OK’, ‘MutableMapping’, ‘NGROUPS_MAX’, ‘O_APPEND’, ‘O_ASYNC’, ‘O_CREAT’, ‘O_DIRECT’, ‘O_DIRECTORY’, ‘O_DSYNC’, ‘O_EXCL’, ‘O_LARGEFILE’, ‘O_NDELAY’, ‘O_NOATIME’, ‘O_NOCTTY’, ‘O_NOFOLLOW’, ‘O_NONBLOCK’, ‘O_RDONLY’, ‘O_RDWR’, ‘O_RSYNC’, ‘O_SYNC’, ‘O_TRUNC’, ‘O_WRONLY’, ‘P_NOWAIT’, ‘P_NOWAITO’, ‘P_WAIT’, ‘R_OK’, ‘SEEK_CUR’, ‘SEEK_END’, ‘SEEK_SET’, ‘TMP_MAX’, ‘WCONTINUED’, ‘WCOREDUMP’, ‘WEXITSTATUS’, ‘WIFCONTINUED’, ‘WIFEXITED’, ‘WIFSIGNALED’, ‘WIFSTOPPED’, ‘WNOHANG’, ‘WSTOPSIG’, ‘WTERMSIG’, ‘WUNTRACED’, ‘W_OK’, ‘X_OK’, ‘_Environ’, ‘__all__’, ‘__builtins__’, ‘__doc__’, ‘__file__’, ‘__name__’, ‘__package__’, ‘_copyreg’, ‘_execvpe’, ‘_exists’, ‘_exit’, ‘_get_exports_list’, ‘_keymap’, ‘_make_stat_result’, ‘_make_statvfs_result’, ‘_pickle_stat_result’, ‘_pickle_statvfs_result’, ‘_putenv’, ‘_spawnvef’, ‘_unsetenv’, ‘_wrap_close’, ‘abort’, ‘access’, ‘altsep’, ‘chdir’, ‘chmod’, ‘chown’, ‘chroot’, ‘close’, ‘closerange’, ‘confstr’, ‘confstr_names’, ‘ctermid’, ‘curdir’, ‘defpath’, ‘device_encoding’, ‘devnull’, ‘dup’, ‘dup2′, ‘environ’, ‘errno’, ‘error’, ‘execl’, ‘execle’, ‘execlp’, ‘execlpe’, ‘execv’, ‘execve’, ‘execvp’, ‘execvpe’, ‘fchdir’, ‘fchmod’, ‘fchown’, ‘fdatasync’, ‘fdopen’, ‘fork’, ‘forkpty’, ‘fpathconf’, ‘fstat’, ‘fstatvfs’, ‘fsync’, ‘ftruncate’, ‘getcwd’, ‘getcwdb’, ‘getegid’, ‘getenv’, ‘geteuid’, ‘getgid’, ‘getgroups’, ‘getloadavg’, ‘getlogin’, ‘getpgid’, ‘getpgrp’, ‘getpid’, ‘getppid’, ‘getsid’, ‘getuid’, ‘isatty’, ‘kill’, ‘killpg’, ‘lchown’, ‘linesep’, ‘link’, ‘listdir’, ‘lseek’, ‘lstat’, ‘major’, ‘makedev’, ‘makedirs’, ‘minor’, ‘mkdir’, ‘mkfifo’, ‘mknod’, ‘name’, ‘nice’, ‘open’, ‘openpty’, ‘pardir’, ‘path’, ‘pathconf’, ‘pathconf_names’, ‘pathsep’, ‘pipe’, ‘popen’, ‘putenv’, ‘read’, ‘readlink’, ‘remove’, ‘removedirs’, ‘rename’, ‘renames’, ‘rmdir’, ’sep’, ’setegid’, ’seteuid’, ’setgid’, ’setgroups’, ’setpgid’, ’setpgrp’, ’setregid’, ’setreuid’, ’setsid’, ’setuid’, ’spawnl’, ’spawnle’, ’spawnlp’, ’spawnlpe’,’spawnv’, ’spawnve’, ’spawnvp’, ’spawnvpe’, ’stat’, ’stat_float_times’, ’stat_result’, ’statvfs’, ’statvfs_result’, ’strerror’, ’symlink’, ’sys’, ’sysconf’, ’sysconf_names’, ’system’, ‘tcgetpgrp’, ‘tcsetpgrp’, ‘times’, ‘ttyname’, ‘umask’, ‘uname’, ‘unlink’, ‘unsetenv’, ‘urandom’, ‘utime’, ‘wait’, ‘wait3′, ‘wait4′, ‘waitpid’, ‘walk’, ‘write’]
[34322 refs]

callgraphs of some Pardus applications

Sunday, February 1st, 2009




a short glimpse with the help of Python Call Graph

application version without
std lib
with
std lib
package-manager 1.4.0 package manager without standard library package manager with standard library
firewall-config 2.0.4 firewall-config_without_std_library.jpg firewall-config.jpg
kaptan 3.5.4 firewall-config_without_std_library.jpg kaptan.jpg
user-manager 2.2 user-manager_without_std_library.jpg user-manager.jpg
network-manager 2.1.6 network-manager.jpg
network-applet 0.5 network-applet_without_std_library.jpg network-applet.jpg
service-manager 2.0.3 service-manager.jpg
pm-install 0.0.1 pm-install_without_std_library.jpg pm-install.jpg
display-manager 0.3.7 display-manager_without_std_library.jpg display-manager.jpg
boot-manager 1.0.1 boot-manager.jpg
history-manager 0.1.1 history-manager.jpg
migration 0.8.5 migration.jpg
migration-users 0 migration-users.jpg

Pardus 2008.2 RC2
KDE 3.5.10
Qt: 3.3.8b
Python Call Graph 0.5.1
Python 2.5.4 (r254:67916, Jan 19 2009, 11:26:32)


Pardus gnome and more gui test tools which use assistive technologies

Sunday, February 1st, 2009

Do you know ldtp (Linux Desktop (GUI Application) Testing Project) ? After dogtail, let’s try this testing tool with Pardus Gnome. Recording scripts work. But playing the recorded scripts does not work from start completely (same prob also with dogtail). E.g. one needs to add more lines at begin. And for a person not having yet worked with the test tool it would be nice if the first try does not involve to look in the manuals.

ldtpeditor and starting gedit and trying to play

ldtpeditor and starting gedit and trying to play

What does one expect, nothing comes for free in life - especially since the test tools are not originally supported for Pardus. But support from #ldtp (and as has been previously in #dogtail) left a very positive impression.

More gui test tools which use at-spi you can find here. Here is a table which compares dogtail and ldtp. Todo: try out strongwind. In any case in your exploration install also accerciser.

ldtp 1.4.0
Pardus 2008.2 Canis aureus
Gnome 2.22.3

P.S. after showing this post in #ldtp to Nagappan Alagappan he already asked that I send him the script for further analysis. Very positive impression. Yesterday also: when I came with this unsupported Linux distro, he asked for a virtual image to try himself, debugged with me, so that we got ldtpeditor running. Keep up the good work !

Pardus GNOME Project + dogtail = ?

Saturday, January 24th, 2009

Will dogtail run 100% successfully on Pardus Gnome ?

After viewing the videos of dogtail this called for a test drive. On Pardus: so far dogtail’s framework can be used, but the GUI test features do not work right from the start :-(

1. Unfortunately Pardus seems not yet included as target platform:
import distro
File “/usr/lib/python2.5/site-packages/dogtail/distro.py”, line 320, in
distro = detectDistro()
File “/usr/lib/python2.5/site-packages/dogtail/distro.py”, line 316, in detectDistro
raise DistributionNotSupportedError(”Unknown”)
DistributionNotSupportedError: unprintable DistributionNotSupportedError object>

Would be great if Pardus gets added to the list such as: Suse, Fedora, Redhat, Ubuntu, Debian, Gentoo, Slackware, Solaris.

2. The other problem was that the same user could not log into Gnome anymore when assistive technologies (in Gnome/Pardus) was activated. Using at-spi version 1.24.0 helped here.

Below you see the script recorder which recorded as Python code the start of Pardus’ package manager:

script recorder with started package manager and AT-SPI Browser

It would be great if an OS which is based mostly on Python can integrate more Python testing tools right from the start. Let’s see if there is some further progress with at-spi and kde. Worth a look: for KDE testing tools, more testing tools in python

Thanks again Zack Cerza for your help in #dogtail,
Erkan

dogtail 0.6.90
Pardus 2008.2 rc2
Gnome 2.22.3

Helping open source software - what is your progress ?

Thursday, July 12th, 2007

Open Source Software helfen - wie ist dein Fortschritt ?

Ich hatte vor genau 2 Monaten gefragt:
Wann war das letzte Mal, dass du dabei geholfen hast, Open Source Software besser zu machen ?

Also, was hast du seitdem gemacht ?
Ich habe z.B. beschlossen, vermehrt diesen Projekten in meiner Freizeit zu helfen:
ClamWin -
ein Antiviren Programm (mit Unterstützung von ClamAV)
ClamWin

Pardus -
eine Linux Distribution (beinhaltet viele Dinge, auch KlamAV)
hier die Geschichte, wie es dazu kam
Pardus

Sag mal, hast du auch irgendwo mitgeholfen ? Falls nicht, wieso fängst du denn nicht endlich damit an ?

Wir sehen uns hoffentlich in einem der obigen oder der anderen Projekte,
Erkan YILMAZ

Why don’t you use Pardus ?

Sunday, July 8th, 2007

Warum benutzt du nicht Pardus ?

Mein Bruder ist ein grosser Fan der Linux Distribution Pardus (Pardus-Kurulan-2007.2-RC.iso) und ich bin ein grosser Fan jeglicher Arten von Katzen (siehe das Bild am Ende des Beitrags und Punkt 7 meiner About Seite).
Also dachte ich, ich gebe meinen anderen Linux Distributionen einen weiteren Gefährten …

Die Wahrheit ist … ich kam zunächst nicht so weit. Bei Beginn der Installation war mein Bildschirm plötzlich schwarz. Ich habe die verschiedenen angebotenen Installationsoptionen versucht, aber keines davon funktionierte :-(
Google verriet, dass einige Benutzer auch dieses Problem hatten (mehr dazu am Ende des Artikels). Die Installation konnte trotzdem mit der nachträglich eingefügten Boot-Option xorg=safe fortgesetzt werden.

Nun, im Vergleich zu solchen Fehlern könnte eine unbehandelte Ausnahme weniger dramatisch erscheinen:
unhandled_exception_occured_when_pressing_help_mini

Nach der Installation war mein Problem nun, die Grafikkarte mit einer guten Frequenz einzurichten (z.B. unter Windows, Mandriva kann man gleich 75 Hz mit 1152×864 einstellen, aber unter Pardus habe ich bisher nur 60 Hz zur Verfügung). Neue ATI Treiber downzuloaden konnte das Problem nicht lösen und das ATI Catalyst Control Center (amdccle) will gar nicht starten (es lädt und lädt und entscheidet dann, nicht aufzutauchen). Nun, ich benutze im Moment 1024×768 mit 85 Hz :-(

Pardus_screenshot_1024_786_resized

Aber ich werde hier definitiv weiter forschen. Ich mag diese Distribution und… mein Bruder hat einige überzeugende Argumente für Pardus. Vielleicht tausche ich mit ihm die Hardware :-)

Erkan YILMAZ

Nachtrag 2007-07-11: höhere Auflösung: Ich habe nun 75 Hz bei 1152×864 :-) und die Entwickler haben ein paar Fehlerberichte im Bugzilla
Nachtrag 2007-07-14: unbehandelte Ausnahme: ist jetzt in Pardus 2007.2 gefixt
Nachtrag 2007-07-18: schwarzer Bildschirm: Ein Entwickler meinte, dies sei wohl ein Treiber-Problem. Zorg hatte die Videokarte erkannt und die xorg.conf richtig konfiguriert. Entweder kann der Treiber das Ausgabegerät nicht erkennen oder es initiiert nicht korrekt.


Free Blog Counter