You are not logged in.

#1 2008-11-26 05:48:07

PrimoTurbo
Member
Registered: 2008-06-26
Posts: 109
Website

Catfish - RuntimeError: Bad magic number in .pyc file

I'm using catfish as a search tool, I installed it on a new system with findutils as the backend. When I run it I get "RuntimeError: Bad magic number in .pyc file"

I have no idea how to fix this. It runs fine on another system. I tried to reinstall it and did a full upgrade. I tried it with various backends and I still get this runtimeerror. Any ideas?

Offline

#2 2008-11-26 06:13:40

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,390
Website

Re: Catfish - RuntimeError: Bad magic number in .pyc file

Give us more of the error message.  Specifically, it should say what pyc file is causing the problem.

Offline

#3 2008-11-26 06:23:02

PrimoTurbo
Member
Registered: 2008-06-26
Posts: 109
Website

Re: Catfish - RuntimeError: Bad magic number in .pyc file

That's all it actually says (the whole terminal output, nothing more), are there more specific logs I can check on my system?

Offline

#4 2008-11-26 22:12:51

PrimoTurbo
Member
Registered: 2008-06-26
Posts: 109
Website

Re: Catfish - RuntimeError: Bad magic number in .pyc file

Anyone?

Offline

#5 2008-11-26 22:35:17

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,390
Website

Re: Catfish - RuntimeError: Bad magic number in .pyc file

See if you can locate a leftover .pyc file with:

pacman -Qo $(find /usr/lib/python2.{5,6} -name *.pyc) | grep "No package owns"

Provide pacman manages all files on your root partition, it should be fine to delete what this finds.

Offline

#6 2008-11-26 23:43:52

neotuli
Lazy Developer
From: London, UK
Registered: 2004-07-06
Posts: 1,204
Website

Re: Catfish - RuntimeError: Bad magic number in .pyc file

Yeah, what Allan said, you should be safe to delete the pyc file if there's a py file with the same name sitting right next to it (which there usually is).


The suggestion box only accepts patches.

Offline

#7 2008-11-27 15:27:15

Pavel Jackoff
Member
Registered: 2006-08-05
Posts: 30

Re: Catfish - RuntimeError: Bad magic number in .pyc file

Hi there,
I had the same problem. Just build version 0.3.2 of catfish (you only have to change the version and md5 in the PKGBUILD) and it will work again.

Offline

Board footer

Powered by FluxBB