Ticket #4 (closed Defect: Fixed)

Opened 14 months ago

Last modified 13 months ago

openxcap will not start

Reported by: nmattiello Owned by: admin
Priority: Minor Milestone:
Component: Interoperability Version:
Severity: Critical Keywords:
Cc:

Description

i get this trying to start openxcap

Starting Open XCAP 0.9.0 Traceback (most recent call last):

File "./openxcap", line 56, in ?

from xcap.server import XCAPServer

File "/root/openxcap/xcap/server.py", line 16, in ?

from twisted.web2 import channel, resource, http, responsecode, server

File "/usr/lib/python2.4/site-packages/twisted/web2/channel/init.py", line 7, in ?

from twisted.web2.channel.cgi import startCGI

File "/usr/lib/python2.4/site-packages/twisted/web2/channel/cgi.py", line 8, in ?

from twisted.web2 import http, http_headers, server, responsecode

File "/usr/lib/python2.4/site-packages/twisted/web2/http.py", line 27, in ?

from twisted.web2 import iweb

File "/usr/lib/python2.4/site-packages/twisted/web2/iweb.py", line 58, in ?

class IOldNevowResource(components.Interface):

AttributeError: 'module' object has no attribute 'Interface'

i think it has something to do with the versions of zope and twisted. not sure what the right combination is.

Change History

follow-up: ↓ 2   Changed 14 months ago by admin

OpenXCAP works with the latest version of Twisted Web2. You can either get it from the twisted SVN on twistedmatrix.com, or if you're using Debian Linux, make sure you have the latest version of python-twisted-web2 from the public repository.

in reply to: ↑ 1 ; follow-up: ↓ 3   Changed 14 months ago by nmattiello

Replying to admin:

OpenXCAP works with the latest version of Twisted Web2. You can either get it from the twisted SVN on twistedmatrix.com, or if you're using Debian Linux, make sure you have the latest version of python-twisted-web2 from the public repository.

im using twisted core 2.5.0 and web2 0.2.0. is there a newer web2?

in reply to: ↑ 2 ; follow-up: ↓ 4   Changed 14 months ago by admin

  • owner changed from Mircea Amarascu to mircea
  • status changed from new to assigned

Replying to nmattiello:

im using twisted core 2.5.0 and web2 0.2.0. is there a newer web2?

Yes, the latest version in debian for web2 is 0.2.0+svn20070403-1 (and for twisted-core is 2.5.0-2).

in reply to: ↑ 3   Changed 14 months ago by nmattiello

Replying to admin:

Yes, the latest version in debian for web2 is 0.2.0+svn20070403-1 (and for twisted-core is 2.5.0-2).

ok, i was finally able to check out from twisted's svn after some firewall issues and got the web2 from there. that seemed to work, but now i get:

File "/root/openxcap/xcap/dbutil.py", line 65, in connectionForURI

raise AssertionError("Database scheme '%s' is not supported." % scheme)

NameError: global name 'scheme' is not defined

  Changed 14 months ago by nmattiello

scratch that last comment. i downloaded the newer openxcap and now get:

File "/usr/lib/python2.4/site-packages/xcap/interfaces/backend/database.py", line 33, in ?

configuration = ConfigFile('config.ini')

NameError: name 'ConfigFile' is not defined

im assuming i dont have the file that defines ConfigFile. where would it be?

  Changed 14 months ago by admin

  • owner changed from mircea to admin
  • status changed from assigned to accepted

OpenXCAP 0.9.3 depends on python-application 1.0.9 so you must update that too. If you're using Debian, you can apt-get install python-application (the package is in the public repository), otherwise you can take it from here: http://download.dns-hosting.info/OpenXCAP/

  Changed 14 months ago by nmattiello

ok, i installed the newer python-application correctly this time. im back to the unsupported database schema error. i looked at database.py and theres a couple things ive noticed:

I get the error "global name 'scheme' not defined" because of this code: def connectionForURI(uri):

"""Return a Twisted adbapi connection pool for a given database URI.""" schema, user, password, host, port, path, args = parseURI(uri) try:

module = db_modules[schema]

except:

raise AssertionError("Database scheme '%s' is not supported." % scheme)

In the "raise" statement, i think instead of 'scheme' you want 'schema'.

additionally, the only schemas i see support for are:

db_modules = {"mysql": "MySQLdb"}

but on the main page it says you support postgres as well, which is what i am trying to use.

  Changed 14 months ago by admin

I've fixed the "schema" typo in the trunk, but indeed postgres is not yet supported (it's on our TODO list), shouldn't be difficult though and if you want to contribute you're more that welcomed.

  Changed 13 months ago by ruud

  • status changed from accepted to closed
  • resolution changed from To be investigated to Fixed
Note: See TracTickets for help on using tickets.