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/", line 1, in <module>
from urllib import request
File "C:\Users\admin\AppData\Local\Programs\Python\Python35-32\lib\urllib\", line 97, in <module>
import tempfile
File "C:\Users\admin\AppData\Local\Programs\Python\Python35-32\lib\", line 43, in <module>
import shutil as _shutil
File "C:\Users\admin\AppData\Local\Programs\Python\Python35-32\lib\", line 16, in <module>
import bz2
File "C:\Users\admin\AppData\Local\Programs\Python\Python35-32\lib\", line 18, in <module>
from threading import RLock
File "C:\Users\admin\AppData\Local\Programs\Python\Python35-32\lib\", line 7, in <module>
from traceback import format_exc as _format_exc
File "C:\Users\admin\AppData\Local\Programs\Python\Python35-32\lib\", line 5, in <module>
import linecache
File "C:\Users\admin\AppData\Local\Programs\Python\Python35-32\lib\", line 11, in <module>
import tokenize
File "C:\Users\admin\AppData\Local\Programs\Python\Python35-32\lib\", line 453
buffer = _builtin_open(filename, 'rb')
IndentationError: unexpected indent

Post a Reply


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



This section is all about snakes! Just kidding.

Bucky Roberts Administrator