When trying to run my own syncserver-1.5, service fails to run because it cannot import a python3 component

RESOLVED FIXED

Status

Cloud Services
Firefox Sync: Backend
RESOLVED FIXED
3 years ago
3 years ago

People

(Reporter: ggarbhad@gmail.com, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

3 years ago
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:33.0) Gecko/20100101 Firefox/33.0
Build ID: 20141007073543

Steps to reproduce:

I'm trying to run sync-1.5 in Debian (raspbian) Wheezy following this instructions: https://docs.services.mozilla.com/howtos/run-sync-1.5.html
The service seems to rely on python2 for everything, but when I try to run it, it fails because it can't find "ExtendedInterpolation" which according to documentation only exists in python3.

Compilation succeeds, but when trying to run the service with:
$ local/bin/pserve syncserver.ini
I get a stack trace (see next field).


Actual results:

Stack trace:
$ local/bin/pserve syncserver.ini
Traceback (most recent call last):
  File "local/bin/pserve", line 9, in <module>
    load_entry_point('pyramid==1.5', 'console_scripts', 'pserve')()
  File "/home/ffsync/syncserver/local/local/lib/python2.7/site-packages/pyramid/scripts/pserve.py", line 51, in main
    return command.run()
  File "/home/ffsync/syncserver/local/local/lib/python2.7/site-packages/pyramid/scripts/pserve.py", line 316, in run
    global_conf=vars)
  File "/home/ffsync/syncserver/local/local/lib/python2.7/site-packages/pyramid/scripts/pserve.py", line 340, in loadapp
    return loadapp(app_spec, name=name, relative_to=relative_to, **kw)
  File "/home/ffsync/syncserver/local/local/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 247, in loadapp
    return loadobj(APP, uri, name=name, **kw)
  File "/home/ffsync/syncserver/local/local/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 271, in loadobj
    global_conf=global_conf)
  File "/home/ffsync/syncserver/local/local/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 296, in loadcontext
    global_conf=global_conf)
  File "/home/ffsync/syncserver/local/local/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 320, in _loadconfig
    return loader.get_context(object_type, name, global_conf)
  File "/home/ffsync/syncserver/local/local/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 454, in get_context
    section)
  File "/home/ffsync/syncserver/local/local/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 476, in _context_from_use
    object_type, name=use, global_conf=global_conf)
  File "/home/ffsync/syncserver/local/local/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 406, in get_context
    global_conf=global_conf)
  File "/home/ffsync/syncserver/local/local/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 296, in loadcontext
    global_conf=global_conf)
  File "/home/ffsync/syncserver/local/local/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 328, in _loadegg
    return loader.get_context(object_type, name, global_conf)
  File "/home/ffsync/syncserver/local/local/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 620, in get_context
    object_type, name=name)
  File "/home/ffsync/syncserver/local/local/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 646, in find_egg_entry_point
    possible.append((entry.load(), protocol, entry.name))
  File "/home/ffsync/syncserver/local/local/lib/python2.7/site-packages/distribute-0.6.24-py2.7.egg/pkg_resources.py", line 1989, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File "/home/ffsync/syncserver/syncserver/__init__.py", line 12, in <module>
    import mozsvc.config
  File "/home/ffsync/syncserver/local/local/lib/python2.7/site-packages/mozsvc/config.py", line 10, in <module>
    from konfig import Config, SettingsDict
  File "/home/ffsync/syncserver/local/local/lib/python2.7/site-packages/konfig/__init__.py", line 11, in <module>
    from configparser import ConfigParser, ExtendedInterpolation
ImportError: cannot import name ExtendedInterpolation



Expected results:

The service should run :)
More details in https://github.com/mozilla-services/syncserver/issues/39

I recently pushed a build tweak that will hopefully fix this, can you please make sure you've got the latest git checkout and try again?
Flags: needinfo?(ggarbhad)
(Reporter)

Comment 2

3 years ago
I can compile successfully now, and the service seems to run fine.
Ticket may be closed.
Thank you very much for your help!
Flags: needinfo?(ggarbhad)

Updated

3 years ago
Status: UNCONFIRMED → RESOLVED
Last Resolved: 3 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.