Errors on pycharm

+1 Sps 101 · November 7, 2015
For the same code
Im getting the following error

Traceback (most recent call last):
File "C:/Users/admin/PycharmProjects/untitled1/url.py", line 1, in <module>
from urllib import request
File "C:\Users\admin\AppData\Local\Programs\Python\Python35-32\lib\urllib\request.py", line 97, in <module>
import tempfile
File "C:\Users\admin\AppData\Local\Programs\Python\Python35-32\lib\tempfile.py", line 43, in <module>
import shutil as _shutil
File "C:\Users\admin\AppData\Local\Programs\Python\Python35-32\lib\shutil.py", line 16, in <module>
import bz2
File "C:\Users\admin\AppData\Local\Programs\Python\Python35-32\lib\bz2.py", line 18, in <module>
from threading import RLock
File "C:\Users\admin\AppData\Local\Programs\Python\Python35-32\lib\threading.py", line 7, in <module>
from traceback import format_exc as _format_exc
File "C:\Users\admin\AppData\Local\Programs\Python\Python35-32\lib\traceback.py", line 5, in <module>
import linecache
File "C:\Users\admin\AppData\Local\Programs\Python\Python35-32\lib\linecache.py", line 11, in <module>
import tokenize
File "C:\Users\admin\AppData\Local\Programs\Python\Python35-32\lib\tokenize.py", line 453
buffer = _builtin_open(filename, 'rb')
^
IndentationError: unexpected indent

Post a Reply

Replies

Oldest  Newest  Rating
+1 sfolje 0 · November 7, 2015
comment lines one by one, test if it works, if it doesnt, comment more lines and so on.

IndentationError: unexpected indent 
means you did intent (tab-space) where you shouldnt.

Also: post the code, we can't hack into your computer (or maybe we're just too lazy? :) ) to see it .
  • 1

Python

103,703 followers
About

This section is all about snakes! Just kidding.

Links
Moderators
Bucky Roberts Administrator