-
Notifications
You must be signed in to change notification settings - Fork 23
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
Failure trying to load ipyastpys #2
Comments
hmm... The error looks like it is coming from not finding the entry point to the ipython console scripts rather than the profile. Does it work if you do "ipython --profile=astpys" ? That should basically be identical to the script... |
Yes, actually- ipython --profile=astpys works fine, while ipyastpys On Mon, Oct 17, 2011 at 4:26 PM, Erik Tollerud
|
So how exactly did you install astropysics here? |
I used python setup.py install. I also tried python setup.py develop On Sat, Oct 22, 2011 at 12:54 AM, Erik Tollerud
Adam |
And did you run I'm confused by your traceback here, because its referencing a file "build/bdist.macosx-10.6-i386/egg/pkg_resources.py", and when I do the same thing it finds my installed version of pkg_resources in "/Library/Frameworks/Python.framework/..." ... do you have the setuptools or distribute packages installed on your system? And if so, did you install it before, or after ipython? (I'm not sure if this matters...) FYI, though, if you just want it to work, "ipython --profile=astpys " does essentially the same thing as "ipyastpys" |
On Mon, Oct 24, 2011 at 1:52 PM, Erik Tollerud
Yes. And, tried that.
Interesting... I removed setuptools & reinstalled them from source,
That's fine; I'm happy writing an alias if I want ipyastpys to work. |
Hmm... have you tried installing distribute? setuptools is developing more and more compatibility problems because it's no longer maintained, while distribute is being actively developed, and includes all of the setuptools functionality. If installing distribute fixes the problem, that at least gives me a hint as to what I need to do to reproduce this issue... |
On Mon, Oct 24, 2011 at 2:49 PM, Erik Tollerud
Thanks, I wasn't aware of the setuptools issues. My traceback $ ipyastpys Adam |
Yes, that looks more like what I have... except that I don't get a traceback, because it works just fine for me, which is why this is so puzzling. What happens if you do: import pkg_resources
print pkg_resources.load_entry_point('ipython','console_scripts','ipython') Just from the python (or ipython) prompt? Does it give you a function or does it throw the same ImportError? |
Same error:
Adam |
Hmm... did you install ipython from source? What happens if you re-install it, then try the above command? And I'm assuming you're using ipython 0.11? If so, what happens if you do from IPython.frontend.terminal.ipapp import launch_new_instance
launch_new_instance() |
I've actually reinstalled ipython a couple times (all from source) launch_new_instance works fine - it loads up an ipython terminal. Adam |
well that's just bizarre... as I said, it works fine for me... oh, is there any chance that somehow the ipyastpys script is somehow pointing to the wrong python? That is, if you have the system python (2.6 on Mac OS X) installed along side some other version, and ipyastpys is started with the system python while ipython is installed on some other version you installed, this is how it might manifest... |
I had the same thought. Unfortunately, nope, no luck. I also checked __requires__ = 'Astropysics==0.1.dev-r1120'
import pkg_resources
pkg_resources.run_script('Astropysics==0.1.dev-r1120', 'ipyastpys') and again, same error. On Mon, Oct 24, 2011 at 5:21 PM, Erik Tollerud
Adam |
Well this is quite strange... I'm pretty much out of ideas, especially given that I really can't figure out how to reproduce this. One other thing to try: use Now we're seeing why there's so much interest in moving away from setuptools/distribute! |
When I try to load ipyastpys, I get the following error:
ImportError: Entry point ('console_scripts', 'ipython') not found
if I use ipython 0.11 or 0.12.
I'm not sure, but I think it may be related to the default location ipython >=0.11 looks in: it should be ~/.ipython/profile_default/ or similar, not ~/.ipython/
Here's the full traceback:
$ /Library/Frameworks/Python.framework/Versions/2.6/bin/ipyastpys
/Users/adam/repos/ets/etsproxy/enthought/init.py:7: DeprecationWarning: enthought namespace imports are deprecated
DeprecationWarning)
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/2.6/bin/ipyastpys", line 5, in
pkg_resources.run_script('Astropysics==0.1.dev-r1117', 'ipyastpys')
File "build/bdist.macosx-10.6-i386/egg/pkg_resources.py", line 489, in run_script
if insert:
File "build/bdist.macosx-10.6-i386/egg/pkg_resources.py", line 1207, in run_script
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Astropysics-0.1.dev_r1117-py2.6.egg/EGG-INFO/scripts/ipyastpys", line 139, in
sys.exit(load_entry_point('ipython', 'console_scripts', 'ipython')())
File "build/bdist.macosx-10.6-i386/egg/pkg_resources.py", line 318, in load_entry_point
def get_metadata_lines(name):
File "build/bdist.macosx-10.6-i386/egg/pkg_resources.py", line 2220, in load_entry_point
def as_requirement(self):
ImportError: Entry point ('console_scripts', 'ipython') not found
The text was updated successfully, but these errors were encountered: