Login Register






Help With python3 compilation error. filter_list
Author
Message
Help With python3 compilation error. #1
Hello [username],

I worked on a tool http://www.hackcommunity.com/Thread-Reso...ifier-v2-0 and tested it with python 2.7 and it worked perfectly. But when I run a the same with python 3.3.1 it shows me the following error :-

Code:
File "HashIdentifier.py", line 81 res += [items[0]] if ( type(items[0]) is str ) else items[0] ^ TabError: inconsistent use of tabs and spaces in indentation

But I didn't understood what I am supposed to do. It works great with python 2.7 then why this error is occurring.

I hope you can help me resolve the error. I am not a very good with python so sorry for a nooby question.

UPDATE : Now the code compiles and runs. But Again a problem has arised. raw_input() is not supported in python3 and shows error, and input() is not supported in python 2.7.6 and shows error. WTF ? and Now the question is How to f*ck ?


Thank you.
[Image: OilyCostlyEwe.gif]


Help With python3 compilation error. #2
Hello [username],

I worked on a tool http://www.hackcommunity.com/Thread-Reso...ifier-v2-0 and tested it with python 2.7 and it worked perfectly. But when I run a the same with python 3.3.1 it shows me the following error :-

Code:
File "HashIdentifier.py", line 81 res += [items[0]] if ( type(items[0]) is str ) else items[0] ^ TabError: inconsistent use of tabs and spaces in indentation

But I didn't understood what I am supposed to do. It works great with python 2.7 then why this error is occurring.

I hope you can help me resolve the error. I am not a very good with python so sorry for a nooby question.

UPDATE : Now the code compiles and runs. But Again a problem has arised. raw_input() is not supported in python3 and shows error, and input() is not supported in python 2.7.6 and shows error. WTF ? and Now the question is How to f*ck ?


Thank you.
[Image: OilyCostlyEwe.gif]


RE: Help With python3 compilation error. #3
I solved it. Any mod can close this thread.
[Image: OilyCostlyEwe.gif]


RE: Help With python3 compilation error. #4
I solved it. Any mod can close this thread.
[Image: OilyCostlyEwe.gif]