This is a snapshot of Indico's old Trac site. Any information contained herein is most probably outdated. Access our new GitHub site here.

Opened 15 months ago

Last modified 14 months ago

#1576 new defect

Error "No such file or directory: '/usr/local/lib/python2.7/dist-packages/bcrypt-1.0.2-py2.7.egg/bcrypt/__pycache__/_cffi_677459_d17cc0.c'" on new installation

Reported by: lslawski Owned by:
Priority: normal Milestone:
Component: Installation Version: 1.2
Keywords: Cc:

Description

As already mentioned in ticket #1575 I installed Indico 1.2 on a Debian 7.6 system following the admin installtion instructions for this version. The e-mail I receive after trying to open the Indico start page gives me a path error:

2014-07-28 16:57:21,618 indico.vars_js - ERROR JSContent.py:70 -- Problem generating vars.js
Traceback (most recent call last):

File "/usr/local/lib/python2.7/dist-packages/indico-1.2-py2.7.egg/MaKaC/webinterface/rh/JSContent.py", line 65, in _process

data = templateEngine.render(self._tplFile, self._dict).strip()

File "/usr/local/lib/python2.7/dist-packages/indico-1.2-py2.7.egg/MaKaC/common/TemplateExec.py", line 136, in render

return template.render(params)

File "/usr/local/lib/python2.7/dist-packages/Mako-0.9.1-py2.7.egg/mako/template.py", line 443, in render

return runtime._render(self, self.callable_, args, data)

File "/usr/local/lib/python2.7/dist-packages/Mako-0.9.1-py2.7.egg/mako/runtime.py", line 807, in _render

_kwargs_for_callable(callable_, data))

File "/usr/local/lib/python2.7/dist-packages/Mako-0.9.1-py2.7.egg/mako/runtime.py", line 839, in _render_context

_exec_template(inherit, lclcontext, args=args, kwargs=kwargs)

File "/usr/local/lib/python2.7/dist-packages/Mako-0.9.1-py2.7.egg/mako/runtime.py", line 865, in _exec_template

callable_(context, *args, kwargs)

File "/var/www/indico/tmp/mako_modules/js/vars.js.tpl.py", line 84, in render_body

authenticators = filter(lambda x: x.id != 'Local', AuthenticatorMgr?().getList())

File "/usr/local/lib/python2.7/dist-packages/indico-1.2-py2.7.egg/MaKaC/authentication/AuthenticationMgr.py", line 32, in init

mod = import_module("MaKaC.authentication." + auth + "Authentication")

File "/usr/lib/python2.7/importlib/init.py", line 37, in import_module

import(name)

File "/usr/local/lib/python2.7/dist-packages/indico-1.2-py2.7.egg/MaKaC/authentication/LocalAuthentication.py", line 20, in <module>

import bcrypt

File "/usr/local/lib/python2.7/dist-packages/bcrypt-1.0.2-py2.7.egg/bcrypt/init.py", line 71, in <module>

).hexdigest()[:6],

File "/usr/local/lib/python2.7/dist-packages/cffi-0.8.6-py2.7-linux-x86_64.egg/cffi/api.py", line 340, in verify

lib = self.verifier.load_library()

File "/usr/local/lib/python2.7/dist-packages/cffi-0.8.6-py2.7-linux-x86_64.egg/cffi/verifier.py", line 73, in load_library

self._write_source()

File "/usr/local/lib/python2.7/dist-packages/cffi-0.8.6-py2.7-linux-x86_64.egg/cffi/verifier.py", line 125, in _write_source

file = open(self.sourcefilename, 'w')

IOError: [Errno 2] No such file or directory: '/usr/local/lib/python2.7/dist-packages/bcrypt-1.0.2-py2.7.egg/bcrypt/pycache/_cffi_677459_d17cc0.c'

Additional information:
Request: 7faaf81e4250
URL: http://134.100.104.1/indico/vars.js
Endpoint: misc.JSContent-getVars
Method: GET
Params: {}
User: None
IP: 134.100.106.159
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:30.0) Gecko/20100101 Firefox/30.0
Referer: http://134.100.104.1/indico/

I use Python 2.7.3 and installed easy_install by Python setuptools. Any help is very much appreciated.

Change History (1)

comment:1 Changed 14 months ago by lslawski

The error does not occur anymore after granting write permissions on /usr/local/lib/python2.7/dist-packages/bcrypt-1.0.2-py2.7.egg/bcrypt. Thanks to Sebastien Medard from the mailing list!

Note: See TracTickets for help on using tickets.