SQL alchemy crashing Pycharm (Process finished with exit code -1073741819 (0xC0000005))
When using SQLalchemy with Pycharm, Pycharm crashes with the error code:
Process finished with exit code -1073741819 (0xC0000005)
If I execute the following code in the PyCharm Terminal everything works fine:
(qgis_home_project) PS C:\Users\james\OneDrive\Documents\pycharm_projects\qgis_home_project> python
Python 3.10.9 | packaged by conda-forge | (main, Feb 2 2023, 20:14:58) [MSC v.1929 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from database import session
>>> from db_models.models import User
>>> from sqlalchemy import select
>>> user = session.scalar(select(User).where(User.first_name == 'James'))
>>> user.first_name
'James'
However executing the code in the PyCharm Python console or running a script using the Pycharm 'Run' button crashes.
Any idea of a fix?
请先登录再写评论。
Hello,
Could you please upload a simplified project example to reproduce
to the FTP
https://uploads.jetbrains.com/ and please let me know the filename.