Quantcast
Browsing all 13951 articles
Browse latest View live

How do I implement forms for user input to register and login in Django when...

I´m learning how to work with JWT(pyJWT) in Django, in this case I´m trying to authenticate users with it, I followed a tutorial and using postman it worked, I use mysql and the passwords were hashed...

View Article


Managing JSON versions

Can the data within JSON files have versions depending on how it's structured and what it represents. For example, if I am storing data that evolves over time and I want to track the changes made to...

View Article


I'm trying to setup pytest and module name not being recognized

I'm trying to configure pytest for the first time.When I run the command:python -m pytestI get the following error:ImportError: No module named 'Socialmedia.settings.local'; 'Socialmedia.settings' is...

View Article

Why are the added four markers not visible on the map?

Can't figure out what I'm doing wrong. Written in Python-Flask, Firebase, JavaScript, Leaflet. Maybe I didn't connect something well, or I didn't create a class. I tried to change the database...

View Article

Issues with sending emails through Outlook using the Win32 library in Django

I'm using Win32 for sending emails on my website.In general, the emails are sent and reach the recipient, but the problem is that the recipient does not change.Initially, when I started this project, I...

View Article


kivymd invalid property name error when using root.manager.transition

When I run the code I get an invalid property name error for the 24th line ("root.manager.transition.direction = 'left'"),MDScreen: name:"main" MDFloatLayout: md_bg_color: 0.149,0.654,0.352,1 Image:...

View Article

Implement max/mean pooling(with stride) with numpy

I wanted to know how to implement a simple max/mean pooling with numpy. I was reading Max and mean pooling with numpy, but unfortunately it assumed the stride was the same as the kernel size. Is there...

View Article

Podman build can't find app.py in the specified folder

I am at my first hands on practice with trying to deploy my model on GCloud and I am using podman. When I try to build the container with podman build -t default-service-fastpai:latest . , I get an...

View Article


Error when using keras: module 'keras.layers' has no attribute...

import osos.environ["KERAS_BACKEND"] = "tensorflow"import pandas as pdimport pathlibimport randomimport stringimport reimport numpy as npimport tensorflow as tfimport kerasfrom keras import...

View Article


Tracing the references for a specific object in Python (memory leak)

I have a 3rd party library creating huge memory leaks. I've called gc.collect, and have no references to any objects created by this library, but it still leaks.Using gc.get_objects() I've identified...

View Article

Service ./selenium/geckodriver/mac64/0.34.0/geckodriver unexpectedly exited....

I program a python script with selenium, I launch my script from a php website, when I launch it from my PC locally I manage to launch geckodriver, but when I am on my xampp server, I get this...

View Article

What is the XPATH for a tumblr post?

I'm trying to make a tumblr bot/python script that scrapes posts and then does a certain thing, it is currently able to log in to tumblr on its own, but when I try to make it scrape posts it doesn't...

View Article

Is it possible to replace the loop created from asyncio with QtAsyncio?

I'm trying to use the QtAsyncio library in pyside 6 and with the python-snapcast library and i can't manage to find a way to replace the asyncio loop that the create_server function necessitates with...

View Article


Image may be NSFW.
Clik here to view.

Iterative Matrix-Vector Product Eigensolvers in Python

I have a very large Hermitian matrix of size (21^6, 21^6) that I need to diagonalize. The matrix is highly sparse with roughly 1E^10 non-zero elements (out of 7.35E^15), and is built up from a direct...

View Article

Image may be NSFW.
Clik here to view.

Continuously monitoring user input in an asynchronous manner within Python

I'm seeking a Python script that persistently awaits user input for some time at each interval. Should the user fail to provide input within this timeframe, the script should automatically execute a...

View Article


RelatedObjectDoesNotExist at /profile/social/add ProfileSocialMedia has no...

I'm trying to use the clean method of a model in my project, but I get the error:RelatedObjectDoesNotExist at /profile/social/addProfileSocialMedia has no profile.I've tried a lot of different things,...

View Article

Pygame Platformer Collisions [duplicate]

I am a python beginner and have recently started watching DaFluffyPotato's pygame platformer tutorial, and attempting to code my own simple platformer. I have gotten to the collisions part of the...

View Article


Image may be NSFW.
Clik here to view.

Is there a way to adjust space between subplots when layout='constrained'?

I'm trying to remove the vertical space between two specific axes; however plt.figure(layout='constrained') prevents matplotlib.pyplot.subplots_adjust(hspace=0).With layout='constrained'import...

View Article

PyQT5: Worker thread's progress bar only updates after main thread's progress...

This is a simplified code from one of my projects, I'm trying to update one progressbar from inside main thread and another from a worker thread. In actual project, main progress bar represents...

View Article

Tkinter winfo values are incorrect after content changes

The tkinter methods winfo_rooty and winfo_height are used to calculate the fractional position of a widget within a scrollable frame. The fractional position is passed to canvas.yview_moveto to scroll...

View Article
Browsing all 13951 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>