[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'NoneType' object has no attribute 'is_open' #4

Open
AIT-tommy opened this issue Apr 13, 2022 · 3 comments
Open

AttributeError: 'NoneType' object has no attribute 'is_open' #4

AIT-tommy opened this issue Apr 13, 2022 · 3 comments

Comments

@AIT-tommy
Copy link

In SerialCommands.py having an issue with this function:

def get_data(self):
if not self.serial.is_open:
return None
else:
return self.serial.readline().decode('utf-8').split(',')

getting this error:

AttributeError: 'NoneType' object has no attribute 'is_open'

NoneType object I'm believing is self.serial this could be my package but my pyserial is 3.5

@nelsonwenner
Copy link
Owner

@AIT-tommy Ok friend, thanks for the report, soon I will release a correction.

@RafigRzayev
Copy link

Same issue here.

@nelsonwenner
Copy link
Owner

@RafigRzayev I will fix this today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants