TheAlgorithms/Python
Documented errors, page 2 of 7. Back to TheAlgorithms/Python
| Code / Message | Type | Severity | Tags |
|---|---|---|---|
| Either arr or size must be specified | exception | error | fenwick-tree, bit, constructor, missing-argument |
| Vertex indexes must be in [0; size). | validation | error | graphs, index-error, bounds-check |
| differentiate() requires a float as input for position | exception | error | maths, autodiff, validation, valueerror |
| Frequency can't be negative. | exception | error | physics, photoelectric-effect, validation, valueerror |
| Input value of [ ] must be an integer | exception | error | math, typeerror, type-checking, proth |
| Mass of the orbiting object must be greater than zero. | exception | warning | physics, cli, user-input, valueerror, mass |
| max_set_length must be non-negative | exception | error | python, math, combinatorics, validation, value-error |
| Impossible fluid density | exception | error | physics, acoustics, validation, valueerror |
| Invalid IPv4 octet | exception | error | python, value-error, ipv4, network, range-check |
| Final orbit radius must be greater than zero. | exception | warning | physics, cli, user-input, valueerror, orbital-mechanics |
| nominal_annual_interest_rate_percentage must be >= 0 | exception | error | finance, interest, rate, validation |
| the value of input must be a natural number | exception | error | python, input-validation, dynamic-programming, math |
| Window size must be a positive integer | validation | error | finance, input-validation, valueerror |
| All numbers must be positive | validation | error | sorting, radix-sort, precondition, non-negative, input-validation |
| All weights must be integers but got weight of type | exception | error | python, type-error, input-validation, dynamic-programming |
| Years to repay must be an integer > 0 | exception | error | finance, emi, type-check, validation |
| Destination width/height should be > 0 | exception | error | image-processing, resize, validation, python |
| invalid k value | exception | error | computer-vision, harris-corner, validation, parameter-bug |
| Test samples' feature length does not equal to that of… | exception | error | machine-learning, svm, input-validation, numpy |
| is not a valid number of bands | exception | error | electronics, resistor, color-code, validation, valueerror |
| Input must be a positive integer | exception | error | python, value-error, primes, sieve, maths |
| Parameter n must be greater than or equal to one. | exception | critical | python-euler, python2-syntax, valueerror, validation, fibonacci |
| Shape of y_true and y_pred must be the same. | exception | error | machine-learning, loss-function, shape-mismatch, numpy |
| Expected b_coeffs to have | validation | error | physics, input-validation, units |
| Incorrect 'from_type' or 'to_type' value | exception | error | python, value-error, units, energy, input-validation |
| Input value must be a positive integer. Input value | exception | error | math, primes, germain, validation, typeerror |
| Invalid input: must have length 2. | exception | error | graph, adjacency-matrix, constructor, edge-format |
| math domain error | exception | error | math, gamma, validation, valueerror |
| numbers must be an iterable of integers | exception | error | python, input-validation, type-error, dynamic-programming |
| Position must be non-negative | exception | error | linked-list, negative-index, insert, validation |
| Length of alphabet has to be 27. | exception | error | ciphers, trifid, validation, alphabet |
| Maximum queue size is 100 | exception | error | queue, priority-queue, overflow, python |
| Matrix is singular | validation | error | linear-algebra, gaussian-elimination, singular-matrix, numerical-tolerance |
| additive_persistence() does not accept negative values | exception | error | python, value-error, input-validation, maths |
| The final value of x must be greater than the initial… | exception | error | math, numerical-analysis, ode, valueerror, parameter-validation |
| The input value of [n= ] has to be > 0 | exception | error | math, valueerror, input-validation, recursion, assertion-quirk, sylvester |
| A Matrix can only be raised to the power of an int | exception | error | matrix, typeerror, exponent, numpy-interop |
| Invalid 'from_type' or 'to_type' value | exception | error | python, validation, units, weight, conversion |
| Invalid neighbor in node adjacency list. | exception | error | graph, lanczos, index-validation, off-by-one |
| {key} | exception | error | hash-map, key-error, delete, open-addressing |
| starting number must be and… | exception | error | python, input-validation, argument-order, dynamic-programming |
| Capacitor at index has a negative or zero value! | validation | error | electronics, physics, validation, python, input-validation |
| Parameter nth must be greater than or equal to one. | validation | error | project-euler, validation, valueerror, input-validation |
| 'base' must be between 2 and 36 inclusive | exception | error | math, input-validation, valueerror, radix |
| Matrices are not 2x2 | exception | error | python, input-validation, matrix, divide-and-conquer |
| Rate of interest must be >= 0 | exception | error | finance, emi, interest-rate, validation |
| Expected a matrix, got int/list instead | exception | error | matrix, typeerror, input-validation, shape-error |
| num must be non-negative integer | exception | error | math, square-root, binary-search, validation |
| vol_sphere() only accepts non-negative values | exception | error | math, validation, geometry, valueerror |
| Number of eigenvectors must be between 1 and the number of… | exception | error | graph, lanczos, eigenvectors, parameter-validation |
| Unable to multiply these matrices, please check the… | exception | error | python, input-validation, matrix, divide-and-conquer |
| must be a dict | validation | error | dynamic-programming, hmm, type-validation |
| Will result in duplicate vertices. Either increase range… | exception | error | graph, adjacency-matrix, test-generator, random-sampling |
| Absolute temperature cannot be less than 0 K | exception | error | physics, gas, units, temperature, bare-exception |
| degrees must be a numeric value between 0 and 360. | validation | error | geometry, input-validation, typeerror, dataclass |
| Invalid image dtype , expected uint8 or float32 | exception | error | mnist, dtype, tensorflow, validation |
| invalid operand! | exception | error | linear-algebra, vector, type-error, dot-product, type-guard |
| solve_simultaneous() requires n lists of length n+1 | exception | error | python, math, linear-algebra, index-error |
| All parameters must be positive. | exception | error | physics, hydrology, idf, validation, valueerror |
| outer_radius must be greater than inner_radius | exception | error | math, validation, geometry, argument-order, valueerror |
| solution() only accepts values from 0 to 100 | validation | error | project-euler, validation, valueerror, range-check |
| must be a list | validation | error | dynamic-programming, hmm, type-validation |
| Both the weights and values vectors must be either lists or… | exception | error | python, input-validation, dynamic-programming, knapsack |
| Graph should be a list of lists. | exception | error | graph, lanczos, numpy, type-validation, adjacency-list |
| Impossible bulk modulus | exception | error | physics, acoustics, units, validation, valueerror |
| Incorrect input: already exists in this graph. | exception | error | graph, adjacency-matrix, duplicate-vertex, constructor |
| ksize must be in | exception | error | image-processing, opencv, validation, python |
| Invalid magic number | exception | error | mnist, data-validation, file-format, gzip |
| invalid operation type | validation | error | machine-learning, autodiff, unsupported-operation, gradient |
| Value must be an integer. | exception | error | type-check, dataclass, serialization, type-error |
| Both points must have the same dimension. | exception | error | maths, validation, dimension-mismatch, valueerror |
| Input value is not an integer | exception | error | python, value-error, binary, input-validation |
| Input value must be a positive integer | validation | error | physics, typeerror, type-validation, user-input |
| mass, density, area and the drag coefficient all need to be… | exception | error | physics, drag, validation, valueerror, positional-args |
| Node with label already exists | exception | error | binary-tree, duplicate-key, validation, insert |
| is not a valid color for temperature coeffecient band | exception | error | electronics, resistor, color-code, temperature-coefficient, valueerror |
| Data cannot be empty. | exception | error | serialization, empty-input, deserialization, validation |
| Vector length must match the number of nodes in the graph. | exception | error | graph, numpy, validation, lanczos, eigenvectors |
| You should execute algorithm before using its result! | exception | error | graphs, max-flow, initialization, ordering |
| Can't get top element for the empty heap. | exception | error | heap, empty-state, randomized-heap, index-error |
| number of qubits must be exact integer. | validation | error | quantum, validation, valueerror, integer-check |
| the value of input must not be negative | validation | error | bit-manipulation, input-validation, python |
| This function only converts numbers less than 100 | exception | error | conversions, numbers-to-words, validation, range-check |
| Expecting an iterable object but got an non-iterable type | exception | error | computational-geometry, validation, type-guard, python |
| k must not be negative | validation | error | physics, units, speed-of-light, input-validation |
| Non-binary value was passed to the function | exception | error | conversions, binary, octal, validation |
| surface_area_torus() does not support spindle or self… | exception | error | python, math, geometry, validation, valueerror, domain-error, torus |
| binary tree cannot be empty | exception | error | binary-tree, empty-state, adjacency-list, mirror |
| Candidates list should not be empty | validation | error | physics, api-contract, valueerror, casimir |
| n is too large | exception | error | math, fibonacci, binet, float-overflow, valueerror |
| You need to set maximum flow algorithm before. | exception | error | graphs, max-flow, initialization, strategy-pattern |
| You cannot supply more or less than 2 values | validation | error | electronics, semiconductor, physics, validation, python |
| Non-octal value was passed to the function | exception | error | python, validation, numeral-system, conversion |
| num must be an integer or a half-integer | exception | error | math, gamma, api-limitation, notimplementederror |
| Correct format for using this script: python fractals.py… | validation | warning | cli, usage-error, graphics, turtle |
| No path from vertex: to vertex | exception | error | graphs, bfs, shortest-path, unreachable |
| No solution exists! | validation | error | physics, argument-order, input-validation |
| Step size must be positive and non-zero. | exception | error | matrix, validation, step-size, valueerror |
| There's an empty parameter | validation | error | dynamic-programming, hmm, input-validation |
| Invalid value was passed to the function | exception | error | python, value-error, hex, binary, input-validation |