saurabhshri / ccextractor-web Goto Github PK
View Code? Open in Web Editor NEW๐ฒ WebApp for subtitle/closed caption extraction through CCExtractor. Developed under GSoC 2018 with CCExtractor.
License: MIT License
๐ฒ WebApp for subtitle/closed caption extraction through CCExtractor. Developed under GSoC 2018 with CCExtractor.
License: MIT License
When running 'run.py' and accessing 127.0.0.1:5000, I got this:
Traceback (most recent call last):
File "/home/----/.local/lib/python3.5/site-packages/flask/app.py", line 2309, in __call__
return self.wsgi_app(environ, start_response)
File "/home/----/.local/lib/python3.5/site-packages/flask/app.py", line 2295, in wsgi_app
response = self.handle_exception(e)
File "/home/----/.local/lib/python3.5/site-packages/flask/app.py", line 1741, in handle_exception
reraise(exc_type, exc_value, tb)
File "/home/----/.local/lib/python3.5/site-packages/flask/_compat.py", line 35, in reraise
raise value
File "/home/----/.local/lib/python3.5/site-packages/flask/app.py", line 2292, in wsgi_app
response = self.full_dispatch_request()
File "/home/----/.local/lib/python3.5/site-packages/flask/app.py", line 1808, in full_dispatch_request
self.try_trigger_before_first_request_functions()
File "/home/----/.local/lib/python3.5/site-packages/flask/app.py", line 1855, in try_trigger_before_first_request_functions
func()
File "/home/----/ccextractor-web/run.py", line 214, in before_first_request
db.create_all()
File "/home/----/.local/lib/python3.5/site-packages/flask_sqlalchemy/__init__.py", line 963, in create_all
self._execute_for_all_tables(app, bind, 'create_all')
File "/home/----/.local/lib/python3.5/site-packages/flask_sqlalchemy/__init__.py", line 955, in _execute_for_all_tables
op(bind=self.get_engine(app, bind), **extra)
File "/home/----/.local/lib/python3.5/site-packages/sqlalchemy/sql/schema.py", line 4005, in create_all
tables=tables)
File "/home/----/.local/lib/python3.5/site-packages/sqlalchemy/engine/base.py", line 1939, in _run_visitor
with self._optional_conn_ctx_manager(connection) as conn:
File "/usr/lib/python3.5/contextlib.py", line 59, in __enter__
return next(self.gen)
File "/home/----/.local/lib/python3.5/site-packages/sqlalchemy/engine/base.py", line 1932, in _optional_conn_ctx_manager
with self.contextual_connect() as conn:
File "/home/----/.local/lib/python3.5/site-packages/sqlalchemy/engine/base.py", line 2123, in contextual_connect
self._wrap_pool_connect(self.pool.connect, None),
File "/home/----/.local/lib/python3.5/site-packages/sqlalchemy/engine/base.py", line 2162, in _wrap_pool_connect
e, dialect, self)
File "/home/----/.local/lib/python3.5/site-packages/sqlalchemy/engine/base.py", line 1476, in _handle_dbapi_exception_noconnection
exc_info
File "/home/----/.local/lib/python3.5/site-packages/sqlalchemy/util/compat.py", line 265, in raise_from_cause
reraise(type(exception), exception, tb=exc_tb, cause=cause)
File "/home/----/.local/lib/python3.5/site-packages/sqlalchemy/util/compat.py", line 248, in reraise
raise value.with_traceback(tb)
File "/home/----/.local/lib/python3.5/site-packages/sqlalchemy/engine/base.py", line 2158, in _wrap_pool_connect
return fn()
File "/home/----/.local/lib/python3.5/site-packages/sqlalchemy/pool.py", line 400, in connect
return _ConnectionFairy._checkout(self)
File "/home/----/.local/lib/python3.5/site-packages/sqlalchemy/pool.py", line 788, in _checkout
fairy = _ConnectionRecord.checkout(pool)
File "/home/----/.local/lib/python3.5/site-packages/sqlalchemy/pool.py", line 529, in checkout
rec = pool._do_get()
File "/home/----/.local/lib/python3.5/site-packages/sqlalchemy/pool.py", line 1193, in _do_get
self._dec_overflow()
File "/home/----/.local/lib/python3.5/site-packages/sqlalchemy/util/langhelpers.py", line 66, in __exit__
compat.reraise(exc_type, exc_value, exc_tb)
File "/home/----/.local/lib/python3.5/site-packages/sqlalchemy/util/compat.py", line 249, in reraise
raise value
File "/home/----/.local/lib/python3.5/site-packages/sqlalchemy/pool.py", line 1190, in _do_get
return self._create_connection()
File "/home/----/.local/lib/python3.5/site-packages/sqlalchemy/pool.py", line 347, in _create_connection
return _ConnectionRecord(self)
File "/home/----/.local/lib/python3.5/site-packages/sqlalchemy/pool.py", line 474, in __init__
self.__connect(first_connect_check=True)
File "/home/----/.local/lib/python3.5/site-packages/sqlalchemy/pool.py", line 671, in __connect
connection = pool._invoke_creator(self)
File "/home/----/.local/lib/python3.5/site-packages/sqlalchemy/engine/strategies.py", line 106, in connect
return dialect.connect(*cargs, **cparams)
File "/home/----/.local/lib/python3.5/site-packages/sqlalchemy/engine/default.py", line 412, in connect
return self.dbapi.connect(*cargs, **cparams)
File "/home/----/.local/lib/python3.5/site-packages/pymysql/__init__.py", line 94, in Connect
return Connection(*args, **kwargs)
File "/home/----/.local/lib/python3.5/site-packages/pymysql/connections.py", line 327, in __init__
self.connect()
File "/home/----/.local/lib/python3.5/site-packages/pymysql/connections.py", line 598, in connect
self._request_authentication()
File "/home/----/.local/lib/python3.5/site-packages/pymysql/connections.py", line 852, in _request_authentication
auth_packet = self._read_packet()
File "/home/----/.local/lib/python3.5/site-packages/pymysql/connections.py", line 683, in _read_packet
packet.check_error()
File "/home/----/.local/lib/python3.5/site-packages/pymysql/protocol.py", line 220, in check_error
err.raise_mysql_exception(self._data)
File "/home/----/.local/lib/python3.5/site-packages/pymysql/err.py", line 109, in raise_mysql_exception
raise errorclass(errno, errval)
sqlalchemy.exc.InternalError: (pymysql.err.InternalError) (1698, "Access denied for user 'root'@'localhost'") (Background on this error at: http://sqlalche.me/e/2j85)
The web page also show the error, like this:
I'm using python 3.5.3 on Devuan. Also, I was using a X11 forwarded Firefox tunnelled using ssh.
Pipenv is the new standard for package management in python and officially recommended by Python.
@saurabhshri you might like using it bro ๐
https://opensource.com/article/18/2/why-python-devs-should-use-pipenv
I have this problem when i try to run python3 run.py:
Traceback (most recent call last):
File "run.py", line 12, in
from flask import Flask, g, session, render_template
ModuleNotFoundError: No module named 'flask'
Currently admin account is created only when initialising app in 'local mode'. Create an admin account when initialising app irrespective of application 'mode'.
Relevant section of code:
Line 52 in 61d78ca
Relevant config :
ccextractor-web/instance/config.py
Line 172 in 61d78ca
Ref : #4 (comment)
When trying to boot this up, it crashes reporting the following:
File "run.py", line 52
def init_app() -> bool:
^
SyntaxError: invalid syntax
I am gonna' personally look to see if I can't fix it myself: but, regardless, I'll make the issue
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.