Locust 1.4.X@win32 needs win32api & win32console
See original GitHub issueThis is not an issue per se, but how to take care of one:
If you use [ana]conda and install locust via:
conda create --name locust385 -y python=3.8.5
conda activate locust385
pip install locust
You might get an error like the one below:
File "d:\users\.\anaconda3\envs\locust385\lib\site-packages\locust\input_events.py", line 6, in <module>
from win32api import STD_INPUT_HANDLE
ImportError: DLL load failed while importing win32api: The specified module could not be found.
All you need to do is to copy these 2 DLLs
pythoncom38.dll
pywintypes38.dll
from
D:\Users\.\Anaconda3\envs\locust385\Lib\site-packages\pywin32_system32
to
D:\Users\.\Anaconda3\envs\locust385\Scripts
Alternatively you can do:
pip uninstall pywin32
conda install pywin32
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:6
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Might be it needs to mentioned in FAQ, nothing more then that?
is their any new solution for this error cause am facing it and i tried every single way to fix it but still couldn’t