exaloop / codon

A high-performance, zero-overhead, extensible Python compiler using LLVM
https://docs.exaloop.io/codon
Other
13.96k stars 498 forks source link

from threading import Thread gives Error #430

Open FatemehAhsan opened 11 months ago

FatemehAhsan commented 11 months ago

Hi. I tried to use codon for this code (This is a simple code for faster video processing using Multi-Threading in Python) but it raised the below error:

video_processing_parallel.py:4:23-29: error: cannot import name 'Thread' from 'threading'

Screenshot from 2023-07-24 17-07-46

Using: Ubuntu 22.04 LTS Python 3.10.6

Thanks.

inumanag commented 11 months ago

Unfortunately class Thread is not yet implemented in Codon. You can use @par for now; this should be fixed in subsequent releases.