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

I asked exactly 2 months ago this question:
When was the last time you helped to make open source software better ?

So, what did you do since then ?
I have decided to e.g. help these projects primarily in my free time:
ClamWin -
a free antivirus tool (with support from ClamAV)
ClamWin

Pardus -
a Linux distribution (includes many things, also KlamAV)
here the story how it came to this
Pardus

Tell me, did you also help somewhere ? If not, why don’t you start finally ?

See you perhaps in one of the above or the other projects,
Erkan YILMAZ

Why don’t you use Pardus ?

Sunday, July 8th, 2007

My brother is a great fan of the Linux distribution Pardus (Pardus-Kurulan-2007.2-RC.iso) and I am a great fan of any sorts of cats (see picture at end of posting and my about page point 7).
So I thought, let my other Linux have another companion …

Truth is … I didn’t come so far initially. At the begin of the installation my screen went black. I tried then also the different offered install options, but none of them worked :-(
Google revealed, that some users also had this problem (more info at the end of the article). The installation could go on anyway, when adding the boot option xorg=safe.

Well, in comparison to such an error an unhandled exception might appear less dramatic:
unhandled_exception_occured_when_pressing_help_mini

After installation, my problem was now to set up the graphics card with a good frequency (e.g. in Windows, Mandriva to set up 75 Hz with 1152×864 is possible from start, but in Pardus I have so far only 60 Hz ). Downloading new ATI drivers could not fix this problem and the ATI Catalyst Control Center (amdccle) does not want to start at all (it loads and loads and then it decides to not show). Well, I just use for the moment 1024×768 with 85 Hz :-(

Pardus_screenshot_1024_786_resized

But I will definitely investigate here more. I like this distribution and… my brother has some convincing arguments for Pardus. Perhaps I switch with him the hardware :-)

Erkan YILMAZ

edit 2007-07-11: higher resolution: I have now 75 Hz with 1152×864 :-) and the developers have some bug reports in Bugzilla
edit 2007-07-14: unhandled exception: is fixed now in Pardus 2007.2
edit 2007-07-18: black screen: one developer told this seems to be a driver bug. Zorg had identifed the videocard
and configured xorg.conf correctly. Either the driver can not identify the output device or it does not init correctly.


Free Blog Counter