Path: csiph.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: Dominique Newsgroups: fr.comp.lang.python Subject: Re: Beep avec Python Date: Wed, 10 Jun 2026 10:09:58 +0200 Organization: A noiseless patient Spider Lines: 58 Message-ID: <110b64n$jkl9$1@dont-email.me> References: <110as0f$gvi4$1@dont-email.me> <110b0gj$i5hq$1@dont-email.me> Reply-To: dominique.sextant@orange.fr.invalid MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Wed, 10 Jun 2026 08:09:59 +0000 (UTC) Injection-Info: dont-email.me; logging-data="643753"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX197cu/FByUjTqT8b4C3WIoUCb+xk1z/Pf8="; posting-host="94c4298b939957e323d69afbb6044afe" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:v4wUOOTJ2FSnDIveXpSfHS1wHCs= sha256:P590io9KRL6xn4lGoaFilEeeDopCli8LrZSHF2GHhNQ= sha1:R0gTw8jI6+JgqBJpKU/i8p1nfq8= In-Reply-To: <110b0gj$i5hq$1@dont-email.me> Content-Language: fr Xref: csiph.com fr.comp.lang.python:4336 Le 10/06/2026 à 08:33, Thierry Pinelluciu a écrit : > hello, > > t'as essayé https://pypi.org/search/?q=sound Il y a effectivement plein de choses, et je te remercie pour le conseil. Malheureusement, le premier paquage sound qui me suffirait génère une erreur au lancement : import sound --------------------------------------------------------------------------- ImportError Traceback (most recent call last) Cell In[11], line 1 ----> 1 import sound File ~/anaconda3/lib/python3.13/site-packages/sound/__init__.py:1 ----> 1 from .darrsnd import * 2 from .ramsnd import * 3 from .audiofile import * File ~/anaconda3/lib/python3.13/site-packages/sound/darrsnd.py:6 1 from contextlib import contextmanager 3 from darr import asarray, create_array, Array, \ 4 delete_array ----> 6 from .ramsnd import BaseSnd 8 __all__ = ['asdarrsnd', 'create_darrsnd', 'delete_darrsnd', 'DarrSnd'] 10 # scalingfactor 11 # append? File ~/anaconda3/lib/python3.13/site-packages/sound/ramsnd.py:4 1 from contextlib import contextmanager 2 import numpy as np ----> 4 from .utils import duration_string, check_episode, iter_timewindowindices 6 __all__ = ['RamSnd'] 9 # FIXME all output becomes a generator? File ~/anaconda3/lib/python3.13/site-packages/sound/utils.py:51 49 import numpy as np 50 from numbers import Number ---> 51 from collections import Set, Mapping, deque 53 def isgenerator(iterable): 54 return hasattr(iterable, '__iter__') and not hasattr(iterable, '__len__') ImportError: cannot import name 'Set' from 'collections' (/home/administrateur/anaconda3/lib/python3.13/collections/__init__.py) Est-ce que ça peut venir de l'installation avec pip alors que Spyder dépend d'Anaconda ? J'ajoute un échec avec conda install sound Bref, j'en suis un peu à la case départ 😊 -- Dominique Esto quod es