The COM4 issue and this part will go better.Ĭameron Simpson I see what you mean. Thinking there may have been some trailing whitespace on the preceedingīecause of the exception earlier, the name “ser” has not been bound. … todays_data = ticker.history(period=‘1d’) Should it be spelt ‘COM4’ ? (My windows-fu is weak.)Īs a result, the name “ser” does not get bound (because of the This suggests that the name of your serial device is incorrect, askĭominik suggested. : could not open port 'COM4': FileNotFoundError(2, 'The system cannot find the file specified.', None, 2) Raise SerialException("could not open port ".format(self.portstr, ctypes.WinError())) Super(Serial, self)._init_(*args, **kwargs)įile "C:\Users\nickm\AppData\Local\Programs\Python\Python39\lib\site-packages\serial\serialutil.py", line 244, in _init_įile "C:\Users\nickm\AppData\Local\Programs\Python\Python39\lib\site-packages\serial\serialwin32.py", line 64, in open Type "help", "copyright", "credits" or "license" for more information.įile "C:\Users\nickm\AppData\Local\Programs\Python\Python39\lib\site-packages\serial\serialwin32.py", line 33, in _init_ Here is what returns when I try to run it.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |