IOError: [Errno 2] No such file or directory: u'COM11'
See original GitHub issueWhen I clone the repo and run python lglaf.py
, I get the following error:
Traceback (most recent call last):
File "lglaf.py", line 404, in <module>
main()
File "lglaf.py", line 382, in main
comm = autodetect_device()
File "lglaf.py", line 314, in autodetect_device
return FileCommunication(serial_path)
File "lglaf.py", line 187, in __init__
self.f = open(file_path, 'r+b')
IOError: [Errno 2] No such file or directory: u'COM11'
I’m running Python 2.7 on Windows 10 x64, with an LG G5 (H830).
Issue Analytics
- State:
- Created 6 years ago
- Comments:10 (2 by maintainers)
Top Results From Across the Web
open() gives FileNotFoundError/IOError: Errno 2 No such file ...
Make sure the file exists: use os.listdir() to see the list of files in the current working directory; Make sure you're in the...
Read more >[Solved] IOError errno 2 no such file or directory - Python Pool
IOError Errno 2 No Such File Or Directory is thrown when an input-output operation fails because the file is not found in the...
Read more >Python FileNotFoundError: [Errno 2] No such file or directory ...
This error is usually raised when you use the os library. You will see an IOError if you try to read or write...
Read more >Errno 2 No such file or directory - YouTube
PYTHON : Python open() gives FileNotFoundError/ IOError : Errno 2 No such file or directory [ Gift : Animated Search Engine ...
Read more >open file in "w" mode: IOError: [Errno 2] No such file or directory
PYTHON : open file in "w" mode: IOError : [ Errno 2 ] No such file or directory [ Gift : Animated Search...
Read more >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
For me I just changed the
FileCommunication
ctor from:to:
Fixed this on https://github.com/steadfasterX/lglaf/pull/9 Tested on windows 64 and python 3