Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > fr.comp.lang.python > #4336
| From | Dominique <dominique.sextant@orange.fr.invalid> |
|---|---|
| Newsgroups | fr.comp.lang.python |
| Subject | Re: Beep avec Python |
| Date | 2026-06-10 10:09 +0200 |
| Organization | A noiseless patient Spider |
| Message-ID | <110b64n$jkl9$1@dont-email.me> (permalink) |
| References | <110as0f$gvi4$1@dont-email.me> <110b0gj$i5hq$1@dont-email.me> |
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
Back to fr.comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
Beep avec Python Dominique <dominique.sextant@orange.fr.invalid> - 2026-06-10 07:17 +0200
Re: Beep avec Python Thierry Pinelluciu <olmia2b+september@gmail.com> - 2026-06-10 08:33 +0200
Re: Beep avec Python Thierry Pinelluciu <olmia2b+september@gmail.com> - 2026-06-10 08:34 +0200
Re: Beep avec Python Dominique <dominique.sextant@orange.fr.invalid> - 2026-06-10 10:17 +0200
Re: Beep avec Python Dominique <dominique.sextant@orange.fr.invalid> - 2026-06-10 10:09 +0200
csiph-web