Hi,

I have not given it a look in depth, but maybe the problem shall be
related to API changes between rpclib and spyne, or simply spyne versions.

your version: python2-spyne  2.11.0-1
my version:   python-spyne    2.9.3-1~inverse+zentyal2

Julien.

On 26/07/15 08:48, DJ Lucas wrote:
> Hi all, finally getting around to bringing OCSManager up to speed.
> Autodiscover seems to be functional, however, when testing free/busy
> using the instructions in the readme, I'm getting an error and having
> some difficulty tracking it down. IIRC, I had it working to this point
> before I gave up last time.
>
> Here is the error:
> File '/usr/lib/python2.7/site-packages/weberror/evalexception.py',
> line 431 in respond
>   app_iter = self.application(environ, detect_start_response)
> File '/usr/lib/python2.7/site-packages/beaker/middleware.py', line 155
> in __call__
>   return self.wrap_app(environ, session_start_response)
> File '/usr/lib/python2.7/site-packages/routes/middleware.py', line 136
> in __call__
>   response = self.app(environ, start_response)
> File '/usr/lib/python2.7/site-packages/pylons/wsgiapp.py', line 102 in
> __call__
>   controller = self.resolve(environ, start_response)
> File '/usr/lib/python2.7/site-packages/pylons/wsgiapp.py', line 231 in
> resolve
>   return self.find_controller(controller)
> File '/usr/lib/python2.7/site-packages/pylons/wsgiapp.py', line 269 in
> find_controller
>   __import__(full_module_name)
> File '/usr/lib/python2.7/site-packages/ocsmanager/controllers/as.py',
> line 507 in <module>
>   interface=Wsdl11(), in_protocol=Soap11(), out_protocol=Soap11())
> File
> '/usr/lib/python2.7/site-packages/spyne/interface/wsdl/wsdl11.py',
> line 149 in __init__
>   super(Wsdl11, self).__init__(interface)
> File
> '/usr/lib/python2.7/site-packages/spyne/interface/xml_schema/_base.py', line
> 111 in __init__
>   pref = self.interface.prefmap[self.interface.app.tns]
> AttributeError: 'NoneType' object has no attribute 'prefmap'
>
> It's fairly obvious that the error is occurring in Spyne, but beyond
> that, I'm lost. I suspect it is a missing module. Has anyone else seen
> this and got around it?
>
> FYI, here are my currently installed python packages (standalone) for
> my minimal test rig. It would be nice if it's as simple as comparison
> with a working environment:
>
> python2 2.7.10-1
> python2-beaker 1.7.0-1
> python2-beautifulsoup3 3.2.1-3
> python2-beautifulsoup4 4.3.2-3
> python2-chardet 2.3.0-1
> python2-cheetah 2.4.4-6
> python2-cssselect 0.9.1-2
> python2-decorator 3.4.2-1
> python2-flup 1.0.2-5
> python2-formencode 1.3.0a1-2
> python2-lxml 3.4.4-1
> python2-mako 1.0.1-1
> python2-markdown 2.6.2-1
> python2-markupsafe 0.23-2
> python2-nose 1.3.7-1
> python2-openid 2.2.5-4
> python2-paste 2.0.2-1
> python2-paste-deploy 1.5.2-1
> python2-paste-script 1.7.5-1
> python2-pycurl 7.19.5.1-2
> python2-pygments 2.0.2-2
> python2-pylons 1.0.1-2
> python2-pyparsing 2.0.3-1
> python2-pyquery 1.2.9-1
> python2-pytz 2015.4-1
> python2-repoze.lru 0.6-4
> python2-routes 2.1-2
> python2-setuptools 1:18.0.1-1
> python2-simplejson 3.7.2-1
> python2-six 1.9.0-1
> python2-spyne 2.11.0-1
> python2-tempita 0.5.2-1
> python2-waitress 0.8.9-1
> python2-weberror 0.10.3-2
> python2-webhelpers 1.3-2
> python2-webob 1.4.1-1
> python2-webtest 2.0.18-1
> python2-werkzeug 0.10.4-1
>
> Or, from python itself:
>
> help> modules
>
> Please wait a moment while I gather a list of all available modules...
>
> BaseHTTPServer      audioop             keyword shlex
> Bastion             avahi               ldb shutil
> BeautifulSoup       avahi_discover      lib2to3 signal
> BeautifulSoupTests  base64              libxml2 simplejson
> CDROM               bdb                 libxml2mod site
> CGIHTTPServer       beaker              libxslt six
> Canvas              binascii            libxsltmod smtpd
> Cheetah             binhex              linecache smtplib
> ConfigParser        bisect              linuxaudiodev sndhdr
> Cookie              bs4                 locale socket
> DLFCN               bsddb               logging spwd
> Dialog              bz2                 lxml spyne
> DocXMLRPCServer     cPickle             macpath sqlite3
> FileDialog          cProfile            macurl2path sre
> FixTk               cStringIO           mailbox sre_compile
> HTMLParser          calendar            mailcap sre_constants
> IN                  cgi                 mako sre_parse
> MimeWriter          cgitb               markdown ssl
> MySQLdb             chardet             markupbase stat
> Queue               chunk               markupsafe statvfs
> ScrolledText        cmath               marshal string
> SimpleDialog        cmd                 math stringold
> SimpleHTTPServer    code                md5 stringprep
> SimpleXMLRPCServer  codecs              mhlib strop
> SocketServer        codeop              mimetools struct
> StringIO            collections         mimetypes subprocess
> TYPES               colorsys            mimify sunau
> Tix                 commands            mmap sunaudio
> Tkconstants         compileall          modulefinder symbol
> Tkdnd               compiler            multifile symtable
> Tkinter             contextlib          multiprocessing sys
> UserDict            cookielib           mutex sysconfig
> UserList            copy                netrc syslog
> UserString          copy_reg            new tabnanny
> _LWPCookieJar       crypt               nis talloc
> _MozillaCookieJar   cssselect           nntplib tarfile
> __builtin__         csv                 nose tdb
> __future__          ctypes              ntdb telnetlib
> _abcoll             curl                ntpath tempfile
> _ast                curses              nturl2path tempita
> _bisect             datetime            numbers termios
> _bsddb              dbhash              ocsmanager test
> _codecs             dbm                 opcode test_egg_finder
> _codecs_cn          decimal             openchange test_files
> _codecs_hk          decorator           openid test_logging_config
> _codecs_iso2022     difflib             operator test_plugin_adder
> _codecs_jp          dircache            optparse test_template_introspect
> _codecs_kr          dis                 os tests
> _codecs_tw          distutils           os2emxpath tevent
> _collections        doctest             ossaudiodev textwrap
> _csv                drv_libxml2         parser this
> _ctypes             dumbdbm             pdb thread
> _ctypes_test        dummy_thread        pickle threading
> _curses             dummy_threading     pickletools time
> _curses_panel       easy_install        pipes timeit
> _elementtree        email               pkg_resources tkColorChooser
> _functools          encodings           pkgutil tkCommonDialog
> _gamin              ensurepip           platform tkFileDialog
> _hashlib            errno               plistlib tkFont
> _heapq              exceptions          popen2 tkMessageBox
> _hotshot            fcntl               poplib tkSimpleDialog
> _io                 filecmp             posix toaiff
> _json               fileinput           posixfile token
> _locale             flup                posixpath tokenize
> _lsprof             fnmatch             pprint trace
> _markerlib          formatter           profile traceback
> _multibytecodec     formencode          pstats ttk
> _multiprocessing    fpformat            pty tty
> _mysql              fractions           pwd turtle
> _mysql_exceptions   ftplib              py_compile types
> _osx_support        functools           pyclbr unicodedata
> _pyio               future_builtins     pycurl unittest
> _random             gamin               pydoc urllib
> _socket             gc                  pydoc_data urllib2
> _sqlite3            gdbm                pyexpat urlparse
> _sre                genericpath         pygments user
> _ssl                getopt              pylons uu
> _strptime           getpass             pyparsing uuid
> _struct             gettext             pyquery waitress
> _symtable           glob                pytz warnings
> _sysconfigdata      grp                 quopri wave
> _testcapi           gzip                random weakref
> _tevent             hashlib             re webbrowser
> _threading_local    heapq               readline weberror
> _tkinter            hmac                repr webhelpers
> _warnings           hotshot             resource webob
> _weakref            htmlentitydefs      rexec webtest
> _weakrefset         htmllib             rfc822 werkzeug
> abc                 httplib             rlcompleter whichdb
> aifc                idlelib             robotparser wsgiref
> antigravity         ihooks              routes xdrlib
> anydbm              imaplib             runpy xml
> appsetup            imghdr              samba xmllib
> argparse            imp                 sched xmlrpclib
> array               importlib           select xxsubtype
> ast                 imputil             sets zipfile
> asynchat            inspect             setuptools zipimport
> asyncore            io                  sgmllib zlib
> atexit              itertools           sha
> audiodev            json                shelve
>
> Thanks in advance for any pointers.
>
> -- DJ Lucas
>
> _______________________________________________
> devel mailing list
> devel@lists.openchange.org
> http://mailman.openchange.org/listinfo/devel

-- 
Julien Kerihuel
j.kerih...@openchange.org
OpenChange Project Founder

Twitter: http://twitter.com/jkerihuel

GPG Fingerprint: 0B55 783D A781 6329 108A  B609 7EF6 FE11 A35F 1F79


Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
devel mailing list
devel@lists.openchange.org
http://mailman.openchange.org/listinfo/devel

Reply via email to