Edgewall Software
Modify

Opened 18 years ago

Closed 16 years ago

#5172 closed defect (worksforme)

trac-admin initenv: ProgrammingError: argument formats can't be mixed

Reported by: h.goebel@… Owned by: Christopher Lenz
Priority: normal Milestone:
Component: admin/console Version: 0.10.3.1
Severity: blocker Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

When trying to init a new trac-instanc, I get

ProgrammingError: argument formats can't be mixed

> trac-admin ~/trac/myproject initenv
...
Creating and Initializing Project
Failed to create environment. argument formats can't be mixed
Traceback (most recent call last):
  File "/home/XXX/trac/lib/python/trac/scripts/admin.py", line 613, in do_initenv
    options=options)
  File "/home/XXX/trac/lib/python/trac/env.py", line 130, in __init__
    setup_participant.environment_created()
  File "/home/XXX/trac/lib/python/trac/env.py", line 364, in environment_created
    vals)
  File "/home/XXX/trac/lib/python/trac/db/util.py", line 57, in executemany
    return self.cursor.executemany(sql_escape_percent(sql), args)
  File "/home/XXX/trac/lib/python/trac/db/util.py", line 57, in executemany
    return self.cursor.executemany(sql_escape_percent(sql), args)
ProgrammingError: argument formats can't be mixed
Failed to initialize environment. 1
Traceback (most recent call last):
  File "/home/XXX/trac/lib/python/trac/scripts/admin.py", line 617, in do_initenv
    sys.exit(1)
SystemExit: 1

Attachments (0)

Change History (2)

comment:1 by anonymous, 18 years ago

The problem occured when using psycopg2.

After I replaced it with pyPgSQL, the problem was gone. Thus it seams to be a problem in conjunction with psycopg2.

comment:2 by Remy Blank, 16 years ago

Resolution: worksforme
Status: newclosed

We would need much more information to be able to debug that (assuming it is still a problem). Please reopen with more information if the problem still occurs.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christopher Lenz.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Christopher Lenz to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.