-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpython_debug.log
More file actions
181 lines (181 loc) · 16.4 KB
/
python_debug.log
File metadata and controls
181 lines (181 loc) · 16.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
2025-05-11 11:25:57,120 - DEBUG - Script started with arguments: ['python/symptom_checker.py', 'predict', 'sneezing']
2025-05-11 11:25:57,120 - DEBUG - Predicting disease for symptoms: sneezing
2025-05-11 11:25:57,120 - DEBUG - Symptom 'sneezing' mapped to diseases: ['Common Cold']
2025-05-11 11:25:57,121 - DEBUG - Predicted diseases: ['Common Cold']
2025-05-11 11:25:57,121 - DEBUG - Fetching medicines for diseases: ['Common Cold']
2025-05-11 11:25:57,178 - DEBUG - Starting authorization phase
2025-05-11 11:25:57,178 - DEBUG - The provided initial strategy is mysql_native_password
2025-05-11 11:25:57,179 - INFO - package: mysql.connector.plugins
2025-05-11 11:25:57,179 - INFO - plugin_name: mysql_native_password
2025-05-11 11:25:57,180 - INFO - AUTHENTICATION_PLUGIN_CLASS: MySQLNativePasswordAuthPlugin
2025-05-11 11:25:57,183 - ERROR - Database Error: 1049 (42000): Unknown database 'medical_management_system'
2025-05-11 11:25:57,183 - ERROR - No medicines found for the predicted diseases
2025-05-11 11:26:12,674 - DEBUG - Script started with arguments: ['python/symptom_checker.py', 'predict', 'runny nose, cough']
2025-05-11 11:26:12,675 - DEBUG - Predicting disease for symptoms: runny nose, cough
2025-05-11 11:26:12,675 - DEBUG - Symptom 'runny nose' mapped to diseases: ['Common Cold']
2025-05-11 11:26:12,675 - DEBUG - Symptom 'cough' mapped to diseases: ['Common Cold']
2025-05-11 11:26:12,675 - DEBUG - Predicted diseases: ['Common Cold']
2025-05-11 11:26:12,675 - DEBUG - Fetching medicines for diseases: ['Common Cold']
2025-05-11 11:26:12,749 - DEBUG - Starting authorization phase
2025-05-11 11:26:12,749 - DEBUG - The provided initial strategy is mysql_native_password
2025-05-11 11:26:12,750 - INFO - package: mysql.connector.plugins
2025-05-11 11:26:12,750 - INFO - plugin_name: mysql_native_password
2025-05-11 11:26:12,751 - INFO - AUTHENTICATION_PLUGIN_CLASS: MySQLNativePasswordAuthPlugin
2025-05-11 11:26:12,754 - ERROR - Database Error: 1049 (42000): Unknown database 'medical_management_system'
2025-05-11 11:26:12,754 - ERROR - No medicines found for the predicted diseases
2025-05-11 11:38:42,266 - DEBUG - Script started with arguments: ['python/symptom_checker.py', 'predict', 'headache']
2025-05-11 11:38:42,266 - DEBUG - Predicting disease for symptoms: headache
2025-05-11 11:38:42,266 - DEBUG - Symptom 'headache' mapped to diseases: ['Headache', 'Fever']
2025-05-11 11:38:42,266 - DEBUG - Predicted diseases: ['Fever', 'Headache']
2025-05-11 11:38:42,266 - DEBUG - Fetching medicines for diseases: ['Fever', 'Headache']
2025-05-11 11:38:42,321 - DEBUG - Starting authorization phase
2025-05-11 11:38:42,321 - DEBUG - The provided initial strategy is mysql_native_password
2025-05-11 11:38:42,321 - INFO - package: mysql.connector.plugins
2025-05-11 11:38:42,321 - INFO - plugin_name: mysql_native_password
2025-05-11 11:38:42,322 - INFO - AUTHENTICATION_PLUGIN_CLASS: MySQLNativePasswordAuthPlugin
2025-05-11 11:38:42,323 - DEBUG - mysql_native_password completed succesfully
2025-05-11 11:38:42,324 - DEBUG - Executing query:
SELECT DISTINCT m.id, m.name, m.price, m.stock
FROM medicines m
JOIN disease_medicine_mapping dmm ON m.id = dmm.medicine_id
WHERE dmm.disease IN (%s,%s)
with params: ['Fever', 'Headache']
2025-05-11 11:38:42,327 - DEBUG - Medicines fetched: [{'id': 25, 'name': 'Paracetamol', 'price': Decimal('10.00'), 'stock': 100}, {'id': 32, 'name': 'Aspirin', 'price': Decimal('10.00'), 'stock': 100}, {'id': 26, 'name': 'Ibuprofen', 'price': Decimal('15.00'), 'stock': 100}]
2025-05-11 11:38:42,327 - DEBUG - Returning result: {'diseases': ['Fever', 'Headache'], 'medicines': [{'id': 25, 'name': 'Paracetamol', 'price': Decimal('10.00'), 'stock': 100}, {'id': 32, 'name': 'Aspirin', 'price': Decimal('10.00'), 'stock': 100}, {'id': 26, 'name': 'Ibuprofen', 'price': Decimal('15.00'), 'stock': 100}]}
2025-05-11 11:38:42,327 - ERROR - Unhandled exception: Object of type Decimal is not JSON serializable
2025-05-11 11:38:53,296 - DEBUG - Script started with arguments: ['python/symptom_checker.py', 'predict', 'body pain']
2025-05-11 11:38:53,297 - DEBUG - Predicting disease for symptoms: body pain
2025-05-11 11:38:53,297 - DEBUG - Symptom 'body pain' mapped to diseases: ['Body Pain']
2025-05-11 11:38:53,297 - DEBUG - Predicted diseases: ['Body Pain']
2025-05-11 11:38:53,297 - DEBUG - Fetching medicines for diseases: ['Body Pain']
2025-05-11 11:38:53,361 - DEBUG - Starting authorization phase
2025-05-11 11:38:53,361 - DEBUG - The provided initial strategy is mysql_native_password
2025-05-11 11:38:53,362 - INFO - package: mysql.connector.plugins
2025-05-11 11:38:53,362 - INFO - plugin_name: mysql_native_password
2025-05-11 11:38:53,363 - INFO - AUTHENTICATION_PLUGIN_CLASS: MySQLNativePasswordAuthPlugin
2025-05-11 11:38:53,363 - DEBUG - mysql_native_password completed succesfully
2025-05-11 11:38:53,364 - DEBUG - Executing query:
SELECT DISTINCT m.id, m.name, m.price, m.stock
FROM medicines m
JOIN disease_medicine_mapping dmm ON m.id = dmm.medicine_id
WHERE dmm.disease IN (%s)
with params: ['Body Pain']
2025-05-11 11:38:53,366 - DEBUG - Medicines fetched: [{'id': 26, 'name': 'Ibuprofen', 'price': Decimal('15.00'), 'stock': 100}, {'id': 33, 'name': 'Naproxen', 'price': Decimal('18.00'), 'stock': 100}, {'id': 32, 'name': 'Aspirin', 'price': Decimal('10.00'), 'stock': 100}]
2025-05-11 11:38:53,366 - DEBUG - Returning result: {'diseases': ['Body Pain'], 'medicines': [{'id': 26, 'name': 'Ibuprofen', 'price': Decimal('15.00'), 'stock': 100}, {'id': 33, 'name': 'Naproxen', 'price': Decimal('18.00'), 'stock': 100}, {'id': 32, 'name': 'Aspirin', 'price': Decimal('10.00'), 'stock': 100}]}
2025-05-11 11:38:53,367 - ERROR - Unhandled exception: Object of type Decimal is not JSON serializable
2025-05-11 11:40:20,104 - DEBUG - Script started with arguments: ['python/symptom_checker.py', 'predict', 'body pain']
2025-05-11 11:40:20,105 - DEBUG - Predicting disease for symptoms: body pain
2025-05-11 11:40:20,105 - DEBUG - Symptom 'body pain' mapped to diseases: ['Body Pain']
2025-05-11 11:40:20,105 - DEBUG - Predicted diseases: ['Body Pain']
2025-05-11 11:40:20,105 - DEBUG - Fetching medicines for diseases: ['Body Pain']
2025-05-11 11:40:20,171 - DEBUG - Starting authorization phase
2025-05-11 11:40:20,171 - DEBUG - The provided initial strategy is mysql_native_password
2025-05-11 11:40:20,171 - INFO - package: mysql.connector.plugins
2025-05-11 11:40:20,171 - INFO - plugin_name: mysql_native_password
2025-05-11 11:40:20,172 - INFO - AUTHENTICATION_PLUGIN_CLASS: MySQLNativePasswordAuthPlugin
2025-05-11 11:40:20,172 - DEBUG - mysql_native_password completed succesfully
2025-05-11 11:40:20,173 - DEBUG - Executing query:
SELECT DISTINCT m.id, m.name, m.price, m.stock
FROM medicines m
JOIN disease_medicine_mapping dmm ON m.id = dmm.medicine_id
WHERE dmm.disease IN (%s)
with params: ['Body Pain']
2025-05-11 11:40:20,176 - DEBUG - Medicines fetched: [{'id': 26, 'name': 'Ibuprofen', 'price': 15.0, 'stock': 100}, {'id': 33, 'name': 'Naproxen', 'price': 18.0, 'stock': 100}, {'id': 32, 'name': 'Aspirin', 'price': 10.0, 'stock': 100}]
2025-05-11 11:40:20,176 - DEBUG - Returning result: {'diseases': ['Body Pain'], 'medicines': [{'id': 26, 'name': 'Ibuprofen', 'price': 15.0, 'stock': 100}, {'id': 33, 'name': 'Naproxen', 'price': 18.0, 'stock': 100}, {'id': 32, 'name': 'Aspirin', 'price': 10.0, 'stock': 100}]}
2025-05-11 11:40:40,503 - DEBUG - Script started with arguments: ['python/symptom_checker.py', 'predict', 'body pain, fever']
2025-05-11 11:40:40,503 - DEBUG - Predicting disease for symptoms: body pain, fever
2025-05-11 11:40:40,503 - DEBUG - Symptom 'body pain' mapped to diseases: ['Body Pain']
2025-05-11 11:40:40,503 - DEBUG - Symptom 'fever' mapped to diseases: ['Fever']
2025-05-11 11:40:40,504 - DEBUG - Predicted diseases: ['Fever', 'Body Pain']
2025-05-11 11:40:40,504 - DEBUG - Fetching medicines for diseases: ['Fever', 'Body Pain']
2025-05-11 11:40:40,564 - DEBUG - Starting authorization phase
2025-05-11 11:40:40,565 - DEBUG - The provided initial strategy is mysql_native_password
2025-05-11 11:40:40,565 - INFO - package: mysql.connector.plugins
2025-05-11 11:40:40,565 - INFO - plugin_name: mysql_native_password
2025-05-11 11:40:40,566 - INFO - AUTHENTICATION_PLUGIN_CLASS: MySQLNativePasswordAuthPlugin
2025-05-11 11:40:40,566 - DEBUG - mysql_native_password completed succesfully
2025-05-11 11:40:40,567 - DEBUG - Executing query:
SELECT DISTINCT m.id, m.name, m.price, m.stock
FROM medicines m
JOIN disease_medicine_mapping dmm ON m.id = dmm.medicine_id
WHERE dmm.disease IN (%s,%s)
with params: ['Fever', 'Body Pain']
2025-05-11 11:40:40,568 - DEBUG - Medicines fetched: [{'id': 25, 'name': 'Paracetamol', 'price': 10.0, 'stock': 100}, {'id': 32, 'name': 'Aspirin', 'price': 10.0, 'stock': 100}, {'id': 26, 'name': 'Ibuprofen', 'price': 15.0, 'stock': 100}, {'id': 33, 'name': 'Naproxen', 'price': 18.0, 'stock': 100}]
2025-05-11 11:40:40,569 - DEBUG - Returning result: {'diseases': ['Fever', 'Body Pain'], 'medicines': [{'id': 25, 'name': 'Paracetamol', 'price': 10.0, 'stock': 100}, {'id': 32, 'name': 'Aspirin', 'price': 10.0, 'stock': 100}, {'id': 26, 'name': 'Ibuprofen', 'price': 15.0, 'stock': 100}, {'id': 33, 'name': 'Naproxen', 'price': 18.0, 'stock': 100}]}
2025-05-11 14:22:24,769 - DEBUG - Script started with arguments: ['python/symptom_checker.py', 'predict', 'runny nose']
2025-05-11 14:22:24,769 - DEBUG - Predicting disease for symptoms: runny nose
2025-05-11 14:22:24,769 - DEBUG - Symptom 'runny nose' mapped to diseases: ['Common Cold']
2025-05-11 14:22:24,769 - DEBUG - Predicted diseases: ['Common Cold']
2025-05-11 14:22:24,771 - DEBUG - Fetching medicines for diseases: ['Common Cold']
2025-05-11 14:22:24,843 - DEBUG - Starting authorization phase
2025-05-11 14:22:24,844 - DEBUG - The provided initial strategy is mysql_native_password
2025-05-11 14:22:24,844 - INFO - package: mysql.connector.plugins
2025-05-11 14:22:24,844 - INFO - plugin_name: mysql_native_password
2025-05-11 14:22:24,845 - INFO - AUTHENTICATION_PLUGIN_CLASS: MySQLNativePasswordAuthPlugin
2025-05-11 14:22:24,845 - DEBUG - mysql_native_password completed succesfully
2025-05-11 14:22:24,846 - DEBUG - Executing query:
SELECT DISTINCT m.id, m.name, m.price, m.stock
FROM medicines m
JOIN disease_medicine_mapping dmm ON m.id = dmm.medicine_id
WHERE dmm.disease IN (%s)
with params: ['Common Cold']
2025-05-11 14:22:24,847 - DEBUG - Medicines fetched: [{'id': 27, 'name': 'Cetirizine', 'price': 8.0, 'stock': 99}, {'id': 28, 'name': 'Loratadine', 'price': 12.0, 'stock': 99}, {'id': 29, 'name': 'Cough Syrup (Dextromethorphan)', 'price': 50.0, 'stock': 95}, {'id': 34, 'name': 'Pseudoephedrine', 'price': 15.0, 'stock': 99}]
2025-05-11 14:22:24,849 - DEBUG - Returning result: {'diseases': ['Common Cold'], 'medicines': [{'id': 27, 'name': 'Cetirizine', 'price': 8.0, 'stock': 99}, {'id': 28, 'name': 'Loratadine', 'price': 12.0, 'stock': 99}, {'id': 29, 'name': 'Cough Syrup (Dextromethorphan)', 'price': 50.0, 'stock': 95}, {'id': 34, 'name': 'Pseudoephedrine', 'price': 15.0, 'stock': 99}]}
2025-05-29 20:23:48,914 - DEBUG - Script started with arguments: ['python/symptom_checker.py', 'predict', 'body pain']
2025-05-29 20:23:48,914 - DEBUG - Predicting disease for symptoms: body pain
2025-05-29 20:23:48,914 - DEBUG - Symptom 'body pain' mapped to diseases: ['Body Pain']
2025-05-29 20:23:48,914 - DEBUG - Predicted diseases: ['Body Pain']
2025-05-29 20:23:48,914 - DEBUG - Fetching medicines for diseases: ['Body Pain']
2025-05-29 20:23:48,976 - DEBUG - Starting authorization phase
2025-05-29 20:23:48,976 - DEBUG - The provided initial strategy is mysql_native_password
2025-05-29 20:23:48,976 - INFO - package: mysql.connector.plugins
2025-05-29 20:23:48,976 - INFO - plugin_name: mysql_native_password
2025-05-29 20:23:48,978 - INFO - AUTHENTICATION_PLUGIN_CLASS: MySQLNativePasswordAuthPlugin
2025-05-29 20:23:48,978 - DEBUG - mysql_native_password completed succesfully
2025-05-29 20:23:48,983 - DEBUG - Executing query:
SELECT DISTINCT m.id, m.name, m.price, m.stock
FROM medicines m
JOIN disease_medicine_mapping dmm ON m.id = dmm.medicine_id
WHERE dmm.disease IN (%s)
with params: ['Body Pain']
2025-05-29 20:23:48,995 - DEBUG - Medicines fetched: [{'id': 26, 'name': 'Ibuprofen', 'price': 15.0, 'stock': 98}, {'id': 33, 'name': 'Naproxen', 'price': 18.0, 'stock': 100}, {'id': 32, 'name': 'Aspirin', 'price': 10.0, 'stock': 98}]
2025-05-29 20:23:48,995 - DEBUG - Returning result: {'diseases': ['Body Pain'], 'medicines': [{'id': 26, 'name': 'Ibuprofen', 'price': 15.0, 'stock': 98}, {'id': 33, 'name': 'Naproxen', 'price': 18.0, 'stock': 100}, {'id': 32, 'name': 'Aspirin', 'price': 10.0, 'stock': 98}]}
2025-05-29 20:23:49,293 - DEBUG - Script started with arguments: ['python/symptom_checker.py', 'predict', 'body pain']
2025-05-29 20:23:49,293 - DEBUG - Predicting disease for symptoms: body pain
2025-05-29 20:23:49,293 - DEBUG - Symptom 'body pain' mapped to diseases: ['Body Pain']
2025-05-29 20:23:49,293 - DEBUG - Predicted diseases: ['Body Pain']
2025-05-29 20:23:49,293 - DEBUG - Fetching medicines for diseases: ['Body Pain']
2025-05-29 20:23:49,344 - DEBUG - Starting authorization phase
2025-05-29 20:23:49,344 - DEBUG - The provided initial strategy is mysql_native_password
2025-05-29 20:23:49,344 - INFO - package: mysql.connector.plugins
2025-05-29 20:23:49,344 - INFO - plugin_name: mysql_native_password
2025-05-29 20:23:49,345 - INFO - AUTHENTICATION_PLUGIN_CLASS: MySQLNativePasswordAuthPlugin
2025-05-29 20:23:49,345 - DEBUG - mysql_native_password completed succesfully
2025-05-29 20:23:49,346 - DEBUG - Executing query:
SELECT DISTINCT m.id, m.name, m.price, m.stock
FROM medicines m
JOIN disease_medicine_mapping dmm ON m.id = dmm.medicine_id
WHERE dmm.disease IN (%s)
with params: ['Body Pain']
2025-05-29 20:23:49,348 - DEBUG - Medicines fetched: [{'id': 26, 'name': 'Ibuprofen', 'price': 15.0, 'stock': 98}, {'id': 33, 'name': 'Naproxen', 'price': 18.0, 'stock': 100}, {'id': 32, 'name': 'Aspirin', 'price': 10.0, 'stock': 98}]
2025-05-29 20:23:49,348 - DEBUG - Returning result: {'diseases': ['Body Pain'], 'medicines': [{'id': 26, 'name': 'Ibuprofen', 'price': 15.0, 'stock': 98}, {'id': 33, 'name': 'Naproxen', 'price': 18.0, 'stock': 100}, {'id': 32, 'name': 'Aspirin', 'price': 10.0, 'stock': 98}]}
2025-05-29 20:35:01,424 - DEBUG - Script started with arguments: ['python/symptom_checker.py', 'predict', 'body pain, headache']
2025-05-29 20:35:01,424 - DEBUG - Predicting disease for symptoms: body pain, headache
2025-05-29 20:35:01,424 - DEBUG - Symptom 'body pain' mapped to diseases: ['Body Pain']
2025-05-29 20:35:01,424 - DEBUG - Symptom 'headache' mapped to diseases: ['Headache', 'Fever']
2025-05-29 20:35:01,424 - DEBUG - Predicted diseases: ['Headache', 'Fever', 'Body Pain']
2025-05-29 20:35:01,424 - DEBUG - Fetching medicines for diseases: ['Headache', 'Fever', 'Body Pain']
2025-05-29 20:35:01,488 - DEBUG - Starting authorization phase
2025-05-29 20:35:01,488 - DEBUG - The provided initial strategy is mysql_native_password
2025-05-29 20:35:01,488 - INFO - package: mysql.connector.plugins
2025-05-29 20:35:01,488 - INFO - plugin_name: mysql_native_password
2025-05-29 20:35:01,489 - INFO - AUTHENTICATION_PLUGIN_CLASS: MySQLNativePasswordAuthPlugin
2025-05-29 20:35:01,489 - DEBUG - mysql_native_password completed succesfully
2025-05-29 20:35:01,490 - DEBUG - Executing query:
SELECT DISTINCT m.id, m.name, m.price, m.stock
FROM medicines m
JOIN disease_medicine_mapping dmm ON m.id = dmm.medicine_id
WHERE dmm.disease IN (%s,%s,%s)
with params: ['Headache', 'Fever', 'Body Pain']
2025-05-29 20:35:01,493 - DEBUG - Medicines fetched: [{'id': 25, 'name': 'Paracetamol', 'price': 10.0, 'stock': 98}, {'id': 32, 'name': 'Aspirin', 'price': 10.0, 'stock': 98}, {'id': 26, 'name': 'Ibuprofen', 'price': 15.0, 'stock': 98}, {'id': 33, 'name': 'Naproxen', 'price': 18.0, 'stock': 100}]
2025-05-29 20:35:01,493 - DEBUG - Returning result: {'diseases': ['Headache', 'Fever', 'Body Pain'], 'medicines': [{'id': 25, 'name': 'Paracetamol', 'price': 10.0, 'stock': 98}, {'id': 32, 'name': 'Aspirin', 'price': 10.0, 'stock': 98}, {'id': 26, 'name': 'Ibuprofen', 'price': 15.0, 'stock': 98}, {'id': 33, 'name': 'Naproxen', 'price': 18.0, 'stock': 100}]}