Modify ↓
Opened 19 years ago
Closed 17 years ago
#5172 closed defect (worksforme)
trac-admin initenv: ProgrammingError: argument formats can't be mixed
| Reported by: | 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 , 19 years ago
comment:2 by , 17 years ago
| Resolution: | → worksforme |
|---|---|
| Status: | new → closed |
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.
Note:
See TracTickets
for help on using tickets.



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.