faust icon indicating copy to clipboard operation
faust copied to clipboard

faust2sc.py TemporaryDirectory Error

Open melas0nos opened this issue 3 years ago • 3 comments

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

melas0nos avatar May 22 '22 21:05 melas0nos

@madskjeldgaard or @Rhoumi any idea?

sletz avatar May 23 '22 06:05 sletz

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

smrg-lm avatar May 28 '22 15:05 smrg-lm

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")

umlaeute avatar Jul 22 '22 09:07 umlaeute