256 Kilobytes

All Content > Scripting

Type All Category All Tag Scripting

Profile Photo - Some Guy
Profile Photo - Univa

Last Reply Typeerror This Constructor Takes No Arguments Python Error error codes are caused, in one way or another, by misconfigured system files in your Window... Univa,

Typeerror This Constructo...

Fri, 26 Apr 2019 08:18:20 -0700 3 weeks ago
🗨
1
🐏
0
👁
65
Profile Photo - Some Guy
Profile Photo - Univa

Last Reply Before posting any codes try using the formatting tools, sometimes it solves the problem.  You can also try pasting this code:  a_str,... Univa,

Before posting any codes...

Sun, 14 Apr 2019 03:06:36 -0700 1 month ago
🗨
1
🐏
0
👁
111
Profile Photo - Some Guy

[Python] Fix for "TypeError: 'bool' object is not iterable?"

Answers in Scripting and Automation | By Some Guy

Published 4 months agoSun, 13 Jan 2019 05:39:20 -0800

Profile Photo - August R. Garcia

Last Reply You probably have your code set up where some value can either be: An array (or whatever) or FALSE (for when there are no values) Th... August R. Garcia,

You probably have your&nb...

Sun, 07 Apr 2019 12:14:43 -0700 1 month ago
🗨
1
🐏
0
👁
259
Profile Photo - SMVVR2

Best way to rename part of filename in multiple files?

Answers in Scripting and Automation | By SMVVR2

Published 1 month agoTue, 19 Mar 2019 07:05:20 -0700

Profile Photo - Edgelady43069

Last Reply This is the easiest and quickest way: 1. Open File Explorer. 2. Browse to the folder that includes all the files you want to rename. 3. Select the fir... Edgelady43069,

This is the easiest and q...

Wed, 20 Mar 2019 02:02:20 -0700 1 month ago
🗨
1
🐏
0
👁
45
Profile Photo - Some Guy
Profile Photo - roxblade

Last Reply Pickle protocol can be simply referred to as the file format. The higher the protocol is, the more recent version of python is what you need to read t... roxblade,

Pickle protocol can be si...

Wed, 27 Feb 2019 13:31:12 -0800 2 months ago
🗨
1
🐏
0
👁
346
Profile Photo - Some Guy
Profile Photo - Default

Last Reply This error TypeError: document.getelementbyid(...) is null would seem to indicate that there is no such element with an ID passed to getElementById()... jacobhalls,

This error TypeError: doc...

Sun, 24 Feb 2019 21:30:19 -0800 2 months ago
🗨
1
🐏
0
👁
112
Profile Photo - Some Guy

Scripting vs programming languages, what are the differences?

Forum in Computer Programming | By Some Guy

Published 3 months agoWed, 06 Feb 2019 14:12:00 -0800

Profile Photo - roxblade

Last Reply See this thread. roxblade,

See this thread.

Sat, 23 Feb 2019 10:59:13 -0800 2 months ago
🗨
1
🐏
0
👁
86
Profile Photo - Some Guy
Profile Photo - Hash Brown

Last Reply Hello, You're trying to decode a JSON string by the sound of it. The most common errors for these sorts of things are: The JSON string is not... Hash Brown,

Hello,

Thu, 21 Feb 2019 14:37:41 -0800 2 months ago
🗨
1
🐏
0
👁
103
Profile Photo - Some Guy
Profile Photo - Hash Brown

Last Reply >Can you find me a forum entry on a coding site that deals with fixing this exact type error? k. These errors are ususally created when you c... Hash Brown,

>Can you find me a for...

Wed, 20 Feb 2019 06:09:44 -0800 2 months ago
🗨
1
🐏
0
👁
478
Profile Photo - Some Guy
Profile Photo - Hash Brown

Last Reply Python 3 docs say: "Construct an iterator from those elements of iterable for which function returns true." Source: https://docs.python... Hash Brown,

Python 3 docs say:

Wed, 20 Feb 2019 04:39:57 -0800 2 months ago
🗨
1
🐏
0
👁
140
Profile Photo - Some Guy
Profile Photo - Hash Brown

Last Reply Hey, So NaN values (not a number) are normally used when values are likely to be so large they don't fit into a standard double. for example if... Hash Brown,

Hey,

Wed, 20 Feb 2019 04:20:31 -0800 2 months ago
🗨
1
🐏
0
👁
1,292
Profile Photo - Some Guy
Profile Photo - Hash Brown

Last Reply Hello dude, len() gets the length of a string. The data passed to it has to be a string, that's just how it works. So if you're trying to pass a... Hash Brown,

Hello dude,

Wed, 20 Feb 2019 03:40:58 -0800 2 months ago
🗨
1
🐏
0
👁
109
Profile Photo - Some Guy
Profile Photo - roxblade

Last Reply You're trying to change a part of a string. That isn't supported by many object-oriented programming languages. Unicode objects like * are used to cha... roxblade,

You're trying to change a...

Thu, 07 Feb 2019 02:52:20 -0800 3 months ago
🗨
1
🐏
0
👁
89
Profile Photo - Some Guy

[Python] How can I fix "TypeError: a float is required?"

Answers in Scripting and Automation | By Some Guy

Published 4 months agoSun, 13 Jan 2019 05:43:50 -0800

Profile Photo - roxblade

Last Reply This error usually throws up when you think you're adding a float element to the argument but you're not.This problem most commonly arises from the us... roxblade,

This error usually throws...

Thu, 07 Feb 2019 02:45:42 -0800 3 months ago
🗨
1
🐏
0
👁
84
Profile Photo - Some Guy
Profile Photo - roxblade

Last Reply Only lists can be cocatenated with other list elements. Only same data types can be cocatenated. Further, Python cannot convert the string element in... roxblade,

Only lists can be cocaten...

Thu, 07 Feb 2019 02:25:53 -0800 3 months ago
🗨
1
🐏
0
👁
85
Profile Photo - Some Guy
Profile Photo - roxblade

Last Reply You are trying to cocatenate an int with a string. And you understand that much. Different data types cannot be cocatenated. So, what you need to do i... roxblade,

You are trying to cocaten...

Thu, 07 Feb 2019 02:22:47 -0800 3 months ago
🗨
1
🐏
0
👁
447
Profile Photo - Some Guy
Profile Photo - roxblade

Last Reply Cocatenation only happens between similar data objects. Here, you must be trying to cocatenate a string with a tuple, which Python can't do. So, it th... roxblade,

Cocatenation only happens...

Thu, 07 Feb 2019 02:14:14 -0800 3 months ago
🗨
1
🐏
0
👁
331
Profile Photo - Some Guy
Profile Photo - roxblade

Last Reply This is an error that arises when you try to cocatenate two different data types. Bytes object cannot go with the string object. And the Python compil... roxblade,

This is an error that ari...

Thu, 07 Feb 2019 02:09:08 -0800 3 months ago
🗨
1
🐏
0
👁
76
Profile Photo - Some Guy
Profile Photo - roxblade

Last Reply What this error means is that you cannot be cocatenating a string with an int. The Python compiler would not be able to do the conversion by itself. T... roxblade,

What this error means is...

Thu, 07 Feb 2019 02:05:48 -0800 3 months ago
🗨
1
🐏
0
👁
123
Profile Photo - Some Guy
Profile Photo - roxblade

Last Reply You're probably using an XML parser which produces a string. So, the multiplication doesn't work, because it's not natural for Python. Strings cannot... roxblade,

You're probably using an...

Thu, 07 Feb 2019 02:00:26 -0800 3 months ago
🗨
1
🐏
0
👁
173
Profile Photo - Some Guy
Profile Photo - roxblade

Last Reply Welcome to the world of Python! It can totally be a pain sometimes. More often than not, in my opinion. Now, this problem arises due to a number of re... roxblade,

Welcome to the world of P...

Thu, 07 Feb 2019 01:56:58 -0800 3 months ago
🗨
1
🐏
0
👁
183
Profile Photo - Some Guy
Profile Photo - roxblade

Last Reply This is not a very rare HTML problem. The Python function is basically returning nothing. It's a common coding problem. My advice would be checking th... roxblade,

This is not a very rare H...

Thu, 07 Feb 2019 01:49:06 -0800 3 months ago
🗨
2
🐏
0
👁
90
Profile Photo - Some Guy

[Python] Fix for "ValueError: x and y must be the same size?"

Answers in Scripting and Automation | By Some Guy

Published 4 months agoSun, 13 Jan 2019 06:11:34 -0800

Profile Photo - roxblade

Last Reply Both arrays (NumPy or otherwise) need to be of the same dimension. This error throws up when one is 2D and another 1D. You can try printing both the a... roxblade,

Both arrays (NumPy or oth...

Wed, 06 Feb 2019 18:58:27 -0800 3 months ago
🗨
1
🐏
0
👁
128
Profile Photo - Some Guy
Profile Photo - roxblade

Last Reply It's quite self-explanatory. This happens in matplotlib graph plotting. You can first of all attempt making x and y NumPy arrays. NumPy is also a libr... roxblade,

It's quite self-explanato...

Wed, 06 Feb 2019 18:49:13 -0800 3 months ago
🗨
1
🐏
0
👁
103
Profile Photo - Some Guy
Profile Photo - roxblade

Last Reply This is a common error in older Python versions, like Python 2.6.x. All you need to do is update to the latest version. The problem arises because... roxblade,

This is a common error in...

Fri, 01 Feb 2019 02:37:26 -0800 3 months ago
🗨
1
🐏
0
👁
92
Profile Photo - Some Guy
Profile Photo - roxblade

Last Reply np.cocatenate is not an easy process, to be honest. It creates more problems as well. Well, the simple truth here is that you need to arrange the arra... roxblade,

np.cocatenate is not an e...

Fri, 01 Feb 2019 02:31:51 -0800 3 months ago
🗨
1
🐏
0
👁
149
Profile Photo - Some Guy
Profile Photo - roxblade

Last Reply This problem usually arises because of using incorrect fmin syntax. Your code must be missing out on this. You need to utilize parentheses and comma i... roxblade,

This problem usually aris...

Fri, 01 Feb 2019 02:28:15 -0800 3 months ago
🗨
1
🐏
0
👁
175
Profile Photo - Some Guy
Profile Photo - August R. Garcia

Last Reply One possible reason why you're running into this error is because of a float being divided to a cleanly-rounded number, but that result still... August R. Garcia,

One possible reason why y...

Thu, 31 Jan 2019 20:42:25 -0800 3 months ago
🗨
1
🐏
0
👁
578
Profile Photo - Some Guy
Profile Photo - Hash Brown

Last Reply Hello, You're clearly doing some sort of division in your math problem, and it would appear you're trying to divide by 0 which is impossibl... Hash Brown,

Hello,

Thu, 24 Jan 2019 01:32:24 -0800 3 months ago
🗨
1
🐏
0
👁
238
Profile Photo - Some Guy
Profile Photo - Hash Brown

Last Reply Hello, This is one of the errors that often comes up when the tutorial you're following has a different version of python installed to you.... Hash Brown,

Hello,

Thu, 24 Jan 2019 00:27:20 -0800 3 months ago
🗨
1
🐏
0
👁
108