For posterity: I had the same problem and fixed it using,
sed -i 's/\x0//g' FILENAME
The file seemed to be messed up in numerous ways (wrong endings, etc); no idea how…
More Related Contents:
- How to uninstall Python 2.7 on a Mac OS X 10.6.4?
- Getting “Permission Denied” when running pip as root on my Mac
- pip installing in global site-packages instead of virtualenv
- Too many different Python versions on my system and causing problems
- Python and OpenSSL version reference issue on OS X
- python matplotlib framework under macosx?
- Broken references in Virtualenvs
- Cross-platform space remaining on volume using python
- Can’t load Python modules installed via pip from site-packages directory
- Could not install packages due to an EnvironmentError: [Errno 13]
- Make python3 as my default python on Mac
- socket.error: [Errno 48] Address already in use
- Python Sound (“Bell”)
- Can’t install PIL after Mac OS X 10.9
- Python import MySQLdb error – Mac 10.6
- Why does Python installed via Homebrew not include Tkinter
- mysql-python installation problems (on mac os x lion)
- How to install two versions of Anaconda (Python 2 and 3) on Mac OS
- Switch between python 2.7 and python 3.5 on Mac OS X
- How do you install lxml on OS X Leopard without using MacPorts or Fink?
- Vim failing to compile with python on OS X
- pip3: bad interpreter: No such file or directory
- Getting “cannot write mode P as JPEG” while operating on JPG image
- Unicode encoding for filesystem in Mac OS X not correct in Python?
- Upgrade Python to 2.6 on Mac
- Trigger an event when clipboard content changes
- Conda: Creating a virtual environment
- Mac + virtualenv + pip + postgresql = Error: pg_config executable not found
- Could not install packages due to a “Environment error :[error 13]: permission denied : ‘usr/local/bin/f2py'”
- Pip suddenly using wrong version of Python