nonetype error is not callable

H

homepricemaps

if i do the following i get the url of an image i am looking for

image = ""
image = bs.img
print image

however if i do this
out.write (image )

i get an error that says "nonetype error is not callable"

any ideas
 
S

Steven D'Aprano

if i do the following i get the url of an image i am looking for

image = ""
image = bs.img
print image

image = "" is a pointless operation in the above snippet.

What is bs and bs.img? How does it know what URL you are looking for?

however if i do this
out.write (image )

What is out?
i get an error that says "nonetype error is not callable"

I doubt that.

You are probably getting an exception that says:

TypeError: 'NoneType' object is not callable

Case is significant in Python -- NoneType is a built-in Python object,
nonetype could be anything you programmed it to be. Please don't
paraphrase error messages, copy and paste the exact message.

If you are getting a TypeError, that might mean that somehow, somewhere,
you have assigned out.write = None.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,046
Latest member
Gavizuho

Latest Threads

Top