Created
February 17, 2016 10:56
-
-
Save msikma/062e2697f8bc3e805cc6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ which asdf.py | |
/Users/msikma/.virtualenvs/kc/bin/asdf.py | |
$ which python | |
/Users/msikma/.virtualenvs/kc/bin/python | |
$ cat /Users/msikma/.virtualenvs/kc/bin/asdf.py | |
#!/Users/msikma/.virtualenvs/kc/bin/python | |
# EASY-INSTALL-ENTRY-SCRIPT: 'kanaconv','console_scripts','asdf.py' | |
__requires__ = 'kanaconv' | |
import sys | |
from pkg_resources import load_entry_point | |
if __name__ == '__main__': | |
sys.exit( | |
load_entry_point('kanaconv', 'console_scripts', 'asdf.py')() | |
) | |
$ /Users/msikma/.virtualenvs/kc/bin/asdf.py | |
Traceback (most recent call last): | |
File "/Users/msikma/.virtualenvs/kc/bin/asdf.py", line 9, in <module> | |
load_entry_point('kanaconv', 'console_scripts', 'asdf.py')() | |
File "/Users/msikma/.virtualenvs/kc/lib/python3.5/site-packages/pkg_resources/__init__.py", line 547, in load_entry_point | |
return get_distribution(dist).load_entry_point(group, name) | |
File "/Users/msikma/.virtualenvs/kc/lib/python3.5/site-packages/pkg_resources/__init__.py", line 2719, in load_entry_point | |
return ep.load() | |
File "/Users/msikma/.virtualenvs/kc/lib/python3.5/site-packages/pkg_resources/__init__.py", line 2379, in load | |
return self.resolve() | |
File "/Users/msikma/.virtualenvs/kc/lib/python3.5/site-packages/pkg_resources/__init__.py", line 2385, in resolve | |
module = __import__(self.module_name, fromlist=['__name__'], level=0) | |
ImportError: No module named 'kanaconv.cli'; 'kanaconv' is not a package | |
$ /Users/msikma/.virtualenvs/kc/bin/python | |
Python 3.5.1 (v3.5.1:37a07cee5969, Dec 5 2015, 21:12:44) | |
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin | |
Type "help", "copyright", "credits" or "license" for more information. | |
>>> # EASY-INSTALL-ENTRY-SCRIPT: 'kanaconv','console_scripts','asdf.py' | |
... __requires__ = 'kanaconv' | |
>>> import sys | |
>>> from pkg_resources import load_entry_point | |
>>> | |
>>> if __name__ == '__main__': | |
... sys.exit( | |
... load_entry_point('kanaconv', 'console_scripts', 'asdf.py')() | |
... ) | |
... | |
[''] | |
test | |
$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment