Closed budryerson closed 3 years ago
Hello Bud. smbus2 is a library with Linux as its primary target OS. It uses Linux kernel structs and calls, so a Windows port is not straight-forward. I don't have much experience with i2c on Windows, I'm afraid. Sorry.
Thank you. I don't like the answer, but I appreciate your thoughtful reply. Bud Ryerson San Francisco
I am writing a module for a Lidar device that uses the I2C interface. I wrote my module importing the 'smbus' module. But when I created a distributable package that included the 'smbus' module as a requirement, it failed to install 'smbus' with about twenty lines of serious looking red text that began:
ERROR: Command errored out with exit status 1:
etc.Intimidated by this message, I rewrote my module to use 'smbus2' instead. 'smbus2' installed without error, but when I tried to import 'smbus2' (or 'SMBus' from 'smbus2'), I got this:
It seems that 'smbus2' cannot find 'fcntl' or maybe 'ioctl'. Now it seems that I can't use 'smbus' and I can't use 'smbus2' either. This is very frustrating. Any advice would be appreciated.
Bud Ryerson San Francisco