Can't run dbqp on rhel 5.5

Bug #727506 reported by Lee Bieber
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Drizzle
In Progress
High
Patrick Crews
7.0
Won't Fix
High
Patrick Crews
7.1
Won't Fix
High
Patrick Crews

Bug Description

on our redhat 5.5 machine (ssh <user>@174.143.242.214)

[hudson@rhel-5 drizzle-build-rhel-5.5-64bit]$ make test-dbqp
( make && cd tests && .././tests/dbqp.py --top-srcdir=../. --top-builddir=../. --reorder --basedir=../. --testdir=.././tests --workdir=.././tests/workdir --fast --force --suite=main,bool_type,cast,ddl_transactions,execute,flush_tables,identifiers,jp,mysql_compatibility,regression,tamil,time_type,unsigned_integer_type,uuid_type,microtime_type,utility_functions,utility_dictionary,user_locks,trigger_dictionary,transaction_log,tableprototester,table_cache_dictionary,string_functions,storage_engine_api_tester,status_dictionary,sleep,simple_user_policy,show_schema_proto,show_dictionary,session_dictionary,schema_engine,schema_dictionary,rot13,replication_dictionary,registry_dictionary,rand_function,performance_dictionary,mysql_protocol,myisam,memory,logging_stats,innobase,information_schema_dictionary,hello_world,hello_events,function_dictionary,filtered_replicator,error_dictionary,errmsg_stderr,debug,crc32,collation_dictionary,catalog,blackhole,auth_test,auth_file,archive, )
make[1]: Entering directory `/home/hudson/hudson/workspace/drizzle-build-rhel-5.5-64bit'
make all-recursive
make[2]: Entering directory `/home/hudson/hudson/workspace/drizzle-build-rhel-5.5-64bit'
Making all in .
make[3]: Entering directory `/home/hudson/hudson/workspace/drizzle-build-rhel-5.5-64bit'
rm -f -f tests/test-run
ln -s test-run.pl tests/test-run
make[3]: Leaving directory `/home/hudson/hudson/workspace/drizzle-build-rhel-5.5-64bit'
Making all in po
make[3]: Entering directory `/home/hudson/hudson/workspace/drizzle-build-rhel-5.5-64bit/po'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/hudson/hudson/workspace/drizzle-build-rhel-5.5-64bit/po'
make[2]: Leaving directory `/home/hudson/hudson/workspace/drizzle-build-rhel-5.5-64bit'
make[1]: Leaving directory `/home/hudson/hudson/workspace/drizzle-build-rhel-5.5-64bit'
  File ".././tests/dbqp.py", line 81
    finally:
          ^
SyntaxError: invalid syntax
make: *** [test-dbqp] Error 1

Related branches

Changed in drizzle:
status: New → Confirmed
importance: Undecided → High
assignee: nobody → Patrick Crews (patrick-crews)
Revision history for this message
Lee Bieber (kalebral-deactivatedaccount) wrote :

Still a problem after trying with the above fix:

Traceback (most recent call last):
  File ".././tests/dbqp.py", line 39, in ?
    from lib.sys_mgmt.system_management import systemManager
  File "/home/hudson/hudson/workspace/drizzle-build-rhel-5.5-64bit/tests/lib/sys_mgmt/system_management.py", line 37, in ?
    from uuid import uuid4
ImportError: No module named uuid
make: *** [test-dbqp] Error 1
[hudson@rhel-5 drizzle-build-rhel-5.5-64bit]$

Revision history for this message
Patrick Crews (patrick-crews) wrote :

Thanks to derks for pointing out that uuid wasn't added until python 2.4 I'll have a solution for this, but how far behind is red hat with python 2.4? Don't they want try/except/finally, uuid, indoor plumbing and lights? ; )

Revision history for this message
BJ Dierkes (derks) wrote :

Minor correction to the above, uuid was introduced in 2.5. RedHat doesn't generally backport features unless absolutely necessary. That said, I just checked and uuid is a package in PyPi, and there is a python-uuid package in EPEL for python 2.4. You can simply install python-uuid from EPEL 5 and it should resolve this one.

Revision history for this message
Patrick Crews (patrick-crews) wrote :

Just threw the uuid module into the lib dir. Didn't want to place any requirement burdens on the user if it can be avoided.

Revision history for this message
Lee Bieber (kalebral-deactivatedaccount) wrote :

Still have problems, please run the complete test suite on rhel before commiting next patch (ssh pcrews@174.143.242.214)

make[1]: Leaving directory `/home/hudson/hudson/workspace/drizzle-build-rhel-5.5-64bit'
Traceback (most recent call last):
  File ".././tests/dbqp.py", line 39, in ?
    from lib.sys_mgmt.system_management import systemManager
  File "/home/hudson/hudson/workspace/drizzle-build-rhel-5.5-64bit/tests/lib/sys_mgmt/system_management.py", line 43, in ?
    from lib.sys_mgmt.logging_management import loggingManager
  File "/home/hudson/hudson/workspace/drizzle-build-rhel-5.5-64bit/tests/lib/sys_mgmt/logging_management.py", line 38
    class loggingManager():
                         ^
SyntaxError: invalid syntax
make: *** [test-dbqp] Error 1
[hudson@rhel-5 drizzle-build-rhel-5.5-64bit]$

Revision history for this message
Patrick Crews (patrick-crews) wrote :

Setting to "won't fix". We need at least python 2.5 (prefer 2.6 or better).
Just one of those things

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.