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.

WindowsError: [Error 126] The specified module could not be found

See original GitHub issue

Expected Behavior

Bot runs

Actual Behavior

Error occurs

Steps to Reproduce

Install from fresh copy of master

  • pip install -r requirements.txt
  • python pokecli.py

Other Information

OS: Windows 10/64bit Git Commit: c81666d751b9ca8cd338760fdf920194fabf4ee4 Python Version: Python 2.7.10

WindowsError: [Error 126] The specified module could not be found 2016-08-06 23:53:03,328 [sentry.errors] [ERROR] Sentry responded with an error: 'ascii' codec can't decode byte 0x9c in position 1: ordinal not in range(128) (url: https://app.getsentry.com/api/90254/ store/) Traceback (most recent call last): File "C:\Python27\lib\site-packages\raven\transport\threaded.py", line 174, in send_sync super(ThreadedHTTPTransport, self).send(data, headers) File "C:\Python27\lib\site-packages\raven\transport\http.py", line 47, in send ca_certs=self.ca_certs, File "C:\Python27\lib\site-packages\raven\utils\http.py", line 66, in urlopen return opener.open(url, data, timeout) File "C:\Python27\lib\site-packages\future\backports\urllib\request.py", line 494, in open response = self._open(req, data) File "C:\Python27\lib\site-packages\future\backports\urllib\request.py", line 512, in _open '_open', req) File "C:\Python27\lib\site-packages\future\backports\urllib\request.py", line 466, in _call_chain result = func(*args) File "C:\Python27\lib\site-packages\raven\utils\http.py", line 46, in https_open return self.do_open(ValidHTTPSConnection, req) File "C:\Python27\lib\site-packages\future\backports\urllib\request.py", line 1284, in do_open h.request(req.get_method(), req.selector, req.data, headers) File "C:\Python27\lib\httplib.py", line 1053, in request self._send_request(method, url, body, headers) File "C:\Python27\lib\httplib.py", line 1093, in _send_request self.endheaders(body) File "C:\Python27\lib\httplib.py", line 1049, in endheaders self._send_output(message_body) File "C:\Python27\lib\httplib.py", line 891, in _send_output msg += message_body UnicodeDecodeError: 'ascii' codec can't decode byte 0x9c in position 1: ordinal not in range(128) 2016-08-06 23:53:03,335 [sentry.errors.uncaught] [ERROR] [u'WindowsError: [Error 126] The specified module could not be found', u' File "pokecli.py", line 493, in <module>', u' File "pokecli.py", li ne 127, in main', u' File "pokecli.py", line 136, in report_summary', u' File "c:\\projects\\python\\PokemonGo-Bot\\pokemongo_bot\\metrics.py", line 76, in capture_stats', u' File "c:\\projects\\py thon\\PokemonGo-Bot\\pokemongo_bot\\api_wrapper.py", line 106, in call', u' File "c:\\projects\\python\\PokemonGo-Bot\\pokemongo_bot\\api_wrapper.py", line 63, in _call', u' File "c:\\projects\\pyth on\\pokemongo-bot\\src\\pgoapi\\pgoapi\\pgoapi.py", line 209, in call', u' File "c:\\projects\\python\\pokemongo-bot\\src\\pgoapi\\pgoapi\\rpc_api.py", line 82, in activate_signature', u' File "C:\\ Python27\\lib\\ctypes\\__init__.py", line 443, in LoadLibrary', u' File "C:\\Python27\\lib\\ctypes\\__init__.py", line 365, in __init__']

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:8

github_iconTop GitHub Comments

1reaction
bnlucascommented, Aug 7, 2016

@islanderman checking health_record to false fixed that issue, now I’m getting

2016-08-07 00:56:35,397 [PokemonGoBot] [INFO]
Traceback (most recent call last):
  File "pokecli.py", line 493, in <module>
    main()
  File "pokecli.py", line 127, in main
    report_summary(bot)
  File "pokecli.py", line 136, in report_summary
    metrics.capture_stats()
  File "c:\projects\python\PokemonGo-Bot\pokemongo_bot\metrics.py", line 76, in capture_stats
    response_dict = request.call()
  File "c:\projects\python\PokemonGo-Bot\pokemongo_bot\api_wrapper.py", line 106, in call
    result = self._call()
  File "c:\projects\python\PokemonGo-Bot\pokemongo_bot\api_wrapper.py", line 63, in _call
    return PGoApiRequest.call(self)
  File "C:\Python27\lib\site-packages\pgoapi\pgoapi.py", line 209, in call
    request.activate_signature(lib_path)
  File "C:\Python27\lib\site-packages\pgoapi\rpc_api.py", line 82, in activate_signature
    ctypes.cdll.LoadLibrary(lib_path)
  File "C:\Python27\lib\ctypes\__init__.py", line 443, in LoadLibrary
    return self._dlltype(name)
  File "C:\Python27\lib\ctypes\__init__.py", line 365, in __init__
    self._handle = _dlopen(self._name, mode)
WindowsError: [Error 126] The specified module could not be found

And yes, I have encrypt.dll

1reaction
islandermancommented, Aug 7, 2016

@WaffleMoose you have two issues; the first one is what you are at here, and the second one has something to do with health_record. Set health_record to false in your config would solve the second issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

WindowsError: [Error 126] The specified module could not be ...
I know this is an old thread, but I found in Python 3.6 that this works. {print("Adding dll path ",combinedPath) os.environ['PATH'] = ';'.join([ ......
Read more >
[WinError 126] The specified module could not be found #13213
From the output you provided, it seems that the problem occurs when you try to import scipy , suggesting that scipy is not...
Read more >
ctypes.CDLL fails with error “[WinError 126] The specified ...
The issue is that we getting the following error: [WinError 126] The specified module could not be found. When we are calling:
Read more >
OSError: [WinError 126] The specified ... - PEAK-System Forum
Re: OSError: [WinError 126] The specified module could not be found. Hello, Is this error reproducable, if the PCANBasic API was installed ...
Read more >
"Error 126: Specified module could not be found" when
I'm getting this error code when I try to fix my printer. It's not printing all of a sudden. Apparently my PrintNotify local...
Read more >

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