Category "typeerror"

Converting PYODBC output into an int

Pulling data from a SQL query that gives me 1 number that is stored in a PYODBC row. I want to then add that number to another variable in the file. Pseudocode

TypeError: list indices must be integers [closed]

I'm trying to insert an item from one list to another and using an item from a list of numbers for the index but I'm getting this error even t

Python valueError: setting an array element with a sequence, TypeError: only size-1 arrays can be converted to Python scalars on MLP

I have this dataset (shape is (36,2)). x is a numerical pattern, y is a binary class (0,1) x y [0.2, 0.3, 0.5 ..... 0.5] 0 [0.1, 0.4, 0.5 ..... 0.9] 1 and so

TypeError: 'type' object is not subscriptable when importing tensorflow_federated as tff

I'm working in colab notebook, and the importing of tff (import tensorflow_federated as tff) was working for months, but suddenly, now when I try to import tff

react-native-webview Typescript error: 'WebView' cannot be used as a JSX component

I am trying to set up a simple React Native app using Expo with TypeScript that shows a WebView. My App.tsx file contains the following: import Constants from '

TypeError: dnn_Model.setInputMean() takes at most 1 argument (3 given)

Please resolve TypeError while executing the object detection project. I have tried to implement the object detection program but TypeError is appearing. I hope

Bootstrap modal UncaughtType Error on modal loading

I am using BS modal in my project. I am using a button to open the model but as I open the modal I get this error in my console. Error: modal.js:418 Uncaught Ty

TypeError: Cannot read properties of undefined (reading 'NaN')

[enter image description here][1] I am not sure how to make this code work, cannot read properties of undefined (reading 'Nan') Here I'll attach a screenshot o

TypeError: 'type' object is not subscriptable during reading data

I'm pretty new importing data and I´m trying to make def that reads in the presented order. The error is in the fuction, not in the data. def read_eos(fil

Selenium TypeError: __init__() got an unexpected keyword argument 'service'

I'm refactoring my app from procedural code to OOP. I am trying to do this Driver class. UPDATE: this works in Windows but not in Mac. # IMPORTS from sys import

line() got an unexpected keyword argument 'reuse_plot'. Not sure what this means

I am following a tutorial online to use Python to determine financial returns. I am getting an error "TypeError: line() got an unexpected keyword argument 'reus

TypeError: can't assign to property "_canInitEmulator" on "[email protected]": not an object

i am using Firebase but when I try to make a reset pass word link this error ocour's . What is the reason behind it and how can I solve this error. I have tried

Python, TypeError:

I am very beginner in python. I tried the code (need to change, osm file to idf file, change schedule file object and then run eppy calcultion on Energyplus) -

TensorFlow: TypeError when itterating through model architectures

I have a script which goes through a simple 2d CNN and I'm trying to run through a range of different values for the number of layers and neurons per layer in m

TypeError: 'ZipFile' object is not callable

I am trying to save the new cropped brain tumor images into the subfolders of TRAIN_CROP, TEST_CROP, and VAL_CROP in the main folder of TRAIN, TEST, and VAL. x

TypeError: Cannot read properties of undefined (reading 'email')

I'm trying to authenticate user. Sign-up is working fine but in sign-in req.body.email is undefined and I can't figure out why. Here is my code for sign-in: rou

polars dataframe TypeError: must be real number, not str

so bascially i changed panda.frame to polars.frame for better speed in yolov5 but when i run the code, it works fine till some point (i dont exactly know when e

OOP using pygame.display inheritance error

import pygame.display.Display as display class MainDisplay(display): def __init__(self): super.__init__() # creating display X =

how to pull certain data from a list response from instagrapi

so I'm working on some code to pull the pictures of people who have liked a post on instagram. i'm using instagrapi for the api system, but when using api.media

What causes these Int64 columns to cause a TypeError?

I have a pandas DataFrame with several flag/dummy variables of type Int64. I am aggregating on other fields and taking the mean value in order to calculate a pe