grame-cncm / faust

Functional programming language for signal processing and sound synthesis
http://faust.grame.fr
Other
2.58k stars 322 forks source link

faust2sc.py TemporaryDirectory Error #739

Open melas0nos opened 2 years ago

melas0nos commented 2 years ago

Windows 10 21h2 Faust 2.40.0 just compiled from source, no errors

Trying to compile a basic .dsp with faust2sc.py:

$ > faust2sc.py test.dsp -o ./test/
  File "C:\Program Files\Faust\bin\faust2sc.py", line 552, in <module>
    with tempfile.TemporaryDirectory() as tmpdirname:
AttributeError: 'module' object has no attribute 'TemporaryDirectory'

I have tried changing python 2.7 / 3.10

sletz commented 2 years ago

@madskjeldgaard or @Rhoumi any idea?

smrg-lm commented 2 years ago

Maybe tempfile isn't properly installed or is being replaced by other module with the same name.

umlaeute commented 2 years ago

https://docs.python.org/3/library/tempfile.html#tempfile.TemporaryDirectory says:

class tempfile.TemporaryDirectory(suffix=None, prefix=None, dir=None, ignore_cleanup_errors=False) [...] New in version 3.2.

i guess @melas0nos is using Python-2.7 (but i can't really parse "I have tried changing python 2.7 / 3.10")