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

FileNotFoundError: self._i2c = smbus.SMBus(1) #9

Open
PAmerikanos opened this issue Sep 30, 2021 · 0 comments
Open

FileNotFoundError: self._i2c = smbus.SMBus(1) #9

PAmerikanos opened this issue Sep 30, 2021 · 0 comments

Comments

@PAmerikanos
Copy link

Thought I'd share this error I got on my RPi 3B 1.2:

>>> from mcp9600 import MCP9600
>>> mcp9600 = MCP9600(i2c_addr=0x66)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.7/dist-packages/mcp9600-0.0.4-py3.7.egg/mcp9600/__init__.py", line 169, in __init__
  File "/usr/local/lib/python3.7/dist-packages/i2cdevice-0.0.7-py3.7.egg/i2cdevice/__init__.py", line 166, in __init__
    self._i2c = smbus.SMBus(1)
FileNotFoundError: [Errno 2] No such file or directory

If you get this error, please check that in RPi > Preferences > RPi Configuration > Interfaces > I2C is Enabled.

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

1 participant