#91 closed defect (fixed)
bitten upgrade broken with 0.9.x-branch opt trunk from trac
Reported by: | sven.reimers@… | Owned by: | cmlenz |
---|---|---|---|
Priority: | major | Milestone: | 0.5.1 |
Component: | Trac plugin | Version: | dev |
Keywords: | db upgrade | Cc: | |
Operating System: |
Description
Trying to use bitten trunk leads to difficulties setting up new repository if used with sqlite or postgres.
Using 0.9.x branch -> Command failed: 'module' object has no attribute 'get_cnx_pool' with postgres (--no-backup) Using trunk -> Command failed: 'psycopg2._psycopg.connection' object has no attribute 'to_sql' (postgres)
-> Command failed: 'to_sql' (sqlite)
I got no clue what is going on, but it seems as if bitten is trying to use wrong object to call to_sql on (not the wrapper but the real connection)
Attachments (1)
Change History (6)
comment:1 Changed 19 years ago by cmlenz
- Resolution set to fixed
- Status changed from new to closed
comment:2 Changed 19 years ago by sven.reimers@…
- Resolution fixed deleted
- Status changed from closed to reopened
I have the latest from trac trunk and bitten trunk and tried the bitten 0.5.x branch as well - still getting the upper error messages
comment:3 Changed 19 years ago by sven.reimers@…
I think i may have found what crashes:
def environment_created(self): # Create the required tables print "Trying to create environment" db = self.env.get_db_cnx() cursor = db.cursor() for table in schema: for stmt in db.to_sql(table): cursor.execute(stmt)
The db.to_sql(table) seems to be broken
comment:4 Changed 19 years ago by sven.reimers@…
Using the attached patch, I successfully upgraded a plain vanilla empty trac environment to use the bitten plugin (both trunk versions). Thx for your patience.
comment:5 Changed 19 years ago by cmlenz
- Operating System Windows deleted
- Resolution set to fixed
- Status changed from reopened to closed
This has already been fixed in [333] and [335].