Since paster is not
compatible with python 3, I need an alternative.
I want to create a python package with a nested namespace. The package
name and the first namespace should be the same all the time. For
example my.monitoring. The next namespace should be flexible, to
generate my.monitoring.solr, or my.monitoring.mysql. Some boilerplate
code should be created and at least one script should be generated on
installation of the new packages. The script generation is done by
entry_points console_script in setup.py
if [ ! -d venv ] ; then
virtualenv --python=python2.7 venv
fi
source venv/bin/activate
export PYTHONPATH="$PWD:$PYTHONPATH"
pip install pylint
cd repo
### Need this because some strange control sequences when using default TERM=xterm
export TERM="linux"
## || exit 0 because pylint only exits with 0 if everything is correct
pylint --rcfile=pylint.cfg $(find . -maxdepth 1 -name "*.py" -print) MYMODULE/ > pylint.log || exit 0
Add the Violation reporting
Jenkins -> MyJob -> Configure
Add post-build Action -> Report Violations
Filled the field pylint with the pattern **/pylint.log
So the next build also performed the pylint run, and generated the
report with graphs.
... with the list of source files.
Unfortunately, on click onto the filename, I got an empty page, where I
expected the source view, including detected warnings and errors.
I quick search on the jenkins server showed the xml results of the
pylint run. The xml was valid, and seemed to be correct. So the
reneration of the report should not be the problem.
A web search just gave me some defects, similar to my problem, but the
tickets all are still open. So I digged around in the Violations
cofiguration in MyJob. Just by "educated guess", I filled the field
"Source Path Pattern" with **/
et voila, the the results for each file were available after the next
build.
Maybe just because I did not update that often in the last weeks, I ran
into this error:
# pacman -Suy
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
multilib is up to date
error: failed to prepare transaction (could not satisfy dependencies)
:: Starting full system upgrade...
:: poppler-qt: requires poppler=0.22.5
First updating poppler-qt, or to be more exact poppler-qt4, and
poppler-glib solved the problem.
# pacman -S poppler-qt
resolving dependencies...
looking for inter-conflicts...
:: poppler-qt4 and poppler-qt are in conflict. Remove poppler-qt? [y/N] y
error: failed to prepare transaction (could not satisfy dependencies)
:: poppler-glib: requires poppler=0.22.5
# pacman -S poppler-qt poppler-glib
resolving dependencies...
looking for inter-conflicts...
:: poppler-qt4 and poppler-qt are in conflict. Remove poppler-qt? [y/N] y
Packages (4): poppler-0.24.0-1 poppler-qt-0.22.5-1 [removal]
poppler-glib-0.24.0-1 poppler-qt4-0.24.0-1
Total Download Size: 1.18 MiB
Total Installed Size: 5.90 MiB
Net Upgrade Size: 0.08 MiB
:: Proceed with installation? [Y/n]
:: Retrieving packages ...
poppler-0.24.0-1-x86_64 922.3 KiB 657K/s 00:01 [----------------------] 100%
poppler-qt4-0.24.0-... 130.0 KiB 395K/s 00:00 [----------------------] 100%
poppler-glib-0.24.0... 158.3 KiB 697K/s 00:00 [----------------------] 100%
(3/3) checking keys in keyring [----------------------] 100%
(3/3) checking package integrity [----------------------] 100%
(3/3) loading package files [----------------------] 100%
(3/3) checking for file conflicts [----------------------] 100%
(4/4) checking available disk space [----------------------] 100%
(1/1) removing poppler-qt [----------------------] 100%
(1/3) upgrading poppler [----------------------] 100%
(2/3) installing poppler-qt4 [----------------------] 100%
(3/3) upgrading poppler-glib [----------------------] 100%
Currently I'm working on a MacBook. Not entirely by choice, however.
I'm trying to use my almost used environment, including tmux. As
Terminal replacement I'm using iTerm2, since it seems to be faster.
Unfortunately I was not able to use ALT-[left|right] to jump words
backward and forward. The only thing I had to do to solve this...
capturing the sequences of ALT-left and ALT-right and place them into
~/.inputrc
# Press ALT-left
$ read
^[^[[D
# and ALT-right
$ read
^[^[[C
$ vi ~/.inputrc
"\e\e[D": backward-word
"\e\e[C": forward-word
Neues aus der Rubrik "Die sprechenste Fehlermeldung des Tages":
$ mplayer -dumpstream dvb:// -dumpfile test.ts
MPlayer SVN-r36285-4.8.0 (C) 2000-2013 MPlayer Team
Cannot test OS support for SSE, disabling to be safe.
205 audio & 424 video codecs
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
Playing dvb://.
DVB CONFIGURATION IS EMPTY, exit
Failed to open dvb://.
Selbstverständlich bedeutet diese Meldung nicht, dass es keine Datei
~/.mplayer/channels.conf gibt. Oder selbige vielleicht leer ist.
Mitnichten. In Wirklichkeit ist selbstverständlich gemeint, dass mein
Benutzer keinen Zugriff auf /dev/dvb/adapter0 hat.
"errors": {
"project": "Not given or wrong type",
"team": "Not given or wrong type"
},
Erst einmal ist es blöd, dass die API mir nicht sagt ob ich den
Parameter nun nicht angegeben oder ihn falsch gesetzt habe. Egal welche
Kombination und Typen ich übergebe, die Meldung bleibt die selbe. Auch
wenn ich die Parameter weg lasse.
Da bleibt wieder einmal nichts anderes übrig, als das Code-Repo zu
suchen und den Codo zu durchforsten. Stellt sich heraus... die
Parameter müssen id und projectid heißen.
Ich habe mein Script fm4.py nach
Änderungen auf House Of
Pain-Seite angepasst.
Das Script dient dazu die neuste Folge von House Of
Pain aus der Seite zu
pulen. Als Beispiel ist der alte Code nach wie vor enthalten und
funktioniert auch noch. Allerdings wird in der
Playlist als
letzter Eintrag die Show vom 03.04.2013 geliefert.