Based on your comments to orip’s post, I guess this is what happened:
- You edited
__init__.py
on windows. - The windows editor added something non-printing, perhaps a carriage-return (end-of-line in Windows is CR/LF; in unix it is LF only), or perhaps a CTRL-Z (windows end-of-file).
- You used WinSCP to copy the file to your unix box.
- WinSCP thought: “This has something that’s not basic text; I’ll put a .bin extension to indicate binary data.”
- The missing
__init__.py
(now called__init__.py.bin
) means python doesn’t understand toolkit as a package. - You create
__init__.py
in the appropriate directory and everything works… ?
Related Posts:
- Python error “ImportError: No module named”
- Importing files from different folder
- Importing files from different folder
- ImportError: Cannot import name X
- How to fix “Attempted relative import in non-package” even with __init__.py
- ImportError: libSM.so.6: cannot open shared object file: No such file or directory
- How to fix “Attempted relative import in non-package” even with __init__.py
- Python: ‘ModuleNotFoundError’ when trying to import module from imported package
- Relative imports – ModuleNotFoundError: No module named x
- Relative imports in Python 3
- Is “from matplotlib import pyplot as plt” == “import matplotlib.pyplot as plt”?
- ImportError: No module named requests
- Importing modules from parent folder
- `from … import` vs `import .` [duplicate]
- Importing modules from parent folder
- How to import the class within the same directory or sub directory?
- How do I unload (reload) a Python module?
- ImportError: cannot import name main when running pip –version command in windows7 32 bit
- How to import the class within the same directory or sub directory?
- How to import other Python files?
- Import urllib.request, ImportError: No module named request
- “ImportError: no module named ‘requests'” after installing with pip
- django import error – No module named core.management
- ImportError: No Module Named bs4 (BeautifulSoup)
- How to import a module given the full path?
- Why does using from __future__ import print_function breaks Python2-style print?
- Importing variables from another file in Python
- ImportError: No module named ‘bottle’ – PyCharm
- What does “Symbol not found / Expected in: flat namespace” actually mean?
- ImportError: No module named six
- ImportError: No module named ‘cv2’ Python3
- NameError: name ‘requests’ is not defined
- Python ImportError: No module named wx
- How to load all modules in a folder?
- python flask import error
- ImportError: No module named Cython.Distutils
- How to resolve “ImportError: DLL load failed:” on Python?
- Import a file from a subdirectory?
- Installing lxml module in python
- ModuleNotFoundError: What does it mean __main__ is not a package?
- Import file from parent directory?
- beyond top level package error in relative import
- Where does pip install its packages?
- Random string generation with upper case letters and digits
- Process finished with exit code -1073741515 (0xC0000135)
- numpy division with RuntimeWarning: invalid value encountered in double_scalars
- WinError 2 The system cannot find the file specified (Python)
- How can I do a line break (line continuation)?
- Merging dataframes on index with pandas
- How to set environment variables in Python?
- hashlib.md5() TypeError: Unicode-objects must be encoded before hashing
- Remove list from list in Python
- TypeError: unsupported operand type(s) for -: ‘str’ and ‘int’
- pandas: filter rows of DataFrame with operator chaining
- How do you change the size of figures drawn with Matplotlib?
- Python AttributeError: ‘str’ object has no attribute ‘decode’
- NameError: name ‘raw_input’ is not defined
- Remove all whitespace in a string
- Max retries exceeded with URL in requests
- Create 3D array using Python
- How to load a tsv file into a Pandas DataFrame?
- The tilde operator in Python
- Explain __dict__ attribute
- How to pretty print nested dictionaries?
- Is there a linked list predefined library in Python?
- How to filter Pandas dataframe using ‘in’ and ‘not in’ like in SQL
- Create empty file using python [duplicate]
- TypeError: string indices must be integers, not str // working with dict
- How do I print colored output to the terminal in Python?
- Dictionary in a numpy array?
- Pythonic way to find maximum value and its index in a list?
- Python “SyntaxError: Non-ASCII character ‘\xe2’ in file”
- Why is there no tuple comprehension in Python?
- You are trying to add a non-nullable field ‘new_field’ to userprofile without a default
- How to calculate a Gaussian kernel matrix efficiently in numpy?
- AttributeError: Can only use .str accessor with string values, which use np.object_ dtype in pandas
- Python Pandas ValueError Arrays Must be All Same Length
- Anaconda / Python: Change Anaconda Prompt User Path
- Pycharm and sys.argv arguments
- ImportError: No module named ‘yaml’
- TypeError: ‘_io.TextIOWrapper’ object is not subscriptable
- Convert R code into Python code using rpy2
- PIL: DLL load failed: specified procedure could not be found
- “Cannot access setup.py: No such file or directory” – can’t run any .py files?
- How to delete a specific line in a file?
- How does ajax work with python?
- RSA encryption and decryption in Python
- pip3 error – ‘_NamespacePath’ object has no attribute ‘sort’
- What does {0} mean in this Python string?
- Tab Error in Python
- Installation of pygame with Anaconda
- What is the meaning of “int(a[::-1])” in Python?
- Pandas unstack problems: ValueError: Index contains duplicate entries, cannot reshape
- How do I read image data from a URL in Python?
- ‘pyuic5’ is not recognized as an internal or external command
- ValueError: multiclass format is not supported
- Filtering a NumPy Array
- Invalid syntax when using “print”?
- Error loading MySQLdb module: No module named ‘MySQLdb’
- Unable to install boto3