Cursos Servidores con Centos 6
Sistema Operativo ALDOS
MongoDB Banner
Curso PHP
Dezoft

Si algunos de nuestros foros, manuales, ALDOS, paquetería o proyectos te han resultado de ayuda, apreciaremos mucho nos apoyes con un donativo.

 Índice > Todo acerca de Linux > Programas y Aplicaciones Nuevo tema Publicar Respuesta
 Instalar contenido offline con modo servidor "Ka Lite" de Khan Academy
Tema anterior
   
TuxTux
Publicado en 23/09/18 02:34 (Leído 225 veces)  

Miembro regular
Forum User

Inscrito: 17/08/11 Publicaciones: 109
Hola!
¡Buenas noches!

Estoy tratando de instalar Ka lite de Khan Academy:
https://ka-lite.readthedocs.io/en/latest/installguide/install_all.html#linux

Aparentemente si se instala, pero al momento de iniciarlo me da la siguiente dirección:
http://127.0.0.1:7004/ a donde ingreso, pero todo queda en blanco.

¿Alguien tiene alguna idea de como solucionarlo?

Estoy instalando en Ubuntu 18.04 de 64 bits.


/home/user/.kalite/server.log contiene:

[INFO] [2018-09-22 21:16:51,475] cherrypy.error: [22/Sep/2018:21:16:51] ENGINE Listening for SIGHUP.
[INFO] [2018-09-22 21:16:51,476] cherrypy.error: [22/Sep/2018:21:16:51] ENGINE Listening for SIGTERM.
[INFO] [2018-09-22 21:16:51,476] cherrypy.error: [22/Sep/2018:21:16:51] ENGINE Listening for SIGUSR1.
[INFO] [2018-09-22 21:16:51,477] cherrypy.error: [22/Sep/2018:21:16:51] ENGINE Bus STARTING
[INFO] [2018-09-22 21:16:51,477] cherrypy.error: [22/Sep/2018:21:16:51] Loading and serving the Django application
[INFO] [2018-09-22 21:16:51,490] cherrypy.error: [22/Sep/2018:21:16:51] ENGINE Started monitor thread '_TimeoutMonitor'.
[INFO] [2018-09-22 21:16:51,716] cherrypy.error: [22/Sep/2018:21:16:51] ENGINE Serving on http://0.0.0.0:7005
[INFO] [2018-09-22 21:16:51,716] cherrypy.error: [22/Sep/2018:21:16:51] ENGINE Bus STARTED
[ERROR] [2018-09-22 21:16:57,402] cherrypy.error: [22/Sep/2018:21:16:57] ENGINE GEOSException(u'Could not parse version info string "3.6.2-CAPI-1.10.2 4d2925d6"',)
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/kalite/packages/dist/cherrypy/wsgiserver/wsgiserver2.py", line 1353, in communicate
req.respond()
File "/usr/lib/python2.7/dist-packages/kalite/packages/dist/cherrypy/wsgiserver/wsgiserver2.py", line 868, in respond
self.server.gateway(self).respond()
File "/usr/lib/python2.7/dist-packages/kalite/packages/dist/cherrypy/wsgiserver/wsgiserver2.py", line 2257, in respond
response = self.req.server.wsgi_app(self.env, self.start_response)
File "/usr/lib/python2.7/dist-packages/kalite/packages/dist/cherrypy/_cptree.py", line 299, in __call__
return app(environ, start_response)
File "/usr/lib/python2.7/dist-packages/kalite/packages/bundled/django/core/handlers/wsgi.py", line 255, in __call__
response = self.get_response(request)
File "/usr/lib/python2.7/dist-packages/kalite/packages/bundled/django/core/handlers/base.py", line 178, in get_response
response = self.handle_uncaught_exception(request, resolver, sys.exc_info())
File "/usr/lib/python2.7/dist-packages/kalite/packages/bundled/django/core/handlers/base.py", line 220, in handle_uncaught_exception
if resolver.urlconf_module is None:
File "/usr/lib/python2.7/dist-packages/kalite/packages/bundled/django/core/urlresolvers.py", line 342, in urlconf_module
self._urlconf_module = import_module(self.urlconf_name)
File "/usr/lib/python2.7/dist-packages/kalite/packages/bundled/django/utils/importlib.py", line 35, in import_module
__import__(name)
File "/usr/lib/python2.7/dist-packages/kalite/distributed/urls.py", line 14, in <module>
from . import api_urls
File "/usr/lib/python2.7/dist-packages/kalite/distributed/api_urls.py", line 12, in <module>
import kalite.coachreports.api_urls
File "/usr/lib/python2.7/dist-packages/kalite/coachreports/api_urls.py", line 3, in <module>
from .api_resources import PlaylistProgressResource, PlaylistProgressDetailResource
File "/usr/lib/python2.7/dist-packages/kalite/coachreports/api_resources.py", line 3, in <module>
from tastypie.resources import Resource
File "/usr/lib/python2.7/dist-packages/kalite/packages/dist/tastypie/resources.py", line 20, in <module>
from django.contrib.gis.db.models.fields import GeometryField
File "/usr/lib/python2.7/dist-packages/kalite/packages/bundled/django/contrib/gis/db/models/__init__.py", line 5, in <module>
from django.contrib.gis.db.models.aggregates import *
File "/usr/lib/python2.7/dist-packages/kalite/packages/bundled/django/contrib/gis/db/models/aggregates.py", line 2, in <module>
from django.contrib.gis.db.models.sql import GeomField
File "/usr/lib/python2.7/dist-packages/kalite/packages/bundled/django/contrib/gis/db/models/sql/__init__.py", line 2, in <module>
from django.contrib.gis.db.models.sql.query import GeoQuery
File "/usr/lib/python2.7/dist-packages/kalite/packages/bundled/django/contrib/gis/db/models/sql/query.py", line 4, in <module>
from django.contrib.gis.db.models.fields import GeometryField
File "/usr/lib/python2.7/dist-packages/kalite/packages/bundled/django/contrib/gis/db/models/fields.py", line 4, in <module>
from django.contrib.gis import forms
File "/usr/lib/python2.7/dist-packages/kalite/packages/bundled/django/contrib/gis/forms/__init__.py", line 2, in <module>
from django.contrib.gis.forms.fields import GeometryField
File "/usr/lib/python2.7/dist-packages/kalite/packages/bundled/django/contrib/gis/forms/fields.py", line 8, in <module>
from django.contrib.gis.geos import GEOSException, GEOSGeometry
File "/usr/lib/python2.7/dist-packages/kalite/packages/bundled/django/contrib/gis/geos/__init__.py", line 6, in <module>
from django.contrib.gis.geos.geometry import GEOSGeometry, wkt_regex, hex_regex
File "/usr/lib/python2.7/dist-packages/kalite/packages/bundled/django/contrib/gis/geos/geometry.py", line 16, in <module>
from django.contrib.gis.geos.coordseq import GEOSCoordSeq
File "/usr/lib/python2.7/dist-packages/kalite/packages/bundled/django/contrib/gis/geos/coordseq.py", line 9, in <module>
from django.contrib.gis.geos.libgeos import CS_PTR
File "/usr/lib/python2.7/dist-packages/kalite/packages/bundled/django/contrib/gis/geos/libgeos.py", line 131, in <module>
_verinfo = geos_version_info()
File "/usr/lib/python2.7/dist-packages/kalite/packages/bundled/django/contrib/gis/geos/libgeos.py", line 126, in geos_version_info
raise GEOSException('Could not parse version info string "%s"' % ver)
GEOSException: Could not parse version info string "3.6.2-CAPI-1.10.2 4d2925d6"

[ERROR] [2018-09-22 21:16:59,482] cherrypy.error: [22/Sep/2018:21:16:59] ENGINE GEOSException(u'Could not parse version info string "3.6.2-CAPI-1.10.2 4d2925d6"',)
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/kalite/packages/dist/cherrypy/wsgiserver/wsgiserver2.py", line 1353, in communicate
req.respond()
File "/usr/lib/python2.7/dist-packages/kalite/packages/dist/cherrypy/wsgiserver/wsgiserver2.py", line 868, in respond
self.server.gateway(self).respond()
File "/usr/lib/python2.7/dist-packages/kalite/packages/dist/cherrypy/wsgiserver/wsgiserver2.py", line 2257, in respond
response = self.req.server.wsgi_app(self.env, self.start_response)
File "/usr/lib/python2.7/dist-packages/kalite/packages/dist/cherrypy/_cptree.py", line 299, in __call__
return app(environ, start_response)
File "/usr/lib/python2.7/dist-packages/kalite/packages/bundled/django/core/handlers/wsgi.py", line 255, in __call__
response = self.get_response(request)
File "/usr/lib/python2.7/dist-packages/kalite/packages/bundled/django/core/handlers/base.py", line 178, in get_response
response = self.handle_uncaught_exception(request, resolver, sys.exc_info())
File "/usr/lib/python2.7/dist-packages/kalite/packages/bundled/django/core/handlers/base.py", line 220, in handle_uncaught_exception
if resolver.urlconf_module is None:
File "/usr/lib/python2.7/dist-packages/kalite/packages/bundled/django/core/urlresolvers.py", line 342, in urlconf_module
self._urlconf_module = import_module(self.urlconf_name)
File "/usr/lib/python2.7/dist-packages/kalite/packages/bundled/django/utils/importlib.py", line 35, in import_module
__import__(name)
File "/usr/lib/python2.7/dist-packages/kalite/distributed/urls.py", line 14, in <module>
from . import api_urls
File "/usr/lib/python2.7/dist-packages/kalite/distributed/api_urls.py", line 12, in <module>
import kalite.coachreports.api_urls
File "/usr/lib/python2.7/dist-packages/kalite/coachreports/api_urls.py", line 3, in <module>
from .api_resources import PlaylistProgressResource, PlaylistProgressDetailResource
File "/usr/lib/python2.7/dist-packages/kalite/coachreports/api_resources.py", line 3, in <module>
from tastypie.resources import Resource
File "/usr/lib/python2.7/dist-packages/kalite/packages/dist/tastypie/resources.py", line 20, in <module>
from django.contrib.gis.db.models.fields import GeometryField
File "/usr/lib/python2.7/dist-packages/kalite/packages/bundled/django/contrib/gis/db/models/__init__.py", line 5, in <module>
from django.contrib.gis.db.models.aggregates import *
File "/usr/lib/python2.7/dist-packages/kalite/packages/bundled/django/contrib/gis/db/models/aggregates.py", line 2, in <module>
from django.contrib.gis.db.models.sql import GeomField
File "/usr/lib/python2.7/dist-packages/kalite/packages/bundled/django/contrib/gis/db/models/sql/__init__.py", line 2, in <module>
from django.contrib.gis.db.models.sql.query import GeoQuery
File "/usr/lib/python2.7/dist-packages/kalite/packages/bundled/django/contrib/gis/db/models/sql/query.py", line 4, in <module>
from django.contrib.gis.db.models.fields import GeometryField
File "/usr/lib/python2.7/dist-packages/kalite/packages/bundled/django/contrib/gis/db/models/fields.py", line 4, in <module>
from django.contrib.gis import forms
File "/usr/lib/python2.7/dist-packages/kalite/packages/bundled/django/contrib/gis/forms/__init__.py", line 2, in <module>
from django.contrib.gis.forms.fields import GeometryField
File "/usr/lib/python2.7/dist-packages/kalite/packages/bundled/django/contrib/gis/forms/fields.py", line 8, in <module>
from django.contrib.gis.geos import GEOSException, GEOSGeometry
File "/usr/lib/python2.7/dist-packages/kalite/packages/bundled/django/contrib/gis/geos/__init__.py", line 6, in <module>
from django.contrib.gis.geos.geometry import GEOSGeometry, wkt_regex, hex_regex
File "/usr/lib/python2.7/dist-packages/kalite/packages/bundled/django/contrib/gis/geos/geometry.py", line 16, in <module>
from django.contrib.gis.geos.coordseq import GEOSCoordSeq
File "/usr/lib/python2.7/dist-packages/kalite/packages/bundled/django/contrib/gis/geos/coordseq.py", line 9, in <module>
from django.contrib.gis.geos.libgeos import CS_PTR
File "/usr/lib/python2.7/dist-packages/kalite/packages/bundled/django/contrib/gis/geos/libgeos.py", line 131, in <module>
_verinfo = geos_version_info()
File "/usr/lib/python2.7/dist-packages/kalite/packages/bundled/django/contrib/gis/geos/libgeos.py", line 126, in geos_version_info
raise GEOSException('Could not parse version info string "%s"' % ver)
GEOSException: Could not parse version info string "3.6.2-CAPI-1.10.2 4d2925d6"
 
Perfil
 Citar
Joel Barrios Dueñas
Publicado en 23/09/18 03:42  

Admin
Site Admin

Inscrito: 17/02/07 Publicaciones: 1685
País:Mexico
Hasta donde pude examinar, todo indica que necesitas actualizar la versión de django o bajar la versión de Geos.

¿Qué versiones de Django y Geos tienes instalados'
 
Perfil Sitio Web
 Citar
TuxTux
Publicado en 25/09/18 04:27  

Miembro regular
Forum User

Inscrito: 17/08/11 Publicaciones: 109
Disculpe, ¿Cómo puedo saber eso?

He ejecutado
PHP Formatted Code
django-admin -V

Pero no muestra la versión.
otro comando que muestra es:
PHP Formatted Code
 geos-config

¿A estos se refiere?

al parecer es algo con la base de datos... ¿Será?
he ejecutado:
PHP Formatted Code
 kalite manage setup


Muestra el siguiente error:
Traceback (most recent call last):
PHP Formatted Code
  File "/usr/lib/python2.7/dist-packages/kalite/packages/bundled/django/core/management/base.py", line 224, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/usr/lib/python2.7/dist-packages/kalite/packages/bundled/django/core/management/base.py", line 263, in execute
    output = self.handle(*args, **options)
  File "/usr/lib/python2.7/dist-packages/kalite/distributed/management/commands/setup.py", line 477, in handle
    call_command("collectstatic_js_reverse", interactive=False)
  File "/usr/lib/python2.7/dist-packages/kalite/packages/bundled/django/core/management/__init__.py", line 161, in call_command
    return klass.execute(*args, **defaults)
  File "/usr/lib/python2.7/dist-packages/kalite/packages/bundled/django/core/management/base.py", line 263, in execute
    output = self.handle(*args, **options)
  File "/usr/lib/python2.7/dist-packages/kalite/packages/dist/django_js_reverse/management/commands/collectstatic_js_reverse.py", line 26, in handle
    content = urls_js()
  File "/usr/lib/python2.7/dist-packages/kalite/packages/dist/django_js_reverse/views.py", line 50, in urls_js
    'urls': sorted(list(prepare_url_list(default_urlresolver))),
  File "/usr/lib/python2.7/dist-packages/kalite/packages/dist/django_js_reverse/views.py", line 74, in prepare_url_list
    for url_name in urlresolver.reverse_dict.keys():
  File "/usr/lib/python2.7/dist-packages/kalite/packages/bundled/django/core/urlresolvers.py", line 297, in reverse_dict
    self._populate()
  File "/usr/lib/python2.7/dist-packages/kalite/packages/bundled/django/core/urlresolvers.py", line 263, in _populate
    for pattern in reversed(self.url_patterns):
  File "/usr/lib/python2.7/dist-packages/kalite/packages/bundled/django/core/urlresolvers.py", line 347, in url_patterns
    patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
  File "/usr/lib/python2.7/dist-packages/kalite/packages/bundled/django/core/urlresolvers.py", line 342, in urlconf_module
    self._urlconf_module = import_module(self.urlconf_name)
  File "/usr/lib/python2.7/dist-packages/kalite/packages/bundled/django/utils/importlib.py", line 35, in import_module
    __import__(name)
  File "/usr/lib/python2.7/dist-packages/kalite/distributed/urls.py", line 14, in <module>
    from . import api_urls
  File "/usr/lib/python2.7/dist-packages/kalite/distributed/api_urls.py", line 12, in <module>
    import kalite.coachreports.api_urls
  File "/usr/lib/python2.7/dist-packages/kalite/coachreports/api_urls.py", line 3, in <module>
    from .api_resources import PlaylistProgressResource, PlaylistProgressDetailResource
  File "/usr/lib/python2.7/dist-packages/kalite/coachreports/api_resources.py", line 3, in <module>
    from tastypie.resources import Resource
  File "/usr/lib/python2.7/dist-packages/kalite/packages/dist/tastypie/resources.py", line 20, in <module>
    from django.contrib.gis.db.models.fields import GeometryField
  File "/usr/lib/python2.7/dist-packages/kalite/packages/bundled/django/contrib/gis/db/models/__init__.py", line 5, in <module>
    from django.contrib.gis.db.models.aggregates import *
  File "/usr/lib/python2.7/dist-packages/kalite/packages/bundled/django/contrib/gis/db/models/aggregates.py", line 2, in <module>
    from django.contrib.gis.db.models.sql import GeomField
  File "/usr/lib/python2.7/dist-packages/kalite/packages/bundled/django/contrib/gis/db/models/sql/__init__.py", line 2, in <module>
    from django.contrib.gis.db.models.sql.query import GeoQuery
  File "/usr/lib/python2.7/dist-packages/kalite/packages/bundled/django/contrib/gis/db/models/sql/query.py", line 4, in <module>
    from django.contrib.gis.db.models.fields import GeometryField
  File "/usr/lib/python2.7/dist-packages/kalite/packages/bundled/django/contrib/gis/db/models/fields.py", line 4, in <module>
    from django.contrib.gis import forms
  File "/usr/lib/python2.7/dist-packages/kalite/packages/bundled/django/contrib/gis/forms/__init__.py", line 2, in <module>
    from django.contrib.gis.forms.fields import GeometryField
  File "/usr/lib/python2.7/dist-packages/kalite/packages/bundled/django/contrib/gis/forms/fields.py", line 8, in <module>
    from django.contrib.gis.geos import GEOSException, GEOSGeometry
  File "/usr/lib/python2.7/dist-packages/kalite/packages/bundled/django/contrib/gis/geos/__init__.py", line 6, in <module>
    from django.contrib.gis.geos.geometry import GEOSGeometry, wkt_regex, hex_regex
  File "/usr/lib/python2.7/dist-packages/kalite/packages/bundled/django/contrib/gis/geos/geometry.py", line 16, in <module>
    from django.contrib.gis.geos.coordseq import GEOSCoordSeq
  File "/usr/lib/python2.7/dist-packages/kalite/packages/bundled/django/contrib/gis/geos/coordseq.py", line 9, in <module>
    from django.contrib.gis.geos.libgeos import CS_PTR
  File "/usr/lib/python2.7/dist-packages/kalite/packages/bundled/django/contrib/gis/geos/libgeos.py", line 131, in <module>
    _verinfo = geos_version_info()
  File "/usr/lib/python2.7/dist-packages/kalite/packages/bundled/django/contrib/gis/geos/libgeos.py", line 126, in geos_version_info
    raise GEOSException('Could not parse version info string "%s"' % ver)
GEOSException: Could not parse version info string "3.7.0-CAPI-1.11.0 673b9939"


Para la instación he seguido el tutorial de la página oficial del proyecto:
https://ka-lite.readthedocs.io/en/latest/installguide/install_all.html#ubuntu-debian-deb

Gracias por la respuesta!
 
Perfil
 Citar
TuxTux
Publicado en 25/09/18 05:28  

Miembro regular
Forum User

Inscrito: 17/08/11 Publicaciones: 109
igual ejecuté este comando:

PHP Formatted Code
systemctl status ka-lite.service


el cual arrojó

PHP Formatted Code
 ka-lite.service - LSB: ka-lite daemon, a local Khan Academy content server
   Loaded: loaded (/etc/init.d/ka-lite; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Tue 2018-09-25 00:23:32 CDT; 2min 11s ago

sep 25 00:23:30 user-HP-G42-Notebook-PC systemd[1]: Starting LSB: ka-lite daemon, a local Khan Academy content server...
sep 25 00:23:31 user-HP-G42-Notebook-PC su[2331]: Successful su for telebachillerato by root
sep 25 00:23:31 user-HP-G42-Notebook-PC su[2331]: + ??? root:telebachillerato
sep 25 00:23:32 user-HP-G42-Notebook-PC ka-lite[2323]: Running 'kalite start' as daemon (system service)
sep 25 00:23:32 user-HP-G42-Notebook-PC ka-lite[2323]: Port 8008 is occupied. Please close the process that is using it.
sep 25 00:23:32 user-HP-G42-Notebook-PC systemd[1]: ka-lite.service: Control process exited, code=exited status=1
sep 25 00:23:32 user-HP-G42-Notebook-PC systemd[1]: ka-lite.service: Failed with result 'exit-code'.
sep 25 00:23:32 user-HP-G42-Notebook-PC systemd[1]: Failed to start LSB: ka-lite daemon, a local Khan Academy content server.
 


espero me puedan orientar...
 
Perfil
 Citar
TuxTux
Publicado en 28/09/18 10:03  

Miembro regular
Forum User

Inscrito: 17/08/11 Publicaciones: 109
Como dicen por ahí...

¿Que hiciste?
Apreté todos los botones... jejeje

Ya funciona el servidor local de Khan Academy....


La verdad no sé que fue lo que hice...

Encontré esto:
https://stackoverflow.com/questions/18643998/geodjango-geosexception-error

y realicé lo que dice:

PHP Formatted Code

This is my solution (obviously it is ugly, like my English, but works). The problem is that the versions string has an white space unwanted in the RegEx.

The error says:

GEOSException: Could not parse version info string "3.4.2-CAPI-1.8.2 r3921"

And the geos_version_info warns:

Regular expression should be able to parse version strings such as '3.0.0rc4-CAPI-1.3.3', '3.0.0-CAPI-1.4.1' or '3.4.0dev-CAPI-1.8.0'

Edit this file: site-packages/django/contrib/gis/geos/libgeos.py

Look for the function: geos_version_info

And change this line:

ver = geos_version().decode()

With this line:

ver = geos_version().decode().split(' ')[0]



Y ahora está funcionando Khan Academy.

Big Grin

Gracias!
 
Perfil
 Citar
Contenido generado en: 0,84 segundos Nuevo tema Publicar Respuesta
 Todas las horas son UTC. Hora actual 10:24 .
Tema normal Tema normal
Tema persistente Tema persistente
Tema cerrado Tema cerrado
Nueva publicación Nueva publicación
Persistente con nueva publicación Persistente con nueva publicación
Cerrado con nueva publicación Cerrado con nueva publicación
Ver publicaciones anónimas 
Usuarios anónimos pueden publicar 
Se permite HTML Filtrado 
Contenido censurado