id

226

publisher

xavier@maillard.im/98e331ff-bc04-4def-95d8-89d094a8fe20

title
[libervia] Setup.py does not install pages
author
Xavier
created
01/01/2018, 23:05
updated
01/01/2018, 23:05
labels
libervia installation setup
type
bug
status
queued
priority
normal
milestone
0.7
severity
normal
body
Running 'python setup.py install' does not install the pages (from src/pages) into site-packages/libervia/ directory preventing libervia from running.

Here is the backtrace:

2018-01-01T23:44:13+0100 [-] Received SIGINT, shutting down.
2018-01-01T23:44:13+0100 [-] Received SIGINT, shutting down.
2018-01-01T23:44:13+0100 [-] launching cleaning methods
2018-01-01T23:44:13+0100 [-] /!\ 'disconnected' signal received for a not connected profile
2018-01-01T23:44:13+0100 [-] Server Shut Down.
2018-01-01T23:44:13+0100 [twisted.scripts._twistd_unix.UnixAppLogger#info] Server Shut Down.
2018-01-01T23:44:28+0100 [-] twistd 17.9.0 (/usr/local/opt/python/bin/python2.7 2.7.14) starting up.
2018-01-01T23:44:28+0100 [twisted.scripts._twistd_unix.UnixAppLogger#info] twistd 17.9.0 (/usr/local/opt/python/bin/python2.7 2.7.14) starting up.
2018-01-01T23:44:28+0100 [-] reactor class: twisted.internet.glib2reactor.Glib2Reactor.
2018-01-01T23:44:28+0100 [twisted.scripts._twistd_unix.UnixAppLogger#info] reactor class: twisted.internet.glib2reactor.Glib2Reactor.
2018-01-01T23:44:28+0100 [-] /!\ Init error: [Failure instance: Traceback: <type 'exceptions.OSError'>: [Errno 2] No such file or directory: '/usr/local/lib/python2.7/site-packages/libervia/pages'
/usr/local/lib/python2.7/site-packages/dbus/connection.py:604:msg_reply_handler
/usr/local/lib/python2.7/site-packages/libervia/server/server.py:1480:<lambda>
/usr/local/lib/python2.7/site-packages/twisted/internet/defer.py:459:callback
/usr/local/lib/python2.7/site-packages/twisted/internet/defer.py:567:_startRunCallbacks
--- <exception caught here> ---
/usr/local/lib/python2.7/site-packages/twisted/internet/defer.py:653:_runCallbacks
/usr/local/lib/python2.7/site-packages/libervia/server/server.py:1455:backendReady
/usr/local/lib/python2.7/site-packages/libervia/server/pages.py:183:importPages
]
2018-01-01T23:44:28+0100 [-] /!\ Traceback (most recent call last):
2018-01-01T23:44:28+0100 [stderr#error] Traceback (most recent call last):
2018-01-01T23:44:28+0100 [-] /!\ File "/usr/local/lib/python2.7/site-packages/dbus/connection.py", line 604, in msg_reply_handler
2018-01-01T23:44:28+0100 [stderr#error] File "/usr/local/lib/python2.7/site-packages/dbus/connection.py", line 604, in msg_reply_handler
2018-01-01T23:44:28+0100 [-] /!\ reply_handler(*message.get_args_list(**get_args_opts))
2018-01-01T23:44:28+0100 [stderr#error] reply_handler(*message.get_args_list(**get_args_opts))
2018-01-01T23:44:28+0100 [-] /!\ File "/usr/local/lib/python2.7/site-packages/libervia/server/server.py", line 1894, in _startService
2018-01-01T23:44:28+0100 [stderr#error] File "/usr/local/lib/python2.7/site-packages/libervia/server/server.py", line 1894, in _startService
2018-01-01T23:44:28+0100 [-] /!\ self.cache_resource.putChild(service_path, ProtectedFile(cache_dir))
2018-01-01T23:44:28+0100 [stderr#error] self.cache_resource.putChild(service_path, ProtectedFile(cache_dir))
2018-01-01T23:44:28+0100 [-] /!\ AttributeError: 'Libervia' object has no attribute 'cache_resource'
2018-01-01T23:44:28+0100 [stderr#error] AttributeError: 'Libervia' object has no attribute 'cache_resource'

As a workaround, we can manually install the "pages" directory via a 'cp' command.

Please fix that in the setup.py file.

Thank you.
comments_uri
xmpp:pubsub.goffi.org?;node=urn%3Axmpp%3Amicroblog%3A0%3Acomments%2Forg.salut-a-toi.tickets%3A0_uwnNZHBjcLBg65WNLoa7hS

You are not logged. You need to log in to comment.