question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Locust 1.4.X@win32 needs win32api & win32console

See original GitHub issue

This 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:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:6

github_iconTop GitHub Comments

1reaction
ecc256commented, Dec 4, 2020

Might be it needs to mentioned in FAQ, nothing more then that?

0reactions
moaztareqcommented, Oct 18, 2022

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found