Sie sind nicht angemeldet.

Lieber Besucher, herzlich willkommen bei: GentooForum.de. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.

1

24.07.2013, 20:36

emma und TOra

Tach Experten.
Hat jemand emma und/oder TOra unter Gentoo zum laufen gebracht ?

http://freecode.com/screenshots/b5/9e/b5…5295_medium.png
http://torasql.com/Screenshots

Unter Ubuntu 13.04 emma und TOra laufen ohne Probleme.
Unter Gentoo 2013-07 beide weigern sich zu funzen

Quellcode

1
2
./emma
no gtk. you will not be able to start emma.


TOra zwar startet, doch zeigt pop-up-Fenster

Quellcode

1
2
No available connection provider
 (OK)
und lässt mich nicht zum MySQL Tabellen.

Unter Ubuntu ich habe es behoben wie hier erklärt
http://www.alexx.net/2012/06/tora-no-ava…n-provider.html
apt-get install libqt4-sql-mysql libqt4-sql-psql libqt4-sql-sqlite libqt4-sql-odbc libqt4-sql-tds

Unter Gentoo ich finde keine libqt4-sql-mysql

Quellcode

1
2
eix  libqt4-sql-mysql
No matches found.


Unter Ubuntu13.04 , apt-rdepends zeigt das da

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
apt-rdepends  emma
"emma" [shape=box];
"emma" -> "python";
"emma" -> "python-glade2";
"emma" -> "python-gtk2";
"emma" -> "python-mysqldb";
"emma" -> "python-support";

apt-rdepends  tora
"tora" [shape=box];
"tora" -> "libc6";
"tora" -> "libgcc1";
"tora" -> "libpq5";
"tora" -> "libqscintilla2-9";
"tora" -> "libqt4-network";
"tora" -> "libqt4-sql";
"tora" -> "libqt4-xml";
"tora" -> "libqtcore4";
"tora" -> "libqtgui4";
"tora" -> "libstdc++6";

Unter Gentoo

Quellcode

1
2
eix python-mysqldb
No matches found.


pip liefert das da, aber was wäre das richtige, wenn überhaupt irgend etwas ??

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
pip search mysql | grep -i python
MySQL-python              - Python interface to MySQL
cymysql                   - Python MySQL Driver powered by Cython
Based on python, GTK, sqlalchemy. It's split into a GUI and a very rich package to create
simplemysql               - An ultra simple wrapper for Python MySQLdb with very basic functionality
oursql                    - MySQL bindings for python.
umysql                    - Ultra fast MySQL driver for Python
mysql-connector-python    - MySQL driver written in Python
PySQLPool                 - Python MySQL Connection Pooling and MySQL Query management
simplestore               - A datastore layer built on top of MySQL in Python.
MySQLObject               - A Python class to convert a simple object in a MySQL connection driver.
SchemaObject              - Iterate over a MySQL database schema as a Python object.
PyMySQL                   - Pure Python MySQL Driver
PyDbLite                  - A pure-Python db engine + Pythonic interface to SQLite and MySQL
CURD.py                   - Tiny Python ORM for MySQL
PyMySQL3                  - Pure Python MySQL Driver
sqlShort                  - A tiny wrapper for the Python modules MySQLdb and Sqlite
dbadmin                   - A python wrapper to do some basic dbadmin options with mysql
mysql-replication         - Pure Python Implementation of MySQL replication protocol build on top of PyMYSQL.
mysql-connector-repackaged - MySQL driver written in Python


Kann jm weiter helfen ?

Im voraus besten dank an alle.

A.K.

2

24.07.2013, 21:05

Quellcode

1
2
3
4
5
antarctica andre # eix tora[I] dev-db/tora 
 Available versions:  2.1.1 (~)2.1.3-r1 (~)2.1.3-r2 **9999 {debug mysql oci8-instant-client oracle postgres} 
 Installed versions:  2.1.3-r2(21:04:29 24.07.2013)(mysql -debug -oci8-instant-client -oracle -postgres) 
 Homepage:            http://tora.sourceforge.net 
 Description:         TOra - Toolkit For Oracle



Bitte beachte die USE-Flags zu tora. Beispielsweise aktivierte ich mysql und nun kann ich eben diesen als "connection provider" verwenden.



A.
Sys:
AMD FX (tm)-6300 Six-Core Processor
GeForce GTX 650 1024MB
16384 MB DDR3 1600Mhz
ASUS M5A97 R2.0
Samsung SSD 830 (sys)

OS: Gentoo ~amd64
WM: i3
Kernel: vanilla-sources
VGA: nouveau
INIT: OpenRC :)

██ ██ █ ████ everything ███ █████ is █████ ████ ████ fine ████ ███ █ ██████ trust █████ ██████ ███ your █████ ████ government. Parts of this comment have been found in violation of H.R. 3261, S.O.P.A and Senate Bill 968, P.I.P.A. and have been censored for your benefit.

3

24.07.2013, 22:24

Vielen Dank

Quellcode

1
2
3
echo "dev-db/tora  mysql  postgres" >> /etc/portage/package.use
emerge --autounmask-write dev-db/tora
emerge -av dev-db/tora

Und jetzt sehe ich meine MySQL Tabellen mot TOra.

Hat jm Idee wie unter Gentooo auch emma kann zum laufen gebracht werden ?
Übrigens emma habe ich als Quelle runtergeladen, weil im Portage und Overlays emma gibt es nicht.

4

25.07.2013, 08:06

Übrigens emma habe ich als Quelle runtergeladen, weil im Portage und Overlays emma gibt es nicht.

Hm, ist damit

Quellcode

1
2
3
4
5
eix -e emma
* dev-java/emma
     Available versions:  2.0.5312-r2 {+launcher source ELIBC="FreeBSD"}
     Homepage:            http://emma.sourceforge.net/
     Description:         a free Java code coverage tooll
gemeint?

5

25.07.2013, 10:35

@josef.95: nein, das ist was anderes.

Ok.

1. Pack die Teile von http://www.fastflo.de/files/emma/downloads/python_src/emma-0.6.tar.gz aus
2. Editiere jeweils die 1. Zeile von emma und setup.py und mach aus

Quellcode

1
#!/usr/bin/python2.4
ein

Quellcode

1
#!/usr/bin/python

3. Überprüfe, ob du eine python-2 version als system python laufen hast

Quellcode

1
$ python --version
Wenn nicht, dann mach ein entsprechendes "eselect python". Wenn du das nicht magst, dann wird es eben ein bisschen anders (aber nicht unmöglich).
4. Gehe in das Verzeichnis und baue das Teil mit

Quellcode

1
2
3
$ cd WHERE/YOU/EXTRACTED/EMMA
$ python setup.py build
$ sudo python setup.py install

5. Done. Einfach "emma" auf der Shell eingeben ...

Beachte aber das die letzten Änderungen vom 24. Oktober 2006 sind. Das Projekt scheint tot zu sein ...
http://www.dyle.org
IM-Account (Jabber!) sind auf meiner HP ...
There is no place like /home

http://www.gentooforum.de
http://www.gentoofreunde.org

<div>how to annoy a web developer?</span>

6

28.07.2013, 14:49

@ Herr josef.95
Habe vergessen zu erwähnen, dass ich meine nicht dev-java/emma


@ Herr dyle

Quellcode

1
2
3
4
 md5sum "emma-0.6 (1).tar.gz"
da3bd1d1f4ee75d02a4c8637e28fd732  emma-0.6 (1).tar.gz
md5sum "emma-0.6.tar.gz" 
da3bd1d1f4ee75d02a4c8637e28fd732  emma-0.6.tar.gz
Vielleicht ich habe meine emma-0.6.tar.gz irgendwo anders runtergeladen, doch es scheint dass meine ist "echt genug" .

Habe beide Möglichkeiten versucht, aber emma zickt immer noch.
Jetzt bekomme ich so ein Driss (Mist) zu sehen.
Schon bekanntes no gtk. you will not be able to start emma. , aber jetzt noch einiges mehr.

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
emma 
no gtk. you will not be able to start emma.
/usr/lib/python2.7/site-packages/emmalib/__init__.py:91: GtkWarning: GtkSpinButton: setting an adjustment with non-zero page size is deprecated
  self.xml = gtk.glade.XML(self.glade_file)
Traceback (most recent call last):
  File "/usr/bin/emma", line 26, in <module>
    sys.exit(emmalib.start(sys.argv[1:]))
  File "/usr/lib/python2.7/site-packages/emmalib/__init__.py", line 3371, in start
    e = Emma()
  File "/usr/lib/python2.7/site-packages/emmalib/__init__.py", line 177, in __init__
    self.load_config()
  File "/usr/lib/python2.7/site-packages/emmalib/__init__.py", line 3033, in load_config
    self.add_mysql_host(name[len(prefix):], v[0], port, v[1], v[2], v[3])
  File "/usr/lib/python2.7/site-packages/emmalib/__init__.py", line 3115, in add_mysql_host
    host = mysql_host(self.add_sql_log, self.add_msg_log, name, hostname, port, user, password, database, self.config["connect_timeout"])
NameError: global name 'mysql_host' is not defined


Muss ich noch etwas emerge`n , oder mit pip installieren , damit emma läuft ?
pip search gtk liefert ~30 Ergebnisse, so dass ich bin nicht sicher welches wäre das fehlende.

7

28.07.2013, 15:33

Mhm ... bei mir hat es mit den Ausbesserungen auf Anhieb geflutscht.

Der eigentliche Fehler von dir ist aber ein

Quellcode

1
NameError: global name 'mysql_host' is not defined
. Das GtkWarning ist (noch) kein Grund zur Besorgnis. Allerdings bin ich im Moment nicht an diesem Rechner um das nochmals zu überprüfen.

Jedenfalls hast du mal einen python-updater durchlaufen lassen und mysql und gtk USE gesetzt?
http://www.dyle.org
IM-Account (Jabber!) sind auf meiner HP ...
There is no place like /home

http://www.gentooforum.de
http://www.gentoofreunde.org

<div>how to annoy a web developer?</span>

8

28.07.2013, 15:53

Muss ich noch etwas emerge`n , oder mit pip installieren , damit emma läuft ?

Hm, meinst du dieses mysteriöse dev-python/pip?
falls ja, dann vermeide es bitte mit diesen"easy_install" Tool dir python Software manuell am Paketmanager (portage) vorbei ins System zu schießen - denn damit kann man sich das gentoo-interne python sehr leicht kaputt machen.
Ein abschreckendes Beispiel (von vielen) --> http://forums.gentoo.org/viewtopic-t-964654.html

9

28.07.2013, 18:05

@ Herr Dyle

Quellcode

1
2
python --version
Python 2.7.3
und

Quellcode

1
2
3
4
eselect python list
Available Python interpreters:
  [1]   python2.7 *
  [2]   python3.2

Nee , hab ich nicht python-updater durchlaufen lassen, aber bei mir gibt es keine Python USE Flags mysql und gtk.

Quellcode

1
2
3
4
eix dev-lang/python
...
Installed versions:  2.7.3-r3(2.7)(09:25:10 AM 07/02/2013)(gdbm ipv6 ncurses readline sqlite ssl threads wide-unicode xml -berkdb -build -doc -elibc_uclibc -examples -hardened -tk -wininst)
...

Kannst Du bitte Deine eix dev-lang/python und/oder package.use zeigen ?


@ Herr josef.95
Vielen Dank, ich hätte gleich dev-python/robotframework durch pip installiert,
jetzt aber ich mache es lieber durch

Quellcode

1
emerge dev-python/robotframework

10

02.08.2013, 10:57

Habe mein System ausgeputzt und jetzt laufe ich auch in dieses Problem ... *hehe*

Das Grundübel dabei ist daber nicht gtk sonder mysql. Das kannst du mal auf einer Shell ganz einfach nachmachen:

Quellcode

1
2
3
4
5
6
7
8
9
$ python 
Python 2.7.5 (default, Aug  1 2013, 00:06:24) 
[GCC 4.7.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import mysql_host
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named mysql_host
>>>


Also irgendwo gibt es ein Python package namens "mysql_host" ... hm ... ich guck noch ...
http://www.dyle.org
IM-Account (Jabber!) sind auf meiner HP ...
There is no place like /home

http://www.gentooforum.de
http://www.gentoofreunde.org

<div>how to annoy a web developer?</span>

11

02.08.2013, 11:12

Update (eigene Post, weil wichtig): dieses Modul "mysql_host" ist Teil von emma.

Der Fehler wird in der /usr/lib/python2.7/site-packages/emmalib/__init__.py geworfen und zwar in diesen Zeilen (30ff)

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
try:
	import gtk
	from gtk import keysyms
	import gobject
	import gtk.gdk
	import gtk.glade
	if __name__ != "__main__":
		from emmalib import __file__ as emmalib_file
		from emmalib.mysql_host import *
		from emmalib.mysql_query_tab import *
	else:
		emmalib_file = __file__
		from mysql_host import *
		from mysql_query_tab import *
except:
	print "no gtk. you will not be able to start emma."


Punkt ist: er versucht mysql_host.py und dann mysql_query_tab aus dem gleichen Verzeichnis wie emmalib selbst zu laden und schafft das nicht.

@Kurmis: willst du weiter graben? Wenn nicht, dann spar ich mir die Mühe mal auf oder du kannst selbst genug python und nimmst das selbst in die Hand ...
http://www.dyle.org
IM-Account (Jabber!) sind auf meiner HP ...
There is no place like /home

http://www.gentooforum.de
http://www.gentoofreunde.org

<div>how to annoy a web developer?</span>

Ähnliche Themen