Problem loading python-mode on emacs 24.3 on OS X

Asked by Acacio Centeno

Hi,

I've compiled emacs 24.3 from source on Mac OS X 10.8, then installed python-mode 6.1.2, then Pymacs 0.25 (all from source). This resulted in the following message:

 Pymacs helper did not start within 30 seconds

The Pymacs README states that:

---
2.1 python-mode.el difficulty

2012-05-07 lun After I recently acquired a new machine and installed a flurry
of software on it, I was saluted with:

pymacs-report-error: Pymacs helper did not start within 30 seconds

The problem turns out to come from python-mode.el (a development copy), which
insists on providing and using its own older copy of Pymacs. The problem shows
in the Pymacs communication buffer: a failed attempt at importing Pymacs/
__init__.py. Indeed, this file does not exist anymore. Pymacs now stands as a
single file on the Python side, not as a module. This yields confusion at run
time. The problem vanishes if I comment out python-mode.el initialization, or
more simply (thanks holmboe) if py-load-pymacs-p is set to nil. I'll talk to
Andreas Röhler about this.
---

However, setting py-load-pymacs-p did not help. I'd like to know how to solve this problem manually or if there's a patch for it.

Thanks.

Question information

Language:
English Edit question
Status:
Answered
For:
python-mode.el Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Andreas Roehler (a-roehler) said :
#1

Am 03.09.2013 23:56, schrieb Acacio Centeno:
> New question #235112 on python-mode.el:
> https://answers.launchpad.net/python-mode/+question/235112
>
> Hi,
>
> I've compiled emacs 24.3 from source on Mac OS X 10.8, then installed python-mode 6.1.2, then Pymacs 0.25 (all from source). This resulted in the following message:
>
> Pymacs helper did not start within 30 seconds
>
> The Pymacs README states that:
>
> ---
> 2.1 python-mode.el difficulty
>
> 2012-05-07 lun After I recently acquired a new machine and installed a flurry
> of software on it, I was saluted with:
>
> pymacs-report-error: Pymacs helper did not start within 30 seconds
>
> The problem turns out to come from python-mode.el (a development copy), which
> insists on providing and using its own older copy of Pymacs. The problem shows
> in the Pymacs communication buffer: a failed attempt at importing Pymacs/
> __init__.py. Indeed, this file does not exist anymore. Pymacs now stands as a
> single file on the Python side, not as a module. This yields confusion at run
> time. The problem vanishes if I comment out python-mode.el initialization, or
> more simply (thanks holmboe) if py-load-pymacs-p is set to nil. I'll talk to
> Andreas Röhler about this.
> ---
>
> However, setting py-load-pymacs-p did not help. I'd like to know how to solve this problem manually or if there's a patch for it.
>
> Thanks.
>

Hi Acacio,

when receiving the message cited above, inlined Pymacs was removed from python-mode.el sources, so this should not be longer a possible cause.

BTW the raised error is a very general one, it might appear for many reasons and just tells, something is broken at Pymacs installation.

Last time I looked into Pymacs would refuse to start when versions of Pymacs-files differ. Which happens, should some file from a prior installation exist in path.

Maybe remove all Pymacs stuff from your machine and re-install. Should the error still appear, there is a Pymacs list <email address hidden> where you should get help.

Best,

Andreas

Can you help with this problem?

Provide an answer of your own, or ask Acacio Centeno for more information if necessary.

To post a message you must log in.