i'm trying to import random & urllib.request libraries in sublime test but it give my the below error

File "C:\Users\7oss\Desktop\print.py", line 47

import random

IndentationError: expected an indented block

Any ideas ?

Recommended Answers

All 3 Replies

Did you open up print.py and see if it has some mix of tabs and spaces for indenting?

i have opned it and there is no mix of tabs or spaces i think i must do somthing from sublime ide to be able to import the libraries do you have any ideas how can i do that ?

I think it can import since it got to line 47. If it couldn't import it would have failed at line 1 or prior. Look again at line 47.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.