Sona
Sona

Reputation: 41

How to get python script failure message

This may sound a newbie question, however I'm new to python,

I'm launching python shell then typing following into it from tastypie.resources import * The return message is

>>> from tastypie.resources import *
Aborted

The necessary modules are installed I've checked, please don't suggest running the command in separate .py file as my shell is launched with some setup by other scripts.

It there any python interpreter log (where it is located in ubuntu ?) Is there any python configuration which debugs script execution.

P.S. python is 2.7.2+

Thanks in advance

Upvotes: 1

Views: 134

Answers (1)

jfs
jfs

Reputation: 414139

python -vv to trace import statements, try python --help.

Upvotes: 1

Related Questions