Dot notation Python verse powershell - Python NEWB
Hi guy's im new to python so please excuse the ignorance pretty well 99% of my coding is powershell/DSC and then more falls to DevOps for IAC terraform, ARM/bicep, yaml and json... just hoping someone...
View ArticleIssue with python execution [closed]
I am completely new to Python. I am trying to run the Python application.python -m src.mainAfter running this I am getting this error:Traceback (most recent call last): File "<frozen runpy>",...
View ArticleVirus total sending empty responce
I wrote this function to retreive the scan result of a Virus Total scan.async def check_virustotal_result(self, scan_id, message): url = f"https://www.virustotal.com/api/v3/analyses/{scan_id}" headers...
View ArticleCustomTKinter- adding additional input fields to form
I am creating a program in Customtkinter where I want to the user to input their ingredients one ingredient at a time- ideally I want to have the text field and then they have the option to add...
View ArticlePackage Error while running the python file | Tansorflow
ImportError: DLL load failed while importing _pywrap_tf2: A dynamic link library (DLL) initialization routine failed.I find the above Error in package. I don't understand why is error happening....
View ArticleHow do I list all the file from one subdirectory from a list of subdirectories
I am trying to list files by their directory and do something with files and go to next directorythis is the folder treeroot div1 subdiv1 up1 d1s1u1_1.file d1s1u1_2.file up2 d1s1u2_1.file d1s1u2_2.file...
View ArticleUnable to get Authorization Header in Flask JWT Extended
I am trying to using to use Flask-JWT extended at the basic level at the moment.I get the user and password authenticated from the user form. I create an accesss token, include it in the response and...
View ArticleCustom plugin for Wordpress that uses a python script
Can a python script run on wordpress and can i create a plugin that uses that ?I have to make a custom chatbot . I have the code that works perfect however there are some issues that i have in front of...
View Articlereading and visualizing raw images from Optris PI640
I have LWIR image files taken from Optris PI 640 camera. The files come with a .raw extension. I tried reading them in python and the np.shape I get is 999800800. However I'm unable to visualize it to...
View ArticleHow to keep a program running in turtle that uses tinker buttons? (solved)
So I've been trying to keep this program running once opened without idle,however I have used tinker buttons to be able to create a UI and will not work if a loop or sleep function after themI am using...
View Articlehow to importing python class in django case
why we import like this. from django.db.models import Model, Model class is inside base.py not models.expecting from django.db.models.base import Model, why base module ommitted....
View ArticleManual SVD Implementation in Python failed
I am trying to implement a function for Singular Value Decomposition (SVD) in Python by myself, using the eigenvalue decomposition of A^T A and AA^T, but the reconstructed matrix (B) does not always...
View ArticleHow to use Discord Oauth2 with Allauth?
I've been working on a social media clone of mine for a few days and I now think that having discord as a method to signup and login would be really cool. How can I integrate it using only Allauth? I...
View ArticlePython Image Error in different Directories
I have two .py files in different directoriesE:\Azy Projects\Python\PythonUsingVisualStudio\HellowPython\HellowPython\Operations\Apps\StyleReviews\ReviewSection_1_File.pyE:\Azy...
View ArticleWhat is the difference between pipx and using pip install inside a virtual...
I recently used pipx to install a package (That was the recommended install approach for the package). I installed using pip in a virtual environment. I was with the assumption that pipx is in that...
View ArticleHow does it work, the naming convention for Django INSTALLED_APPS?
The tutorial on the site creates an app named polls. It's using django 1.9, so in the INSTALLED_APPS it is:polls.apps.PollsConfigI'm watching a tutorial he names the app newsletter and in...
View ArticleFastAPI: routing submodul functions to root
I have the following in my main.pyfrom fastapi import FastAPI, Requestfrom fastapi.responses import HTMLResponsefrom fastapi.middleware.gzip import GZipMiddlewarefrom fastapi.templating import...
View Articleexcel sheet all photo download with serial_number, name, and Photo column
I have an Excel sheet with serial_number, name, and photo column. I need to download all photos row by row by follow this file name convacation like ”serial_number name.jpg”.My Excel sheet:...
View ArticleHow to set port number in Python Package manager Anaconda Navigator
Every time, I launch Anaconda-Navigator it is open in a new port. I want to set or fix the port number when I launch it.I have searched the documentation a bit, however, I did not find anything or I...
View ArticleProblem exporting images with matplot lib
Working on an Ising model simulation in Matplotlib and at the end I need to export a figure as an image and every image is coming back blank. I figure it has to do with the message <Figure size...
View Article