if im doing anything wrong then im sorry its my first time using stack overflow and python. Im trying to setup FCMS for the game Elite Dangerous Because i want to modify stuff and upgrade it a bit And keep Getting an error wich from what i read is probably from sqlalchmy:
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "C:\Users\mmuch\Desktop\FCMS-master\FCMS\env\Scripts\initialize_FCMS_db.exe\__main__.py", line 7, in <module>
File "C:\Users\mmuch\Desktop\FCMS-master\FCMS\FCMS\scripts\initialize_db.py", line 34, in main
with env['request'].tm:
File "C:\Users\mmuch\Desktop\FCMS-master\FCMS\env\Lib\site-packages\transaction\_manager.py", line 142, in __exit__
self.commit()
File "C:\Users\mmuch\Desktop\FCMS-master\FCMS\env\Lib\site-packages\transaction\_manager.py", line 133, in commit
return self.get().commit()
^^^^^^^^^^^^^^^^^^^
File "C:\Users\mmuch\Desktop\FCMS-master\FCMS\env\Lib\site-packages\transaction\_transaction.py", line 282, in commit
raise v.with_traceback(tb)
File "C:\Users\mmuch\Desktop\FCMS-master\FCMS\env\Lib\site-packages\transaction\_transaction.py", line 273, in commit
self._commitResources()
File "C:\Users\mmuch\Desktop\FCMS-master\FCMS\env\Lib\site-packages\transaction\_transaction.py", line 456, in _commitResources
raise v.with_traceback(tb)
File "C:\Users\mmuch\Desktop\FCMS-master\FCMS\env\Lib\site-packages\transaction\_transaction.py", line 428, in _commitResources
rm.tpc_begin(self)
File "C:\Users\mmuch\Desktop\FCMS-master\FCMS\env\Lib\site-packages\zope\sqlalchemy\datamanager.py", line 140, in tpc_begin
self.session.flush()
File "C:\Users\mmuch\Desktop\FCMS-master\FCMS\env\Lib\site-packages\sqlalchemy\orm\session.py", line 4312, in flush
self._flush(objects)
File "C:\Users\mmuch\Desktop\FCMS-master\FCMS\env\Lib\site-packages\sqlalchemy\orm\session.py", line 4447, in _flush
with util.safe_reraise():
File "C:\Users\mmuch\Desktop\FCMS-master\FCMS\env\Lib\site-packages\sqlalchemy\util\langhelpers.py", line 146, in __exit__
raise exc_value.with_traceback(exc_tb)
File "C:\Users\mmuch\Desktop\FCMS-master\FCMS\env\Lib\site-packages\sqlalchemy\orm\session.py", line 4408, in _flush
flush_context.execute()
File "C:\Users\mmuch\Desktop\FCMS-master\FCMS\env\Lib\site-packages\sqlalchemy\orm\unitofwork.py", line 466, in execute
rec.execute(self)
File "C:\Users\mmuch\Desktop\FCMS-master\FCMS\env\Lib\site-packages\sqlalchemy\orm\unitofwork.py", line 642, in execute
util.preloaded.orm_persistence.save_obj(
File "C:\Users\mmuch\Desktop\FCMS-master\FCMS\env\Lib\site-packages\sqlalchemy\orm\persistence.py", line 60, in save_obj
for (
File "C:\Users\mmuch\Desktop\FCMS-master\FCMS\env\Lib\site-packages\sqlalchemy\orm\persistence.py", line 221, in _organize_states_for_save
for state, dict_, mapper, connection in _connections_for_states(
File "C:\Users\mmuch\Desktop\FCMS-master\FCMS\env\Lib\site-packages\sqlalchemy\orm\persistence.py", line 1726, in _connections_for_states
connection = uowtransaction.transaction.connection(base_mapper)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<string>", line 2, in connection
File "C:\Users\mmuch\Desktop\FCMS-master\FCMS\env\Lib\site-packages\sqlalchemy\orm\state_changes.py", line 139, in _go
ret_value = fn(self, *arg, **kw)
^^^^^^^^^^^^^^^^^^^^
File "C:\Users\mmuch\Desktop\FCMS-master\FCMS\env\Lib\site-packages\sqlalchemy\orm\session.py", line 995, in connection
return self._connection_for_bind(bind, execution_options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<string>", line 2, in _connection_for_bind
File "C:\Users\mmuch\Desktop\FCMS-master\FCMS\env\Lib\site-packages\sqlalchemy\orm\state_changes.py", line 139, in _go
ret_value = fn(self, *arg, **kw)
^^^^^^^^^^^^^^^^^^^^
File "C:\Users\mmuch\Desktop\FCMS-master\FCMS\env\Lib\site-packages\sqlalchemy\orm\session.py", line 1129, in _connection_for_bind
conn = self._parent._connection_for_bind(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<string>", line 2, in _connection_for_bind
File "C:\Users\mmuch\Desktop\FCMS-master\FCMS\env\Lib\site-packages\sqlalchemy\orm\state_changes.py", line 139, in _go
ret_value = fn(self, *arg, **kw)
^^^^^^^^^^^^^^^^^^^^
File "C:\Users\mmuch\Desktop\FCMS-master\FCMS\env\Lib\site-packages\sqlalchemy\orm\session.py", line 1143, in _connection_for_bind
conn = bind.connect()
^^^^^^^^^^^^^^
File "C:\Users\mmuch\Desktop\FCMS-master\FCMS\env\Lib\site-packages\sqlalchemy\engine\base.py", line 3268, in connect
return self._connection_cls(self)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\mmuch\Desktop\FCMS-master\FCMS\env\Lib\site-packages\sqlalchemy\engine\base.py", line 145, in __init__
self._dbapi_connection = engine.raw_connection()
^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\mmuch\Desktop\FCMS-master\FCMS\env\Lib\site-packages\sqlalchemy\engine\base.py", line 3292, in raw_connection
return self.pool.connect()
^^^^^^^^^^^^^^^^^^^
File "C:\Users\mmuch\Desktop\FCMS-master\FCMS\env\Lib\site-packages\sqlalchemy\pool\base.py", line 452, in connect
return _ConnectionFairy._checkout(self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\mmuch\Desktop\FCMS-master\FCMS\env\Lib\site-packages\sqlalchemy\pool\base.py", line 1269, in _checkout
fairy = _ConnectionRecord.checkout(pool)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\mmuch\Desktop\FCMS-master\FCMS\env\Lib\site-packages\sqlalchemy\pool\base.py", line 716, in checkout
rec = pool._do_get()
^^^^^^^^^^^^^^
File "C:\Users\mmuch\Desktop\FCMS-master\FCMS\env\Lib\site-packages\sqlalchemy\pool\impl.py", line 169, in _do_get
with util.safe_reraise():
File "C:\Users\mmuch\Desktop\FCMS-master\FCMS\env\Lib\site-packages\sqlalchemy\util\langhelpers.py", line 146, in __exit__
raise exc_value.with_traceback(exc_tb)
File "C:\Users\mmuch\Desktop\FCMS-master\FCMS\env\Lib\site-packages\sqlalchemy\pool\impl.py", line 167, in _do_get
return self._create_connection()
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\mmuch\Desktop\FCMS-master\FCMS\env\Lib\site-packages\sqlalchemy\pool\base.py", line 393, in _create_connection
return _ConnectionRecord(self)
^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\mmuch\Desktop\FCMS-master\FCMS\env\Lib\site-packages\sqlalchemy\pool\base.py", line 678, in __init__
self.__connect()
File "C:\Users\mmuch\Desktop\FCMS-master\FCMS\env\Lib\site-packages\sqlalchemy\pool\base.py", line 902, in __connect
with util.safe_reraise():
File "C:\Users\mmuch\Desktop\FCMS-master\FCMS\env\Lib\site-packages\sqlalchemy\util\langhelpers.py", line 146, in __exit__
raise exc_value.with_traceback(exc_tb)
File "C:\Users\mmuch\Desktop\FCMS-master\FCMS\env\Lib\site-packages\sqlalchemy\pool\base.py", line 898, in __connect
self.dbapi_connection = connection = pool._invoke_creator(self)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\mmuch\Desktop\FCMS-master\FCMS\env\Lib\site-packages\sqlalchemy\engine\create.py", line 637, in connect
return dialect.connect(*cargs, **cparams)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\mmuch\Desktop\FCMS-master\FCMS\env\Lib\site-packages\sqlalchemy\engine\default.py", line 616, in connect
return self.loaded_dbapi.connect(*cargs, **cparams)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'options' is an invalid keyword argument for Connection()
it tried changing python versions and playing around with modules but i just cant get it to work
source https://stackoverflow.com/questions/77629494/typeerror-options-is-an-invalid-keyword-argument-for-connection-what-do-i-d
Comments
Post a Comment