OS: Win10 64 bit
PsychoPy version: 2023.2.2
Version: Standard Standalone
What are you trying to achieve?: import bleak module
What did you try to make it work?:
I have bleak module installed in my PyCharm, so I copy from PyCharm Lib folder the bleak folder and then I have copied it in PsychoPy Lib/site-packages/ folder
In “Before experiment” code I wrote the following line:
from bleak import BleakClient
What specifically went wrong when you tried that?:
PsychoPy cannot import the module
I have this error:
from bleak import BleakClient
File "C:\Program Files\PsychoPy\lib\site-packages\bleak\__init__.py", line 37, in <module>
from typing_extensions import Buffer
ImportError: cannot import name 'Buffer' from 'typing_extensions' (C:\Program Files\PsychoPy\lib\site-packages\typing_extensions.py)
################# Experiment ended with exit code 1 [pid:4044] #################
I also tried to install the external module following this PsychpPy guideline but it did not work: https://psychopy.org/recipes/addCustomModules.html
In this case, PsychoPy report that it cannot find the bleak module.