TheAlgorithms/Python

Documented errors, page 3 of 7. Back to TheAlgorithms/Python

Code / MessageTypeSeverityTags
Month must be between 1 - 12
validation error date, validation, string-parsing, valueerror
surface_area_cube() only accepts non-negative values
exception error python, math, geometry, validation, valueerror, input-validation
dynamic_lucas_number accepts only integer arguments.
exception error math, lucas, dynamic-programming, typeerror
Expected a_coeffs to have
validation error physics, input-validation, valueerror
Orbital radii must be greater than zero.
exception error physics, orbital-mechanics, validation, valueerror
The number of weights must be the same as the number of…
exception error python, input-validation, length-mismatch, dynamic-programming
Invalid matrix dimensions
exception error matrix, recursion, square-matrix, valueerror
length must be a positive numeric value.
validation error geometry, input-validation, typeerror, dataclass
Not a Number
exception error math, statistics, geometric-mean, typeerror
is not a valid color for tolerance band
exception error electronics, resistor, color-code, tolerance, valueerror
int() can't convert non-string with explicit base
exception error conversions, type-error, float, base-conversion
Invalid source or destination coordinates
validation error physics, input-validation, data-quality
factorial() not defined for negative values
exception error math, factorial, negative-argument, validation
The program cannot work out a fitting polynomial.
validation error linear-algebra, polynomial, input-validation, valueerror
Expecting a list of points but got
exception error python, input-validation, computational-geometry, divide-and-conquer
Please enter an integer greater than 0
validation error project-euler, validation, valueerror, input-validation
Invalid unit is not in .
exception error python, validation, units, time, conversion
Capacitor at index has a negative value!
validation error electronics, input-validation, physics
Sequence only defined for positive integers
exception error maths, collatz, generator, validation
Input value of [number= ] must be a positive integer
exception error math, sequences, juggler, valueerror, infinite-loop-prevention
matrices must have the same dimension!
exception error linear-algebra, matrix, dimension-mismatch, validation
Empty heap
exception error heap, empty-state, pop, generic-exception
Node not found
exception error linked-list, lookup-failure, generic-exception, delete
'str' object cannot be interpreted as an integer
exception error conversions, type-error, base-conversion, string-input
Warning: Tree is empty! please use another.
exception error value-validation, binary-tree, bst, search, empty-input
All resistance values must be positive
exception error electronics, wheatstone-bridge, validation
Indices out of bounds
exception error linear-algebra, matrix, cofactor, index-out-of-range, off-by-one
Input value must be a 'int' type
validation error bit-manipulation, type-validation, python
n must be greater than or equal to 0. Got n =
validation error dynamic-programming, input-validation, arithmetic
number of qubits must be a integer.
validation error quantum, typeerror, type-check, input-validation
Sudoku boards must be
exception error matrix, sudoku, validation, valueerror, board-geometry
num_people or step_size is not a positive integer.
exception error math, josephus, recursion, validation, valueerror
Input value of [number= ] must be > 0
exception error python, math, combinatorics, off-by-one, value-error
Iterations must be done more than 0 times to play FizzBuzz
exception error python, input-validation, boundary-check, dynamic-programming
All queues are empty
exception error queue, priority-queue, underflow, python
gamma must be float or int
exception error machine-learning, svm, type-validation, configuration
gon_side must be in the range [3, 5]
validation error project-euler, validation, valueerror, domain-check
Only square matrices can be raised to a power
exception error matrix, valueerror, square-matrix, linear-algebra
peek from empty stack
exception error stack, data-structures, index-error, python
power_factor must be a valid float value between -1 and 1.
exception error electronics, validation, power-factor, valueerror
Resistor at index has a negative or zero value!
exception error electronics, resistor, parallel, validation
Magic -gon ring is impossible
exception error project-euler, assertion, valueerror, internal-invariant
Monogons and Digons are not polygons in the Euclidean space
exception error maths, geometry, validation, valueerror
Node should have a list of neighbors.
exception error graph, lanczos, adjacency-list, structure-validation
number_of_years must be > 0
validation error finance, input-validation, valueerror
parameter must be positive int
exception error conversions, validation, negative-numbers, base-conversion
Incorrect input: The edge already exists between
exception error graph, adjacency-matrix, duplicate-edge, simple-graph
level must be between -255.0 (black) and 255.0 (white)
exception error image-processing, pil, validation, python
Limit for the Catalan sequence must be ≥ 0
exception error python, input-validation, dynamic-programming, math
gamma value must be non-negative
exception error machine-learning, svm, kernel, hyperparameters
Parameter nth must be int or castable to int.
validation critical python-euler, python2-syntax, typeerror, validation, primes
Valid priorities are 0, 1, and 2
exception error queue, priority-queue, validation, python
Expected a list of numbers as input, found
exception error math, typeerror, type-validation, distance-metrics
Parameter number must be int
validation error project-euler, type-check, typeerror, input-validation
the value of input must not be a negative number
exception error python, input-validation, boundary-check, dynamic-programming
Step size must be positive.
exception error math, numerical-analysis, ode, valueerror, parameter-validation
All elements in candidates must be non-negative
validation error physics, input-validation, sign-convention
Donor concentration should be positive
validation error electronics, physics, input-validation
Invalid inputs. Enter non zero values with respect to the…
validation error physics, optics, lens, zero-check, valueerror
plain must contain only lowercase letters (a-z)
exception error cipher, validation, python
Expected int, found
exception error python, type-error, color, conversion
Incorrect input: The edge does NOT exist between
exception error graph, adjacency-list, edges, directed-graph
Invalid decimal IPv4 address
exception error python, value-error, ipv4, network, range-check
n_components and n_iter must be >= 1
exception error machine-learning, dimensionality-reduction, tsne, input-validation
Undefined for non-integers
exception error maths, pi, decimal, typeerror, validation
Acceptor concentration should be greater than intrinsic…
validation error electronics, physics, units
matrix must have the same dimension!
exception error linear-algebra, matrix, dimension-mismatch, validation
differentiate() requires a function as input for func
exception error maths, autodiff, validation, callable, valueerror
Longitude must be between -180 and 180 degrees
validation error geodesy, coordinates, input-validation, valueerror
No input value was provided
exception error python, value-error, binary, empty-input
Will result in duplicate vertices. Either increase range…
exception error graph, test-generator, random-sampling, parameter-validation
differentiate() requires an int as input for order
exception error maths, autodiff, validation, valueerror
root is not present in the binary_tree
exception error binary-tree, invalid-argument, root, mirror
The grid does not contain the appropriate information
exception error dynamic-programming, grid, validation, type-guard
The input array is not a square matrix
exception error computer-vision, pooling, numpy, validation
the value of both inputs must be positive
validation error physics, division-by-zero, data-quality
Validation size should be between 0 and
exception error mnist, validation-split, argument-validation
window_size must be > 0
exception error finance, ema, moving-average, validation
Coefficient matrix is not strictly diagonally dominant
exception error linear-algebra, jacobi, convergence, diagonal-dominance, validation
Incorrect input: does not exist in this graph.
exception error graph, adjacency-list, validation, valueerror
Odd matrices are not supported!
exception error python, input-validation, matrix, divide-and-conquer
The parameter s type must be str.
exception error type-validation, burrows-wheeler, string, compression
vol_spheres_union() only accepts non-negative values…
exception error math, validation, geometry, valueerror
Latitude must be between -90 and 90 degrees
validation error geodesy, coordinates, input-validation, valueerror
Length of alpha must match the number of classes.
exception error machine-learning, loss-function, focal-loss, class-weights
Queue is empty
exception error queue, data-structures, index-error, python
Only invertable matrices can be raised to a negative power
exception error matrix, singular-matrix, inverse, valueerror
please ensure that density, diameter and viscosity are…
exception error physics, fluid-dynamics, validation, valueerror
Undefined for non-natural numbers
exception error maths, pi, decimal, validation, valueerror
area_triangle_three_sides() only accepts non-negative values
exception error python, math, geometry, validation, valueerror, herons-formula
Design matrix is not full rank, can't compute coefficients
exception error machine-learning, regression, linear-algebra, rank-deficiency
Incorrect input: Either
exception error graph, adjacency-matrix, predicate-raises, validation
Input must be a positive number.
exception error math, inverse-sqrt, negative-value, graphics, valueerror
Input must be a string
validation error strings, vowels, type-error, input-validation
Parameters chain_length and number_limit must be greater…
validation error project-euler, validation, valueerror, input-validation
Both points must be in the same n-dimensional space
exception error math, valueerror, dimension-mismatch, distance-metrics
n should be an integer greater than 0.
exception error cache, argument-validation, lru
Parameters chain_length and number_limit must be int
validation error project-euler, type-check, typeerror, input-validation
partitions can not > number_of_bytes!
exception error math, partitioning, input-validation
the words should be a list of non-empty strings
validation error dynamic-programming, input-validation, strings