built-colab / license-key-manager Goto Github PK
View Code? Open in Web Editor NEWMulti-purpose License Manager
License: MIT License
Multi-purpose License Manager
License: MIT License
Im getting this Error when I run the Container
Traceback (most recent call last): File "/usr/local/bin/gunicorn", line 8, in <module> sys.exit(run()) File "/usr/local/lib/python3.10/site-packages/gunicorn/app/wsgiapp.py", line 67, in run WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]").run() File "/usr/local/lib/python3.10/site-packages/gunicorn/app/base.py", line 236, in run super().run() File "/usr/local/lib/python3.10/site-packages/gunicorn/app/base.py", line 72, in run Arbiter(self).run() File "/usr/local/lib/python3.10/site-packages/gunicorn/arbiter.py", line 58, in __init__ self.setup(app) File "/usr/local/lib/python3.10/site-packages/gunicorn/arbiter.py", line 118, in setup self.app.wsgi() File "/usr/local/lib/python3.10/site-packages/gunicorn/app/base.py", line 67, in wsgi self.callable = self.load() File "/usr/local/lib/python3.10/site-packages/gunicorn/app/wsgiapp.py", line 58, in load return self.load_wsgiapp() File "/usr/local/lib/python3.10/site-packages/gunicorn/app/wsgiapp.py", line 48, in load_wsgiapp return util.import_app(self.app_uri) File "/usr/local/lib/python3.10/site-packages/gunicorn/util.py", line 371, in import_app mod = importlib.import_module(module) File "/usr/local/lib/python3.10/importlib/__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 1050, in _gcd_import File "<frozen importlib._bootstrap>", line 1027, in _find_and_load File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 688, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 883, in exec_module File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed File "/license-manager/bin/__init__.py", line 6, in <module> db = SQLAlchemy() File "/home/appuser/.local/lib/python3.10/site-packages/flask_sqlalchemy/__init__.py", line 758, in __init__ _include_sqlalchemy(self, query_class) File "/home/appuser/.local/lib/python3.10/site-packages/flask_sqlalchemy/__init__.py", line 112, in _include_sqlalchemy for key in module.__all__: File "/home/appuser/.local/lib/python3.10/site-packages/sqlalchemy/__init__.py", line 294, in __getattr__ raise AttributeError(f"module {__name__!r} has no attribute {name!r}") AttributeError: module 'sqlalchemy' has no attribute '__all__'. Did you mean: '__file__'?
In https://github.com/BUILT-CoLAB/license-key-manager#validation Parameters 'payload' how to PublicKey-encrypted message that containts the HardwareID and the Serial Key of the License?
Please note that this repository is publicly visible to all users!
/cc @jpdias
Hi,
I'm trying to run the image in Docker but receiving the following error:
`Traceback (most recent call last):
File "/home/appuser/.local/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 3112, in _wrap_pool_connect
return fn()
File "/home/appuser/.local/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 301, in connect
return _ConnectionFairy._checkout(self)
File "/home/appuser/.local/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 748, in _checkout
fairy = _ConnectionRecord.checkout(pool)
File "/home/appuser/.local/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 419, in checkout
rec = pool._do_get()
File "/home/appuser/.local/lib/python3.10/site-packages/sqlalchemy/pool/impl.py", line 259, in _do_get
return self._create_connection()
File "/home/appuser/.local/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 247, in _create_connection
return _ConnectionRecord(self)
File "/home/appuser/.local/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 362, in init
self.__connect(first_connect_check=True)
File "/home/appuser/.local/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 597, in connect
with util.safe_reraise():
File "/home/appuser/.local/lib/python3.10/site-packages/sqlalchemy/util/langhelpers.py", line 70, in exit
compat.raise(
File "/home/appuser/.local/lib/python3.10/site-packages/sqlalchemy/util/compat.py", line 198, in raise
raise exception
File "/home/appuser/.local/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 592, in __connect
connection = pool._invoke_creator(self)
File "/home/appuser/.local/lib/python3.10/site-packages/sqlalchemy/engine/create.py", line 576, in connect
return dialect.connect(*cargs, **cparams)
File "/home/appuser/.local/lib/python3.10/site-packages/sqlalchemy/engine/default.py", line 548, in connect
return self.dbapi.connect(*cargs, **cparams)
sqlite3.OperationalError: unable to open database file
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/bin/gunicorn", line 8, in
sys.exit(run())
File "/usr/local/lib/python3.10/site-packages/gunicorn/app/wsgiapp.py", line 67, in run
WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]").run()
File "/usr/local/lib/python3.10/site-packages/gunicorn/app/base.py", line 231, in run
super().run()
File "/usr/local/lib/python3.10/site-packages/gunicorn/app/base.py", line 72, in run
Arbiter(self).run()
File "/usr/local/lib/python3.10/site-packages/gunicorn/arbiter.py", line 58, in init
self.setup(app)
File "/usr/local/lib/python3.10/site-packages/gunicorn/arbiter.py", line 118, in setup
self.app.wsgi()
File "/usr/local/lib/python3.10/site-packages/gunicorn/app/base.py", line 67, in wsgi
self.callable = self.load()
File "/usr/local/lib/python3.10/site-packages/gunicorn/app/wsgiapp.py", line 58, in load
return self.load_wsgiapp()
File "/usr/local/lib/python3.10/site-packages/gunicorn/app/wsgiapp.py", line 48, in load_wsgiapp
return util.import_app(self.app_uri)
File "/usr/local/lib/python3.10/site-packages/gunicorn/util.py", line 412, in import_app
app = app(*args, **kwargs)
File "/license-manager/bin/init.py", line 48, in create_app
db.create_all(app=app)
File "/home/appuser/.local/lib/python3.10/site-packages/flask_sqlalchemy/init.py", line 1094, in create_all
self._execute_for_all_tables(app, bind, 'create_all')
File "/home/appuser/.local/lib/python3.10/site-packages/flask_sqlalchemy/init.py", line 1086, in _execute_for_all_tables
op(bind=self.get_engine(app, bind), **extra)
File "/home/appuser/.local/lib/python3.10/site-packages/sqlalchemy/sql/schema.py", line 4741, in create_all
bind._run_ddl_visitor(
File "/home/appuser/.local/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 2978, in _run_ddl_visitor
with self.begin() as conn:
File "/home/appuser/.local/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 2894, in begin
conn = self.connect(close_with_result=close_with_result)
File "/home/appuser/.local/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 3066, in connect
return self._connection_cls(self, close_with_result=close_with_result)
File "/home/appuser/.local/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 91, in init
else engine.raw_connection()
File "/home/appuser/.local/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 3145, in raw_connection
return self._wrap_pool_connect(self.pool.connect, _connection)
File "/home/appuser/.local/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 3115, in _wrap_pool_connect
Connection.handle_dbapi_exception_noconnection(
File "/home/appuser/.local/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 2003, in handle_dbapi_exception_noconnection
util.raise(
File "/home/appuser/.local/lib/python3.10/site-packages/sqlalchemy/util/compat.py", line 198, in raise
raise exception
File "/home/appuser/.local/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 3112, in _wrap_pool_connect
return fn()
File "/home/appuser/.local/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 301, in connect
return _ConnectionFairy._checkout(self)
File "/home/appuser/.local/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 748, in _checkout
fairy = _ConnectionRecord.checkout(pool)
File "/home/appuser/.local/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 419, in checkout
rec = pool._do_get()
File "/home/appuser/.local/lib/python3.10/site-packages/sqlalchemy/pool/impl.py", line 259, in _do_get
return self._create_connection()
File "/home/appuser/.local/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 247, in _create_connection
return _ConnectionRecord(self)
File "/home/appuser/.local/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 362, in init
self.__connect(first_connect_check=True)
File "/home/appuser/.local/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 597, in connect
with util.safe_reraise():
File "/home/appuser/.local/lib/python3.10/site-packages/sqlalchemy/util/langhelpers.py", line 70, in exit
compat.raise(
File "/home/appuser/.local/lib/python3.10/site-packages/sqlalchemy/util/compat.py", line 198, in raise
raise exception
File "/home/appuser/.local/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 592, in __connect
connection = pool._invoke_creator(self)
File "/home/appuser/.local/lib/python3.10/site-packages/sqlalchemy/engine/create.py", line 576, in connect
return dialect.connect(*cargs, **cparams)
File "/home/appuser/.local/lib/python3.10/site-packages/sqlalchemy/engine/default.py", line 548, in connect
return self.dbapi.connect(*cargs, **cparams)
sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) unable to open database file
(Background on this error at: http://sqlalche.me/e/14/e3q8)`
For example:
Client requests to link hardware to the key.
---> The server can choose to reject it by telling the Client that the key has expired.
---> The server can also choose to accept it, and hand the Client the timestamp in the database to the Client.
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.