I get a "Fatal Python error: Aborted" and no explanatory error message I can...
I am using:Win 10 ProIntel(R) Xeon(R) W-1250 CPU @ 3.30GHz / 16 GB RAMAnaconda Navigator 2.5.0,Python 3.10.13 in venvpyarrow 11.0.0pandas 2.1.1Running scripts in Spyder IDE 5.4.3I want to open/process...
View ArticleTensorFlow in Python 3.12
I’m trying to import data into SQL through Python, and I'm using pyodbc and TensorFlow in Python 3.12, but TensorFlow doesn’t work. I can’t use python 3.11 because pyodbc isn’t compatible with it.I...
View Articlecan I import psycopg2 in postgresql source code?
I'm writing a contrib of postgresql and I want to use PyImport_ImportModule to import a python module, which imports psycopg2.Then I find that PyImport_ImportModule returns null if I import psycopg2 in...
View ArticleHow to open $MFT in Python?
I need to open "//?/D:/$MFT" in binary read mode to parse its contents, I need the raw binary data from Master File Table to resolve File Record Segments from "D:/System Volume...
View Articlepgbouncer active clients always increasing - Connections not becoming idle or...
I am facing an issue with pgbouncer connected to a PostgreSQL database. The problem is that the active client connections continuously increase and eventually reach the max client connection limit. I...
View ArticleAre hashmaps typically implemented with an array of keys?
Many languages that include hashmaps in the standard library or as builtins, allow the programmer to iterate over the hashmap. For example, in python:d = {"US": "English", "Spain": "Spanish", "France":...
View ArticleHow do I set QComboBox height?
So i've been working with pyqt5 and i'm trying to set the height (size not position) of a qcombobox. Not the drop-down list, the actual box. I've tried everything and nothing seems to work....
View ArticleMatplotlib: cannot use Tex anymore (Mac OS Sonoma)
I recently got a new laptop with Mac OS Sonoma 14.2.1, to which I migrated the data from my Big Sur laptop via TimeMachine. I updated Xcode and then followed the MacPorts instructions for migration...
View Articlepython; import a file as the result of an argument [duplicate]
I have to write a little python program.I have to import a file but this file will be done by the client.for exemple here is test.py:import getoptimport sysparams=[]options remainder...
View ArticleIn Django, when i compare two Html texts, how to remove the blank rows with...
I'm comparing two texts with Django. Precisely, i am comparing two HTML codes using Json and difflib module. The two files compared are: user_input.html and source_compare.html,they are compared with...
View ArticleSSLCertVerificationError How i can fix?
i have some problems, when i start my bot in windows then full work, but when i start in macOS 13.5.1 i have error like thisduring handling of the above exception, another exception occurred:Traceback...
View ArticleUsing C .dll with complex.h library in Python very slow
Hello I have a function in Python, which I want to convert to C and use through a .dll.Currently I am still experimenting and I am very new to this topic, but my main problem is when I use any function...
View ArticleExtracting table data from pdf with different no of col
import osimport refrom tika import parserfolder = ".../test/input"pattern = r'^(\d+)\s+(\S+)\s+([0-9.]+ x [0-9]+ x [A-Z]+)\s+([0-9.]+)\s+([0-9.]+)'data = [] # List to store extracted datafor filename...
View ArticleExposing a callback interface from C++ to Python and passing it back to C++
I develop a wrapper of our C++ library for Python users and I have a memory leak when I try to expose a callback interface.My library code looks like this:// Simulate our librarynamespace library { //...
View ArticleWhy after I duplicate excel and the formula are unable to read and calculate
xlsx fileCodeAfter duplicating the xlsx file and the sheet inside, and filled in the data column using the code, the xlsx formula that's copied was not able to read from the cell and generate using the...
View Article"ImportError: libta_lib.so.0: cannot open shared object file: No such file or...
I can successfully install the ta-lib in google colab as follow:import os, sys from google.colab import drive drive.mount('/content/gdrive') nb_path = '/content/notebooks'os.symlink('/content/gdrive/My...
View ArticlePython visual in Power BI - plot is too small
I have several Python visuals in Power BI.The plots are always too small: the space is not utilized and therefore the plot is too small.Tried to adjust the figure size, no...
View ArticleDjango Rest -api User registration
I've been trying to implement register method on UserView , to create new user each time I call Post request , But I got this error in postman"detail": "Method "POST" not allowed."views.pyclass...
View Articledjango app localhost refused to connect docker
I'm trying to setup my django project with docker. It will have multiple containers one is for code that is server, worker for celery, redis for redis, db for postgres and there is nginx. Every one of...
View ArticleCan't import file in python
Suppose I haveDirectory\Folder1\File1.py\class Something, Directory\Folder2\File2.pyI want to import Something from File1 into File2I encounter ModuleNotFoundErrorI tried:from Folder1.File1 import...
View Article