Can't start devpi-server on Amazon Linux 2015.09
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?
How did you install devpi-server? It looks like it can't find the entry point for the plugin. For me this happens during development when I checkout the source for devpi-server 3.x, install it in my virtualenv and then switch the repository to 2.x. Regards, Florian Schulze On 22 Mar 2016, at 23:09, jblack...@gmail.com wrote:
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?
-- You received this message because you are subscribed to the Google Groups "devpi-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to devpi-dev+...@googlegroups.com. To post to this group, send email to devp...@googlegroups.com. Visit this group at https://groups.google.com/group/devpi-dev. For more options, visit https://groups.google.com/d/optout.
Cam you verify you are using the python interpreter which can import sqlite3 when starting devpi-server? On March 22, 2016 11:09:39 PM GMT+01:00, jblack...@gmail.com wrote:
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?
-- You received this message because you are subscribed to the Google Groups "devpi-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to devpi-dev+...@googlegroups.com. To post to this group, send email to devp...@googlegroups.com. Visit this group at https://groups.google.com/group/devpi-dev. For more options, visit https://groups.google.com/d/optout.
-- Sent using mobile touch keys, increased chances for errors and misunderstandings. Enjoy!
Thanks for the quick response. I installed devpi-server using pip. Below is the list of commands that I ran. i-6792cbe4 [devpi@af-devpi-int1 ~]$ virtualenv /opt/devpi New python executable in /opt/devpi/bin/python2.7 Also creating executable in /opt/devpi/bin/python Installing setuptools, pip...done. i-6792cbe4 [devpi@af-devpi-int1 ~]$ source bin/activate (devpi)i-6792cbe4 [devpi@af-devpi-int1 ~]$ pip install -U devpi-server You are using pip version 6.1.1, however version 8.1.1 is available. You should consider upgrading via the 'pip install --upgrade pip' command. Collecting devpi-server Downloading devpi_server-3.0.2-py2.py3-none-any.whl (158kB) 100% |████████████████████████████████| 159kB 2.7MB/s Collecting execnet>=1.2 (from devpi-server) ... (devpi)i-6792cbe4 [devpi@af-devpi-int1 ~]$ devpi-server --version 3.0.2 (devpi)i-6792cbe4 [devpi@af-devpi-int1 ~]$ devpi-server --start 2016-03-23 17:28:19,376 INFO NOCTX Loading node info from /opt/devpi/.devpi/server/.nodeinfo 2016-03-23 17:28:19,377 INFO NOCTX generated uuid: 0703e9461c124951adcd46cd8cd2676e fatal: The backend 'sqlite' can't be found, is the plugin not installed? (devpi)i-6792cbe4 [devpi@af-devpi-int1 ~]$ which devpi-server ~/bin/devpi-server (devpi)i-6792cbe4 [devpi@af-devpi-int1 ~]$ cat ~/bin/devpi-server #!/opt/devpi/bin/python2.7 # -*- coding: utf-8 -*- import re import sys from devpi_server.main import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(main()) (devpi)i-6792cbe4 [devpi@af-devpi-int1 ~]$ /opt/devpi/bin/python2.7 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
On Tuesday, March 22, 2016 at 6:09:39 PM UTC-4, jbla...@gmail.com wrote:
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?
Could you check that lib/python2.7/site-packages/devpi_server/keyfs_sqlite_fs.py exists? Also ``cat lib/python2.7/site-packages/devpi_server-3.0.2.dist-info/entry_points.txt`` should result in this: ``` [console_scripts] devpi-server = devpi_server.main:main [devpi_server] devpi-server-auth-basic = devpi_server.auth_basic devpi-server-auth-devpi = devpi_server.auth_devpi devpi-server-sqlite = devpi_server.keyfs_sqlite devpi-server-sqlite-fs = devpi_server.keyfs_sqlite_fs [devpi_web] devpi-server-status = devpi_server.views ``` Finally, check this: ``` % python Python 2.7.11 (default, Dec 23 2015, 08:32:32) [GCC 4.2.1 Compatible Apple LLVM 7.0.2 (clang-700.1.81)] on darwin 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') <module 'devpi_server.keyfs_sqlite_fs' from '/Users/fschulze/temp/server/lib/python2.7/site-packages/devpi_server/keyfs_sqlite_fs.pyc'>
Regards,
Florian Schulze
On 23 Mar 2016, at 18:35, jblack...@gmail.com wrote:
> Thanks for the quick response. I installed devpi-server using pip.
> Below
> is the list of commands that I ran.
>
> i-6792cbe4 [devpi@af-devpi-int1 ~]$ virtualenv /opt/devpi
> New python executable in /opt/devpi/bin/python2.7
> Also creating executable in /opt/devpi/bin/python
> Installing setuptools, pip...done.
> i-6792cbe4 [devpi@af-devpi-int1 ~]$ source bin/activate
> (devpi)i-6792cbe4 [devpi@af-devpi-int1 ~]$ pip install -U devpi-server
> You are using pip version 6.1.1, however version 8.1.1 is available.
> You should consider upgrading via the 'pip install --upgrade pip'
> command.
> Collecting devpi-server
> Downloading devpi_server-3.0.2-py2.py3-none-any.whl (158kB)
> 100%
> |████████████████████████████████|
> 159kB 2.7MB/s
> Collecting execnet>=1.2 (from devpi-server)
> ...
> (devpi)i-6792cbe4 [devpi@af-devpi-int1 ~]$ devpi-server --version
> 3.0.2
> (devpi)i-6792cbe4 [devpi@af-devpi-int1 ~]$ devpi-server --start
> 2016-03-23 17:28:19,376 INFO NOCTX Loading node info from
> /opt/devpi/.devpi/server/.nodeinfo
> 2016-03-23 17:28:19,377 INFO NOCTX generated uuid:
> 0703e9461c124951adcd46cd8cd2676e
> fatal: The backend 'sqlite' can't be found, is the plugin not
> installed?
>
> (devpi)i-6792cbe4 [devpi@af-devpi-int1 ~]$ which devpi-server
> ~/bin/devpi-server
> (devpi)i-6792cbe4 [devpi@af-devpi-int1 ~]$ cat ~/bin/devpi-server
> #!/opt/devpi/bin/python2.7
>
> # -*- coding: utf-8 -*-
> import re
> import sys
>
> from devpi_server.main import main
>
> if __name__ == '__main__':
> sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
> sys.exit(main())
> (devpi)i-6792cbe4 [devpi@af-devpi-int1 ~]$ /opt/devpi/bin/python2.7
> 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
>>>>
>
> On Tuesday, March 22, 2016 at 6:09:39 PM UTC-4, jbla...@gmail.com
> wrote:
>>
>> 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?
>>
>
> --
> You received this message because you are subscribed to the Google
> Groups "devpi-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to devpi-dev+...@googlegroups.com.
> To post to this group, send email to devp...@googlegroups.com.
> Visit this group at https://groups.google.com/group/devpi-dev.
> For more options, visit https://groups.google.com/d/optout.
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')
<module 'devpi_server.keyfs_sqlite_fs' from '/opt/devpi/local/lib/python2.7/dist-packages/devpi_server/keyfs_sqlite_fs.pyc'> Thanks again, Jessica On Tuesday, March 22, 2016 at 6:09:39 PM UTC-4, jbla...@gmail.com wrote:
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?
Glad it worked out for you. I hope to use the information gathered by this to improve the error reporting. I made a ticket: https://bitbucket.org/hpk42/devpi/issues/326/better-error-reporting-on-plugi... Regards, Florian Schulze On 24 Mar 2016, at 22:15, jblack...@gmail.com wrote:
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')
<module 'devpi_server.keyfs_sqlite_fs' from '/opt/devpi/local/lib/python2.7/dist-packages/devpi_server/keyfs_sqlite_fs.pyc'>
Thanks again,
Jessica
On Tuesday, March 22, 2016 at 6:09:39 PM UTC-4, jbla...@gmail.com wrote:
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?
-- You received this message because you are subscribed to the Google Groups "devpi-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to devpi-dev+...@googlegroups.com. To post to this group, send email to devp...@googlegroups.com. Visit this group at https://groups.google.com/group/devpi-dev. For more options, visit https://groups.google.com/d/optout.
I have just had this issue while setting 2+ servers. The symptoms were: - First server setup fine - 2nd 3rd etc server would install devpi-server but in running it I would get this sqlite error. - Ran debug mode and even strace but nothing obvious With much troubleshooting, I found that I was installing devpi-server using the first server (-i http://first.server.local) When I removed that and let pip use the public servers I had to add the --upgrade switch and I got this. Installing collected packages: setuptools Found existing installation: setuptools 0.6rc11 Uninstalling setuptools-0.6rc11: Successfully uninstalled setuptools-0.6rc11 Successfully installed setuptools-21.1.0 All other packages were at their latest versions. I thought I would report this back.
participants (4)
-
DaveQB
-
Florian Schulze
-
holger krekel
-
jblack...@gmail.com