unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Vineet Naik <naikvin@gmail.com>
To: help-gnu-emacs <help-gnu-emacs@gnu.org>
Subject: Re: Flymake configuration error
Date: Sun, 9 Oct 2011 22:01:35 +0530	[thread overview]
Message-ID: <CADmbCiO4n79f77yKnqnkYspytwt7EGqwYqJZcOK5fTQwHWqovA@mail.gmail.com> (raw)
In-Reply-To: <CADmbCiN8WcrEmXB3w2_Y+QxBCJFkxngz_TWr+_QEkD3Lc-xbjQ@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1835 bytes --]

Sorry, this was not an emacs issue. This was actually due to my own mistake.
I had installed pyflakes twice when I was trying to get it to work
initially. After upgrading ubuntu and thus python to 2.7, it was somehow
taking the old installation path.

I could fix this by first removing pyflakes using apt-get --purge remove,
then manually removing pyflakes from /usr/local/bin/ dir and again
installing using apt-get.

Sorry for the trouble.

On Mon, Oct 3, 2011 at 11:11 PM, Vineet Naik <naikvin@gmail.com> wrote:

> Hello,
>
> I had been using Pyflakes in emacs23. But after upgrading from ubuntu 10.10
> to 11.04, it has stopped working and whenever flymake-mode is enabled, it
> shows the following error -
>
> Error (flymake): Flymake: Configuration error has occurred while running
> (pyflakes cond_loops_flymake.py). Flymake will be switched OFF
>
> I know the error message doesn't look quite useful and I don't know where
> to look for pointers.
>
> Also I have noticed that after upgrade, the python version has changed as
> well from 2.6.6 to 2.7.1+ . Can this be the reason ?
>
> I even tried installing pyflakes again but it still fails.
>
> Following is the configuration in my .emacs file -
>
> (when (load "flymake" t)
>   (defun flymake-pyflakes-init ()
>     (let* ((temp-file (flymake-init-create-temp-buffer-copy
>                        'flymake-create-temp-inplace))
>            (local-file (file-relative-name
>                         temp-file
>                         (file-name-directory buffer-file-name))))
>       (list "pyflakes" (list local-file))))
>
>   (add-to-list 'flymake-allowed-file-name-masks
>                '("\\.py\\'" flymake-pyflakes-init)))
>
> ;; (add-hook 'find-file-hook 'flymake-find-file-hook)
>
> Any help is appreciated.
>
> Thanks
>
> --
> Vineet Naik
>
>
>


-- 
Vineet Naik

[-- Attachment #2: Type: text/html, Size: 2640 bytes --]

      reply	other threads:[~2011-10-09 16:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-03 17:41 Flymake configuration error Vineet Naik
2011-10-09 16:31 ` Vineet Naik [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CADmbCiO4n79f77yKnqnkYspytwt7EGqwYqJZcOK5fTQwHWqovA@mail.gmail.com \
    --to=naikvin@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).