Skip to contentSkip to conversation

py-smbus

lm-sensors [email protected] 3 participants 6 messages Jul 8, 2007 – Jul 11, 2007

lore
Share & tools
lore
#0 lore raw

Hi,
trying to install py-smbus but no success. I am sending install log in the attachment. Thanks for your comments and suggestions...
Petr Jakes

my system: AMD Geode GX, Ubuntu 7.04 (Feisty Fawn) installed lm-sensors_2.10.1-2ubuntu2_i386.deb

gcc version as follows:

root@ubuntu:/home/petr# gcc -v
Reading specs from /usr/lib/gcc/i486-linux-gnu/3.4.6/specs
Configured with: ../src/configure -v --enable-languages=c,c++,f77,pascal
--prefix=/usr --libexecdir=/usr/lib --with-gxx-include-dir=/usr/include/c++/3.4
--enable-shared --with-system-zlib --enable-nls --without-included-gettext
--program-suffix=-3.4 --enable-__cxa_atexit --enable-clocale=gnu
--enable-libstdcxx-debug --with-tune=pentium4 i486-linux-gnu
Thread model: posix
gcc version 3.4.6 (Ubuntu 3.4.6-5ubuntu1)

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#1 lore raw

Hi Petr:

Quoted 4 lines · * [email protected] <[email protected]> [2007-07-08 13:38:59 +0200]:

Hi,
trying to install py-smbus but no success. I am sending install log in the attachment. Thanks for your comments and suggestions...
Petr Jakes

Log file says...

Quoted 1 line

smbusmodule.c:19:20: Python.h: No such file or directory

On RedHat/Fedora systems, this is resolved by installing the python-devel package. Whatever is the equivalent for Ubuntu - install it and try again.

Regards,

Signature · 8 lines
Mark M. Hoffman
[email protected]


_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
#2 lore raw
In reply to [email protected]

Mark,
thanks for quick reply, python-dev installed, I thing I am one step closer but I am still getting some Errors. The log is attached.

Regards
Petr

Quoted 8 lines

Hi Petr:

Quoted 2 lines · * [email protected] <[email protected]> [2007-07-08 13:38:59 +0200]:

Hi,
trying to install py-smbus but no success. I am sending install log in

the attachment. Thanks for your comments and suggestions...

Quoted 1 line

Petr Jakes

Quoted 12 lines

Log file says...

Quoted 1 line

smbusmodule.c:19:20: Python.h: No such file or directory

On RedHat/Fedora systems, this is resolved by installing the python-devel package. Whatever is the equivalent for Ubuntu - install
it and try again.

Regards,

Signature · 2 lines
Mark M. Hoffman
[email protected]> 

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#3 lore raw
In reply to [email protected]

Hi Petr:

Quoted 2 lines · * [email protected] <[email protected]> [2007-07-08 17:05:00 +0200]:

thanks for quick reply, python-dev installed, I thing I am one step closer but I am still getting some Errors. The log is attached.

Argh. Just attach logs as plain text please.

Anyway, it also requires some header files which are installed by the lm-sensors package. If you do 'make user && sudo make user_install' from that package, you will get them.

Yes, py-smbus is part of that package, so it should be possible to build it without first building & installing the rest of it. I haven't gotten around to fixing that yet, sorry.

Regards,

Signature · 8 lines
Mark M. Hoffman
[email protected]


_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
#4 lore raw
In reply to [email protected]

Hi Mark,

Quoted 4 lines

Hi Petr:

Quoted 1 line · * [email protected] <[email protected]> [2007-07-08 17:05:00 +0200]:

thanks for quick reply, python-dev installed, I thing I am one step

Quoted 8 lines

closer but I

Quoted 1 line

am still getting some Errors. The log is attached.

Argh. Just attach logs as plain text please.

Anyway, it also requires some header files which are installed by the lm-sensors package. If you do 'make user && sudo make user_install' from that package, you will get them.

I was trying to install lm-sensors from the source but following occured:

root@ubuntu:/usr/local/install/lm_sensors-2.10.3# make user
make: *** No rule to make target `sysfs/libsysfs.h', needed by `lib/sysfs.ad'. 
Stop.
Quoted 13 lines

Yes, py-smbus is part of that package, so it should be possible to build it
without first building & installing the rest of it. I haven't gotten around
to fixing that yet, sorry.

Regards,

Signature · 2 lines
Mark M. Hoffman
[email protected]

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#5 lore raw
In reply to [email protected]

MMH> Hi Petr:

MMH> * [email protected] <[email protected]> [2007-07-08 13:38:59 +0200]:

Quoted 4 lines
Quoted 4 lines

Hi,
trying to install py-smbus but no success. I am sending install log in the attachment. Thanks for your comments and suggestions...
Petr Jakes

MMH> Log file says...

Quoted 1 line
Quoted 1 line

smbusmodule.c:19:20: Python.h: No such file or directory

MMH> On RedHat/Fedora systems, this is resolved by installing the python-devel MMH> package. Whatever is the equivalent for Ubuntu - install it and try again.

Mark,
I am sending this message to provide feedback for other users:

I have successfully installed py-smbus on command line version of Ubuntu 7.04 "Feisty Fawn".

My hardware is AMD Geode GX low power (1.1W) motherboard (equipped by the SMBus connector).

Before to install py-smbus it was (according to your suggestions) necessary:
1) install package python-dev
2) install package libsysfs-dev
3) download lm-sensors and install: 'make user && sudo make user_install'

After that it was possible to installl py-smbus
4) download py-smbus and install

5) my board is equipped by the AMD Geode CS5536 south bridge, so necessary SMBus module is "scx200_acb"
"modprobe scx200_acb" installs this module to the kernel

6) finally: "modprobe i2c-dev" allows to access smbus(0)

many thanks

Regards

Petr Jakes

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors