all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Flymake configuration error
@ 2011-10-03 17:41 Vineet Naik
  2011-10-09 16:31 ` Vineet Naik
  0 siblings, 1 reply; 2+ messages in thread
From: Vineet Naik @ 2011-10-03 17:41 UTC (permalink / raw)
  To: help-gnu-emacs

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

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

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Flymake configuration error
  2011-10-03 17:41 Flymake configuration error Vineet Naik
@ 2011-10-09 16:31 ` Vineet Naik
  0 siblings, 0 replies; 2+ messages in thread
From: Vineet Naik @ 2011-10-09 16:31 UTC (permalink / raw)
  To: help-gnu-emacs

[-- 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 --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-10-09 16:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-03 17:41 Flymake configuration error Vineet Naik
2011-10-09 16:31 ` Vineet Naik

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.