Hi
Dne 20.7.2016 v 19:19 Marcelo Santana napsal(a):
> Hello all,
>
> Please could anyone help me for installing weblate on a machine with
> Debian Stretch?
>
> I have followed the installation instructions using weblate from git
> repository with debian packages of required softwares and an apache
> server.
>
> Unfortunately, I've already tried with two machines and I always have
> got same error message on apache logs even having executed "./manage.py
> migrate ..." without any error and accessed 127.0.0.1:8000 perfectly.
> I also tried using "pip install ..." but I've got same error.
>
> [wsgi:error] [pid 17156] [client 192.168.0.12:46984] mod_wsgi (pid=17156):
> Target WSGI script '/var/www/html/weblate/weblate/wsgi.py' cannot be loaded
> as Python module.
> [wsgi:error] [pid 17156] [client 192.168.0.12:46984] mod_wsgi (pid=17156):
> Exception occurred processing WSGI script
> '/var/www/html/weblate/weblate/wsgi.py'.
> [wsgi:error] [pid 17156] [client 192.168.0.12:46984] Traceback (most recent
> call last):
> [wsgi:error] [pid 17156] [client 192.168.0.12:46984] File
> "/var/www/html/weblate/weblate/wsgi.py", line 44, in <module>
> [wsgi:error] [pid 17156] [client 192.168.0.12:46984] application =
> get_wsgi_application()
> [wsgi:error] [pid 17156] [client 192.168.0.12:46984] File
> "/usr/lib/python2.7/dist-packages/django/core/wsgi.py", line 13, in
> get_wsgi_application
> [wsgi:error] [pid 17156] [client 192.168.0.12:46984] django.setup()
> [wsgi:error] [pid 17156] [client 192.168.0.12:46984] File
> "/usr/lib/python2.7/dist-packages/django/__init__.py", line 18, in setup
> [wsgi:error] [pid 17156] [client 192.168.0.12:46984]
> apps.populate(settings.INSTALLED_APPS)
> [wsgi:error] [pid 17156] [client 192.168.0.12:46984] File
> "/usr/lib/python2.7/dist-packages/django/apps/registry.py", line 108, in
> populate
> [wsgi:error] [pid 17156] [client 192.168.0.12:46984]
> app_config.import_models(all_models)
> [wsgi:error] [pid 17156] [client 192.168.0.12:46984] File
> "/usr/lib/python2.7/dist-packages/django/apps/config.py", line 202, in
> import_models
> [wsgi:error] [pid 17156] [client 192.168.0.12:46984] self.models_module =
> import_module(models_module_name)
> [wsgi:error] [pid 17156] [client 192.168.0.12:46984] File
> "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
> [wsgi:error] [pid 17156] [client 192.168.0.12:46984] __import__(name)
> [wsgi:error] [pid 17156] [client 192.168.0.12:46984] File
> "/usr/lib/python2.7/dist-packages/social/apps/django_app/default/models.py",
> line 8, in <module>
> [wsgi:error] [pid 17156] [client 192.168.0.12:46984] from social.utils
> import setting_name
> [wsgi:error] [pid 17156] [client 192.168.0.12:46984] File
> "/usr/lib/python2.7/dist-packages/social/utils.py", line 9, in <module>
> [wsgi:error] [pid 17156] [client 192.168.0.12:46984] import requests
> [wsgi:error] [pid 17156] [client 192.168.0.12:46984] File
> "/usr/lib/python2.7/dist-packages/requests/__init__.py", line 53, in <module>
> [wsgi:error] [pid 17156] [client 192.168.0.12:46984] from
> .packages.urllib3.contrib import pyopenssl
> [wsgi:error] [pid 17156] [client 192.168.0.12:46984] File
> "/usr/lib/python2.7/dist-packages/requests/packages/__init__.py", line 58, in
> <module>
> [wsgi:error] [pid 17156] [client 192.168.0.12:46984]
> vendored('urllib3.contrib.pyopenssl')
> [wsgi:error] [pid 17156] [client 192.168.0.12:46984] File
> "/usr/lib/python2.7/dist-packages/requests/packages/__init__.py", line 32, in
> vendored
> [wsgi:error] [pid 17156] [client 192.168.0.12:46984]
> __import__(vendored_name, globals(), locals(), level=0)
> [wsgi:error] [pid 17156] [client 192.168.0.12:46984] File
> "/usr/lib/python2.7/dist-packages/urllib3/contrib/pyopenssl.py", line 54, in
> <module>
> [wsgi:error] [pid 17156] [client 192.168.0.12:46984] import OpenSSL.SSL
> [wsgi:error] [pid 17156] [client 192.168.0.12:46984] File
> "/usr/lib/python2.7/dist-packages/OpenSSL/__init__.py", line 8, in <module>
> [wsgi:error] [pid 17156] [client 192.168.0.12:46984] from OpenSSL import
> rand, crypto, SSL
> [wsgi:error] [pid 17156] [client 192.168.0.12:46984] File
> "/usr/lib/python2.7/dist-packages/OpenSSL/rand.py", line 12, in <module>
> [wsgi:error] [pid 17156] [client 192.168.0.12:46984] from OpenSSL._util
> import (
> [wsgi:error] [pid 17156] [client 192.168.0.12:46984] File
> "/usr/lib/python2.7/dist-packages/OpenSSL/_util.py", line 6, in <module>
> [wsgi:error] [pid 17156] [client 192.168.0.12:46984] from
> cryptography.hazmat.bindings.openssl.binding import Binding
> [wsgi:error] [pid 17156] [client 192.168.0.12:46984] File
> "/usr/lib/python2.7/dist-packages/cryptography/hazmat/bindings/openssl/binding.py",
> line 248, in <module>
> [wsgi:error] [pid 17156] [client 192.168.0.12:46984]
> Binding.init_static_locks()
> [wsgi:error] [pid 17156] [client 192.168.0.12:46984] File
> "/usr/lib/python2.7/dist-packages/cryptography/hazmat/bindings/openssl/binding.py",
> line 180, in init_static_locks
> [wsgi:error] [pid 17156] [client 192.168.0.12:46984]
> cls._ensure_ffi_initialized()
> [wsgi:error] [pid 17156] [client 192.168.0.12:46984] File
> "/usr/lib/python2.7/dist-packages/cryptography/hazmat/bindings/openssl/binding.py",
> line 175, in _ensure_ffi_initialized
> [wsgi:error] [pid 17156] [client 192.168.0.12:46984]
> cls._register_osrandom_engine()
> [wsgi:error] [pid 17156] [client 192.168.0.12:46984] File
> "/usr/lib/python2.7/dist-packages/cryptography/hazmat/bindings/openssl/binding.py",
> line 140, in _register_osrandom_engine
> [wsgi:error] [pid 17156] [client 192.168.0.12:46984]
> _openssl_assert(cls.lib, cls.lib.ERR_peek_error() == 0)
> [wsgi:error] [pid 17156] [client 192.168.0.12:46984] File
> "/usr/lib/python2.7/dist-packages/cryptography/hazmat/bindings/openssl/binding.py",
> line 62, in _openssl_assert
> [wsgi:error] [pid 17156] [client 192.168.0.12:46984] errors_with_text
> [wsgi:error] [pid 17156] [client 192.168.0.12:46984] InternalError: Unknown
> OpenSSL error. This error is commonly encountered when another library is not
> cleaning up the OpenSSL error stack. If you are using cryptography with
> another library that uses OpenSSL try disabling it before reporting a bug.
> Otherwise please file an issue at https://github.com/pyca/cryptography/issues
> with information on how to reproduce this.
> ([_OpenSSLErrorWithText(code=336151576L, lib=20, func=148, reason=1048,
> reason_text='error:14094418:SSL routines:ssl3_read_bytes:tlsv1 alert unknown
> ca')])This seems to match https://github.com/pyca/cryptography/issues/2468 -- Michal Čihař | http://cihar.com/ | https://weblate.org/
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Weblate mailing list [email protected] https://lists.cihar.com/cgi-bin/mailman/listinfo/weblate
