Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 391403 - app-emacs/python-mode-6.0.3 crashes -- Symbol's value as variable is void: py-python-command
Summary: app-emacs/python-mode-6.0.3 crashes -- Symbol's value as variable is void: py...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Emacs project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-22 16:55 UTC by Markus Walter
Modified: 2011-11-23 17:33 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (info.txt,5.39 KB, text/plain)
2011-11-22 16:55 UTC, Markus Walter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Walter 2011-11-22 16:55:25 UTC
Created attachment 293421 [details]
emerge --info

On my machine I see the following error after upgrading python-mode and subsequently invoking it:

Symbol's value as variable is void: py-python-command

I'm using an ~amd64 system with hardened profile and gcc-4.6.2 (although this should not make that much of a difference). Downgrading to python-mode-5.2.0 makes everything working fine.

I'm using emacs-23.3-r2.
Comment 1 Ulrich Müller gentoo-dev 2011-11-23 13:15:55 UTC
Sorry, but I cannot reproduce this, so could you please provide a recipe how to reproduce the problem, starting with "emacs -q"?

Also, do you have any other Python related Emacs packages installed (like app-emacs/pymacs or dev-python/ipython)? What versions?
Comment 2 Markus Walter 2011-11-23 14:01:54 UTC
This always happens for me when using python-mode. So the recipe is quite short:

$ emacs -q
M-x python-mode

I have dev-python/ipython-0.10.2 installed, but not app-emacs/pymacs.

If I remove ipython the problem vanishes and on first look everything works fine again.
Comment 3 Ulrich Müller gentoo-dev 2011-11-23 14:57:48 UTC
Does the following patch (from upstream) fix the proplem for you?
<http://bazaar.launchpad.net/~python-mode-devs/python-mode/python-mode/revision/627/python-mode.el>
Comment 4 Markus Walter 2011-11-23 16:00:14 UTC
Yes this works.
Comment 5 Ulrich Müller gentoo-dev 2011-11-23 17:33:12 UTC
Fixed in -r1. Thank you for reporting.