firefox sync 1.1 errors

Trying to install Sync 1.1 and following the instructions, which were written with examples for Ubuntu. Cool.

The make build fails:

Successfully installed Beaker SQLAlchemy WebOb WebTest metlog-cef python-memcached repoze.who scrypt zope.deprecation zope.interface
/home/chacham/server-full/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents
urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
Traceback (most recent call last):
File "/home/chacham/server-full/bin/pip", line 11, in <module>sys.exit(main())
File "/home/chacham/server-full/local/lib/python2.7/site-packages/pip/__init__.py", line 217, in main
return command.main(cmd_args)
File "/home/chacham/server-full/local/lib/python2.7/site-packages/pip/basecommand.py", line 248, in main
pip_version_check(session)
File "/home/chacham/server-full/local/lib/python2.7/site-packages/pip/utils/outdated.py", line 102, in pip_version_check
installed_version = get_installed_version("pip")
File "/home/chacham/server-full/local/lib/python2.7/site-packages/pip/utils/__init__.py", line 858, in get_installed_version
working_set = pkg_resources.WorkingSet()
File "/home/chacham/server-full/local/lib/python2.7/site-packages/pip/_vendor/pkg_resources/__init__.py", line 629, in __init__
self.add_entry(entry)
File "/home/chacham/server-full/local/lib/python2.7/site-packages/pip/_vendor/pkg_resources/__init__.py", line 685, in add_entry
for dist in find_distributions(entry, True):
File "/home/chacham/server-full/local/lib/python2.7/site-packages/pip/_vendor/pkg_resources/__init__.py", line 2075, in find_eggs_in_zip
if metadata.has_metadata('PKG-INFO'):
File "/home/chacham/server-full/local/lib/python2.7/site-packages/pip/_vendor/pkg_resources/__init__.py", line 1605, in has_metadata
return self.egg_info and self._has(self._fn(self.egg_info, name))
File "/home/chacham/server-full/local/lib/python2.7/site-packages/pip/_vendor/pkg_resources/__init__.py", line 1963, in _has
return zip_path in self.zipinfo or zip_path in self._index()
File "/home/chacham/server-full/local/lib/python2.7/site-packages/pip/_vendor/pkg_resources/__init__.py", line 1843, in zipinfo
return self._zip_manifests.load(self.loader.archive)
File "/home/chacham/server-full/local/lib/python2.7/site-packages/pip/_vendor/pkg_resources/__init__.py", line 1783, in load
mtime = os.stat(path).st_mtime
OSError: [Errno 2] No such file or directory: '/home/chacham/server-full/local/lib/python2.7/site-packages/SQLAlchemy-1.0.8-py2.7-linux-x86_64.egg'
[fail] [
fail]
make: *** [build] Error 1</module> 

Strangely, a second make build gives other errors:

virtualenv --python=`which python2 python | head -n 1` --distribute --no-site-packages .
Running virtualenv with interpreter /usr/bin/python2
New python executable in ./bin/python2
Not overwriting existing python script ./bin/python (you must use ./bin/python2)
File ./lib/python2.7/distutils/distutils.cfg exists with different content; not overwriting
Installing setuptools, pip...done.
bin/pip install -U -i https://pypi.python.org/simple Distribute
Traceback (most recent call last):
File "bin/pip", line 7, in <module>from pip import main
File "/home/chacham/server-full/local/lib/python2.7/site-packages/pip/__init__.py", line 11, in <module>from pip.vcs import git, mercurial, subversion, bazaar # noqa
File "/home/chacham/server-full/local/lib/python2.7/site-packages/pip/vcs/mercurial.py", line 9, in <module>from pip.download import path_to_url
File "/home/chacham/server-full/local/lib/python2.7/site-packages/pip/download.py", line 22, in <module>from pip._vendor import requests, six
File "/home/chacham/server-full/local/lib/python2.7/site-packages/pip/_vendor/requests/__init__.py", line 58, in <module>from . import utils
File "/home/chacham/server-full/local/lib/python2.7/site-packages/pip/_vendor/requests/utils.py", line 25, in <module>from .compat import parse_http_list as _parse_list_header
File "/home/chacham/server-full/local/lib/python2.7/site-packages/pip/_vendor/requests/compat.py", line 7, in <module>from .packages import chardet
File "/home/chacham/server-full/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/__init__.py", line 3, in <module>from . import urllib3
File "/home/chacham/server-full/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/__init__.py", line 16, in <module>from .connectionpool import (
File "/home/chacham/server-full/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/connectionpool.py", line 33, in <module>from .connection import (
File "/home/chacham/server-full/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/connection.py", line 41, in <module>from .util import (
File "/home/chacham/server-full/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/__init__.py", line 5, in <module>from .ssl_ import (
File "/home/chacham/server-full/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py", line 4, in <module>from ..exceptions import SSLError, InsecurePlatformWarning
ImportError: cannot import name InsecurePlatformWarning
make: *** [build] Error 1</module></module></module></module></module></module></module></module></module></module></module></module></module> 

I'm still looking, though admittedly confused.

5 Replies

So, making ssl work seems important… some searching found these python packages needed installing, so:

sudo pip install --user pyopenssl ndg-httpsclient pyasn1

Also, looking at some things that failed on automatic, just installed in site-wide:

sudo pip install -i https://pypi.python.org/simple -U -r dev-reqs.txt

Still reporting:

  Building External dependencies '/home/chacham/server-full/bin/pip install -i https://pypi.python.org
/simple -U -r dev-reqs.txt' failed with code 1

No idea what i'm doing though… no idea….

Any help would be appreciated. running sync is why i got the server.

So, the error seems to be while (re)installing SQLAlchemy. Of course, it decided to uninstall it and reinstall it, seemingly the same version. So silly:

 Found existing installation: SQLAlchemy 1.0.8
Uninstalling SQLAlchemy-1.0.8:
Successfully uninstalled SQLAlchemy-1.0.8
Running setup.py install for SQLAlchemy
Running setup.py install for zope.interface
Running setup.py install for repoze.who
Running setup.py install for zope.deprecation
Running setup.py install for metlog-cef
Running setup.py install for scrypt
Successfully installed Beaker SQLAlchemy WebOb WebTest metlog-cef python-memcach
ed repoze.who scrypt zope.deprecation zope.interface

Traceback (most recent call last):
File "/home/chacham/server-full/bin/pip", line 11, in <module>sys.exit(main())
File "/home/chacham/server-full/local/lib/python2.7/site-packages/pip/__init__
.py", line 217, in main
return command.main(cmd_args)
File "/home/chacham/server-full/local/lib/python2.7/site-packages/pip/basecomm
and.py", line 248, in main
pip_version_check(session)
File "/home/chacham/server-full/local/lib/python2.7/site-packages/pip/utils/ou
tdated.py", line 102, in pip_version_check
installed_version = get_installed_version("pip")
File "/home/chacham/server-full/local/lib/python2.7/site-packages/pip/utils/__
init__.py", line 858, in get_installed_version
working_set = pkg_resources.WorkingSet()
File "/home/chacham/server-full/local/lib/python2.7/site-packages/pip/_vendor/
pkg_resources/__init__.py", line 629, in __init__
self.add_entry(entry)
pkg_resources/__init__.py", line 685, in add_entry
for dist in find_distributions(entry, True):
pkg_resources/__init__.py", line 2075, in find_eggs_in_zip
if metadata.has_metadata('PKG-INFO'):
pkg_resources/__init__.py", line 1605, in has_metadata
return self.egg_info and self._has(self._fn(self.egg_info, name))
pkg_resources/__init__.py", line 1963, in _has
return zip_path in self.zipinfo or zip_path in self._index()
pkg_resources/__init__.py", line 1843, in zipinfo
return self._zip_manifests.load(self.loader.archive)
pkg_resources/__init__.py", line 1783, in load
mtime = os.stat(path).st_mtime
ib/python2.7/site-packages/SQLAlchemy-1.0.8-py2.7-linux-x86_64.egg'

[fail]
make: *** [build] Error 1</module> 

Not sure i'm liking python here…

sudo apt-get install python-SQLAlchemy works, but the scripts wants its own version.

Though this file does not exist:

OSError: [Errno 2] No such file or directory: '/home/chacham/server-full/local/lib/python2.7/site-packages/SQLAlchemy-1.0.8-py2.7-linux-x86_64.egg'

sqlalchemy (directory)

SQLAlchemy-0.7.10-py2.7.egg-info

exists. So, of course it can't find the other (later?) file. It isn't there! What in the world is going on?

Got ahold of a developer via IRC and then email. He updated the repository and now it works. :)

Did the guy elaborate, how he did it?

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct