PyCharm freezes on Debug Peewee module

 

#while running this code Pycharm freezes
#But runs in Run with no problem

Build #PC-213.6777.50, built on January 27, 2022

Runtime version: 11.0.13+7-b1751.25 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o

from peewee import *

print("Model3")

db = SqliteDatabase('qwertyvpn2.db')


class BaseModel(Model):
print("Model4")
"""A base model that will use our Postgresql database"""

class Meta:
database = db


class User(BaseModel):
print("Model5")
username = CharField()

class Meta:
database = db
0
1 comment

Hi, does it work when running the code from the terminal outside of the IDE? 

Could you please provide:

1. Logs from **Help | Collect Logs and Diagnostic Data** after reproducing the issue

2. Several thread dumps collected according to https://intellij-support.jetbrains.com/hc/en-us/articles/206544899 using the `jstack` utility while IDE is being unresponsive

You can use uploading service at https://uploads.jetbrains.com/ , and provide upload ID in your reply. 

0

Please sign in to leave a comment.