Mark Brown <[EMAIL PROTECTED]> writes:

[...]

> On Sun, Apr 20, 2008 at 03:55:46PM +0200, Christian Marillat wrote:
>
>> $ scons
>> Traceback (most recent call last):
>>   File "/usr/bin/scons", line 161, in <module>
>>     import SCons.Script
>>   File "/usr/lib/scons/SCons/Script/__init__.py", line 80, in <module>
>>     import SCons.Options
>> ImportError: Bad magic number in /usr/lib/scons/SCons/Options/__init__.pyc
>
> The Python compiled files are managed by python-central rather than by
> SCons itself.  As far as I can tell something has gone wrong during an
> upgrade leaving incompatible .pyc files lying around though I'm at a bit
> of a loss to explain exactly how.
>
> Purging (probably just removing, even) and reinstalling SCons should
> resolve the problem on your system though it would be helpful if you
> could wait until the python-central maintainers have had a chance to
> request diagnostic information.

Still the same problem after a 'dpkg -P scons' and then 'apt-get install scons' 

dpkg leave some files in /usr/lib/scons If i delete these files
and then reinstall scons, scons start normaly. 

,----
| dpkg -P scons      
| (Reading database ... 157886 files and directories currently installed.)
| Removing scons ...
| dpkg - warning: while removing scons, directory `/usr/lib/scons/SCons' not 
empty so not removed.
| dpkg - warning: while removing scons, directory `/usr/lib/scons' not empty so 
not removed.
`----

,----
| $ ls -l /usr/lib/scons/SCons/Options 
| total 40
| -rw-r--r-- 1 root root 2396 avr  2 11:53 BoolOption.pyc
| -rw-r--r-- 1 root root 3258 avr  2 11:53 EnumOption.pyc
| -rw-r--r-- 1 root root 8536 avr  2 11:53 __init__.pyc
| -rw-r--r-- 1 root root 4184 avr  2 11:53 ListOption.pyc
| -rw-r--r-- 1 root root 2784 avr  2 11:53 PackageOption.pyc
| -rw-r--r-- 1 root root 4869 avr  2 11:53 PathOption.pyc
`----

If i delete these files and then reinstall scons, scons start normaly.

Christian



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to