Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python3.3 Entry Point not found #3090

Closed
felixgao opened this issue Mar 27, 2013 · 8 comments
Closed

python3.3 Entry Point not found #3090

felixgao opened this issue Mar 27, 2013 · 8 comments
Milestone

Comments

@felixgao
Copy link

I am trying to make ipython work with my new python3.3 installation through brew.
OSX: 10.8.1

 #!/usr/local/Cellar/python3/3.3.0/bin/python3
 # EASY-INSTALL-ENTRY-SCRIPT: 'ipython==0.13.1','console_scripts','ipython'
 __requires__ = 'ipython==0.13.1'
 import sys
 from pkg_resources import load_entry_point

 sys.exit(
    load_entry_point('ipython==0.13.1', 'console_scripts', 'ipython')()
 )

Traceback (most recent call last):
File "/usr/local/bin/ipython3", line 8, in
load_entry_point('ipython==0.13.1', 'console_scripts', 'ipython')()
File "/usr/local/Cellar/python3/3.3.0/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/distribute-0.6.35-py3.3.egg/pkg_resources.py", line 343, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/local/Cellar/python3/3.3.0/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/distribute-0.6.35-py3.3.egg/pkg_resources.py", line 2309, in load_entry_point
raise ImportError("Entry point %r not found" % ((group,name),))
ImportError: Entry point ('console_scripts', 'ipython') not found

@minrk
Copy link
Member

minrk commented Mar 27, 2013

how did you install IPython?

@felixgao
Copy link
Author

pip3 install ipython

@minrk
Copy link
Member

minrk commented Mar 27, 2013

Interesting, It didn't build the script properly. The entry point should be:

load_entry_point('ipython==0.13.1', 'console_scripts', 'ipython3')()

(note ipython3, not ipython)

I just did a test with pip install ipython in a Python 3.3 virtualenv (OS X 10.8.3, though I doubt that is relevant), and it did the right thing. My only thought is to make sure your distribute and pip are up to date, then try reinstalling IPython.

@felixgao
Copy link
Author

I changed the script to use ipython3 and

load_entry_point('ipython==0.13.1', 'console_scripts', 'ipython3')()

$ipython3
Traceback (most recent call last):
File "/usr/local/bin/ipython3", line 8, in
load_entry_point('ipython==0.13.1', 'console_scripts', 'ipython3')()
File "/usr/local/Cellar/python3/3.3.0/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/distribute-0.6.35-py3.3.egg/pkg_resources.py", line 343, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/local/Cellar/python3/3.3.0/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/distribute-0.6.35-py3.3.egg/pkg_resources.py", line 2310, in load_entry_point
return ep.load()
File "/usr/local/Cellar/python3/3.3.0/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/distribute-0.6.35-py3.3.egg/pkg_resources.py", line 2016, in load
entry = import(self.module_name, globals(),globals(), ['name'])
File "/usr/local/lib/python3.3/site-packages/IPython/init.py", line 43, in
from .config.loader import Config
File "/usr/local/lib/python3.3/site-packages/IPython/config/init.py", line 16, in
from .application import *
File "/usr/local/lib/python3.3/site-packages/IPython/config/application.py", line 31, in
from IPython.config.configurable import SingletonConfigurable
File "/usr/local/lib/python3.3/site-packages/IPython/config/configurable.py", line 26, in
from .loader import Config
File "/usr/local/lib/python3.3/site-packages/IPython/config/loader.py", line 27, in
from IPython.utils.path import filefind, get_ipython_dir
File "/usr/local/lib/python3.3/site-packages/IPython/utils/path.py", line 25, in
from IPython.utils.process import system
File "/usr/local/lib/python3.3/site-packages/IPython/utils/process.py", line 27, in
from ._process_posix import _find_cmd, system, getoutput, arg_split
File "/usr/local/lib/python3.3/site-packages/IPython/utils/_process_posix.py", line 22, in
from IPython.external import pexpect
File "/usr/local/lib/python3.3/site-packages/IPython/external/pexpect/init.py", line 2, in
import pexpect
File "/usr/local/lib/python3.3/site-packages/pexpect.py", line 82
except ImportError, e:
^
SyntaxError: invalid syntax
$ pip3 install pexpect
Requirement already satisfied (use --upgrade to upgrade): pexpect in /usr/local/lib/python3.3/site-packages
Cleaning up...

I guess I might be stuck with my python2.7 for a while.

@minrk
Copy link
Member

minrk commented Mar 27, 2013

do not install pexpect, it is not compatible with Python 3. Install pexpect-u - a unicode-aware fork of pexpect.

@takluyver
Copy link
Member

Or indeed just don't install either - IPython includes a copy of pexpect-u
that it will use if it doesn't find a system copy.

@felixgao
Copy link
Author

awesome. thanks for all the help. removing pexpect solved the problem.

@donaldbraman
Copy link

Thanks for the tip on pexpect-u. Had the same problem and it worked for me, too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants