Python Forum

Full Version: NameError: name 'bsObj' is not defined
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Quote:Is that better, still will not work, but I am have for the problem

No,i shall be honest we you is terrible as it is now Sad
There is a mixed use of 2-3-4 space indentation.
There also wrong indentation.
Indentation is very important in Python(4-space always)
so that you have to learn Wink
Yes I am, it should be fixed now.
New problem I try to install urllib2 and I got this:
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\renny and kite>pip install urllib2
Collecting urllib2
 Could not find a version that satisfies the requirement urllib2 (from version
: )
No matching distribution found for urllib2

C:\Users\renny and kite>
It is a fight every time I try to do something, nothing works.
Hopeful some one can help

Well, I just seen you reply, I do have them 4 spaces in and the last if is 8 spaces in. That is not right?
(Oct-24-2016, 01:07 AM)Blue Dog Wrote: [ -> ]New problem I try to install urllib2 and I got this:
urllib2 is a standard library in python 2.x
urllib2/urllib should not be used in Python 2 or 3.
Because Requests is a lot better and safer pip install requests
Thank you all
Pages: 1 2