# Compiled files .pyc

**URL:** https://discourse.slicer.org/t/compiled-files-pyc/12476
**Category:** Support
**Created:** [July 10, 2020, 9:30am UTC](https://discourse.slicer.org/t/compiled-files-pyc/12476 "2020-07-10T09:30:13Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![ada](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/ada/32/15944_2.png) [@ada](https://discourse.slicer.org/u/ada)
#### Post date: [July 10, 2020, 9:30am UTC](https://discourse.slicer.org/t/compiled-files-pyc/12476/1 "2020-07-10T09:30:13Z")

</div>

Hello all,

With Slicer4.10.2 I was able to launch custom compiled python files (.pyc).  
Nevertheless with the 4.11 version it is no more working (maybe induced by python3).  
I have the following error :

Traceback (most recent call last):  
File “”, line 1, in   
File “XXXX\Python\Lib\imp.py”, line 170, in load\_source  
module = \_exec(spec, sys.modules[name])  
File “”, line 618, in \_exec  
File “”, line 678, in exec\_module  
File “”, line 219, in \_call\_with\_frames\_removed  
File “XXXX”, line XXXX, in   
import XXXX as XXXX  
ImportError: bad magic number in ‘XXXX’: b’B\r\r\n’

Is anyone know how to do ?  
Thank you,  
Best
