Quantcast
Browsing all 14155 articles
Browse latest View live

SSL: CERTIFICATE_VERIFY_FAILED certificate verify failed : self signed...

I am using python to make a get request to jira cloud rest api to get details of an issue, but getting this SSL verification failed error message, I am using this scriptimport requestsimport jsonurl =...

View Article


struct.error: bad char in struct format

I have a problem with a little server-client assignment in python 2.7.The client can send 5 types of requests to the server:get the server's ipget contents of a directory on the serverrun cmd command...

View Article


Concat DataFrame Reindexing only valid with uniquely valued Index objects

I am trying to concat the following dataframes:df1 price side timestamptimestamp 2016-01-04 00:01:15.631331072 0.7286 2 14518656756313312016-01-04 00:01:15.631399936 0.7286 2 14518656756314002016-01-04...

View Article

Raspberry Pi 3b solid freezes whilst compiling new version of python

appreciate your reading!As the title says model 3b (non plus) freezes during compilation at what always seems the same place during the make -j 4.Few points:Stuck with the 3b for now, so please do not...

View Article

Use of scipy.optimize

I am using Python in FEA a solver and i have an objective function to minimize. I thought about using scipy.optimize but it doesn't work. No optimization is carried out and no errors either... See just...

View Article


I have some issues when trying a python code on choregraph

I'm trying to launch this choregraph app (which is not mine) and I got some issue.I'm following the steps from github:https://github.com/conema/Choregraphe-GA?tab=readme-ov-file, I already configured...

View Article

tf unable to calculate gradients

I'm trying to implement the paper:https://arxiv.org/pdf/2206.01161.pdfto see how it affects models.I implemented gradcam in tensorflow:def compute_gradients_and_capture(img, gradients_last_conv,...

View Article

Django and TinyMCE: NameError: name 'url' is not defined

I am trying to get TinyMCE working in Django. Here is what I did:Using this package as a reference: django-tinymce4-liteSuccessfully ran pip install django-tinymce4-lite; package installs fineAdded...

View Article


Image may be NSFW.
Clik here to view.

((env) ) on vscode when using virtual environment with python

After the last VSCode update Version: 1.88.0, I opened one of my Python projects and noticed that there are double parentheses in my virtual environment ((env) ).Previously, in the same and all other...

View Article


pandas: sorting multi-level columns

I have the following pandas dataframe:import pandas as pddata1 = [['01/01/2000', 101, 201, 301], ['01/02/2000', 102, 202, 302], ['01/03/2000', 103, 203, 303],]df1 = pd.DataFrame(data1, columns=['date',...

View Article

Image may be NSFW.
Clik here to view.

Identifying 4-connected point patterns in a grid of 3D points with noise

I have a set of points in 3D space represented by the following NumPy array:import numpy as nppoints = np.array([4.5403791090466825, -6.474122845743137, 1.720865155131852 4.544710813420152,...

View Article

Image may be NSFW.
Clik here to view.

Title: "Plotly: Connecting tips between dendrograms in side-by-side subplots"

I'm trying to create side-by-side dendrogram subplots using Plotly in Python. I've successfully created the subplots and added dendrograms to each subplot, but I'm struggling to connect the...

View Article

How do i put a HTML file inside a python tkinter window?

I've tried looking for an answer for almost 2 days, but I still couldn't find one. Could someone please help me?

View Article


Cogs in discord.py

So I've made a discord bot with a lot of commands (I'll show one only here to make it clearer), but the code is now really messy. I've always wanted to move the commands into a seperate folder names...

View Article

Unable to run certain python command from Cmake

I'm having following python code cmd = ["cmd.exe", "/c","C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/VC/Auxiliary/Build/vcvarsx86_amd64.bat", "^&^&", "set", "PATH", ">",...

View Article


Python Recursive Method Wrapping

I need a way to wrap not just one method, but a way to wrap all callees of that method upon its call, and all callees of the callees as well (i.e. recursive wrapping). Is this possible? If so, what is...

View Article

Weight and shape different than the number of channels in input

I'm trying to fine-tunning the VAE of SD 1.4I'm in a multi gpu environment, and I'm using accelerate library for handling that.This is my code summarized:import osimport torch.nn.functional as Fimport...

View Article


My discord bot made with python is not working

Here is my code in main.py:import discordimport asynciofrom discord.ext import commandsTOKEN="secret"intents = discord.Intents.default()bot = commands.Bot(command_prefix="?", intents =...

View Article

Calculator in one (terminal) line [duplicate]

Understand that when I say "one line" I don't mean one line of code but instead one line of inputso instead of5*840It would just be5\*8 \40or even5\*8=40and could be multiple digits like so:54+66=120I...

View Article

How do I set environment variables in Google Colab?

On my local computer, I can simply go into "System Properties -> Environment Variables" and add a new variable with its value in user variables.Then, I can retrieve this value by using this in...

View Article
Browsing all 14155 articles
Browse latest View live


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