Skip to content

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

@PAmerikanos

Description

@PAmerikanos

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions