Problem

Why do I see Usage: python someFile.py ... on the command-line and get booted out of the Python interpreter after importing a module or package?

Solution

Quite simply put, there's a very good chance the module you're importing has Windows carriage returns instead of UNIX '\n's. To fix this, try using the dos2unix command on any applicable Python files.

Related articles

Related articles appear here based on the labels you select. Click to edit the macro and add or change labels.



Related issues