Thanks for the debugging steps! I discovered that the zope.interface package wasn't found. devpi)i-ffddfb7c [devpi@af-devpi-int1 ~]$ python Python 2.7.10 (default, Dec 8 2015, 18:25:23) [GCC 4.8.3 20140911 (Red Hat 4.8.3-9)] on linux2 Type "help", "copyright", "credits" or "license" for more information.
import pkg_resources
list(pkg_resources.iter_entry_points('devpi_server'))
[EntryPoint.parse('devpi-server-sqlite-fs = devpi_server.keyfs_sqlite_fs'), EntryPoint.parse('devpi-server-auth-basic = devpi_server.auth_basic'), EntryPoint.parse('devpi-server-sqlite = devpi_server.keyfs_sqlite'), EntryPoint.parse('devpi-server-auth-devpi = devpi_server.auth_devpi')]
pkg_resources.load_entry_point('devpi_server', 'devpi_server',
... 'devpi-server-sqlite-fs') Traceback (most recent call last): File "<stdin>", line 2, in <module> File "/opt/devpi/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 549, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/opt/devpi/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2542, in load_entry_point return ep.load() File "/opt/devpi/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2201, in load self.require(*args, **kwargs) File "/opt/devpi/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2218, in require items = working_set.resolve(reqs, env, installer) File "/opt/devpi/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 830, in resolve raise DistributionNotFound(req, requirers) pkg_resources.DistributionNotFound: The 'zope.interface>=3.8.0' distribution was not found and is required by pyramid The zope.interface package is installed in lib64/python2.7/dist-packages but this directory wasn't included in the sys.path. After updating the sys.path, it loaded successfully.
import sys
print sys.path
['', '/opt/devpi/local/lib64/python2.7/site-packages', '/opt/devpi/local/lib/python2.7/site-packages', '/opt/devpi/lib64/python2.7', '/opt/devpi/lib/python2.7', '/opt/devpi/lib64/python2.7/site-packages', '/opt/devpi/lib/python2.7/site-packages', '/opt/devpi/lib64/python2.7/lib-dynload', '/opt/devpi/local/lib/python2.7/dist-packages', '/usr/lib64/python2.7', '/usr/lib/python2.7']
sys.path.insert(0, '/opt/devpi/lib64/python2.7/dist-packages')
import pkg_resources
list(pkg_resources.iter_entry_points('devpi_server'))
[EntryPoint.parse('devpi-server-sqlite-fs = devpi_server.keyfs_sqlite_fs'), EntryPoint.parse('devpi-server-auth-basic = devpi_server.auth_basic'), EntryPoint.parse('devpi-server-sqlite = devpi_server.keyfs_sqlite'), EntryPoint.parse('devpi-server-auth-devpi = devpi_server.auth_devpi')]
pkg_resources.load_entry_point('devpi_server', 'devpi_server', 'devpi-server-sqlite-fs')
I'm trying to install devpi-server on Amazon Linux 2015.09 but when I start it, I'm receiving the following error:
$ cat /etc/system-release Amazon Linux AMI release 2015.09 $ devpi-server --version 3.0.2 $ devpi-server --start 2016-03-22 21:53:12,909 INFO NOCTX Loading node info from /opt/devpi/.devpi/server/.nodeinfo 2016-03-22 21:53:12,910 INFO NOCTX generated uuid: 89e20f8f78fc4f2f8d8b96e121115993 fatal: The backend 'sqlite' can't be found, is the plugin not installed?
I am able to import sqlite3 from Python. $ python Python 2.7.10 (default, Dec 8 2015, 18:25:23) [GCC 4.8.3 20140911 (Red Hat 4.8.3-9)] on linux2 Type "help", "copyright", "credits" or "license" for more information.
import sqlite3
What am I missing?