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.

Setup code does not work on Python 3.5.3

See original GitHub issue

Launching up the code and it works beautifully on python 2.7.13 but everything I run on 3.5.3 has the same error message even when I only put in the provided setup code. (Yes my lcd i2c address was 0x27)
I run this code

from RPLCD.i2c import CharLCD
lcd = CharLCD(i2c_expander='PCF8574', address=0x27, port=1,
              cols=20, rows=4, dotsize=8,
              charmap='A02',
              auto_linebreaks=True,
              backlight_enabled=True)

and it always gives the error

Traceback (most recent call last):
  File "/home/pi/Screen.py", line 6, in <module>
    backlight_enabled=True)
  File "/home/pi/.local/lib/python3.5/site-packages/RPLCD/i2c.py", line 164, in __init__
    auto_linebreaks=auto_linebreaks)
  File "/home/pi/.local/lib/python3.5/site-packages/RPLCD/lcd.py", line 99, in __init__
    self.command(0x03)
  File "/home/pi/.local/lib/python3.5/site-packages/RPLCD/lcd.py", line 377, in command
    self._send_instruction(value)
  File "/home/pi/.local/lib/python3.5/site-packages/RPLCD/i2c.py", line 237, in _send_instruction
    (value & 0xF0)) | self._backlight)
OSError: [Errno 121] Remote I/O error
>>> 

on python 3.5.3 but it works perfectly fine on python 2.7.13 Not really sure what is going on here. I am running a Pi 3 Model B V1.2 If anything needs clarification drop a comment and if I am posting this in the wrong area tell me where I should be posting it.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
9291Samcommented, Jan 30, 2018

After some more debugging I finally narrowed it down to the code giving an error because there was no lcd connected to the i2c port and it appeared a wire had come loose

0reactions
9291Samcommented, Jan 20, 2018

I Just decided to reinstall the library fro 3.5.3 and it didn’t work I then reinstalled the library on 2.7.13 and rebooted and i works my guess is that the .whl file it installs from using pip was corrupted

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python Release Python 3.5.3
Python 3.5.3 was released on January 17th, 2017. ... They will not work on Intel Itanium Processors (formerly "IA-64").
Read more >
linter not working in python 3.5.3 · Issue #18477
Issue Type: Bug Behaviour /home/user/.vscode-server/extensions/ms-python.python-2022.0.1786462952/pythonFiles/linter.py uses subprocess.run ...
Read more >
pip not working in python 3.5 on Windows 7
10 Answers 10 · Click the search icon and type System Environment · In System Properties click on Environment Variables · In System...
Read more >
2. How to install Python 3.5 - YouTube
If you're learning to code, check out my website ... Your browser can't play this video. ... 97K views 7 years ago Learn...
Read more >
Install Python support - Visual Studio (Windows)
How to install the Python Tools for Visual Studio (PTVS) in Visual ... To fix problems while installing or running Python in Visual...
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