linux-i2c.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Fwd: Py-smbus for Python 3
       [not found] ` <1421658501.2937.2-YAXBhf1W29QAs8EywTwl9A@public.gmane.org>
@ 2015-01-19  9:12   ` Michael Mercier
       [not found]     ` <1879153388.1899869.1421658735412.JavaMail.zimbra-MZpvjPyXg2s@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Michael Mercier @ 2015-01-19  9:12 UTC (permalink / raw)
  To: linux-i2c-u79uwXL29TY76Z2rM5mHXA

Hi,

I am working on a project that use the py-smbus module. The problem is 
I am using python 3.x and the py-smbus library is not compatible with 
this version.

I found a lot of hack to do so, like:
http://www.raspberrypi.org/forums/viewtopic.php?f=32&t=22348
http://procrastinative.ninja/2014/07/21/smbus-for-python34-on-raspberry/
http://comments.gmane.org/gmane.linux.drivers.i2c/11290
http://www.spinics.net/lists/linux-i2c/msg08427.html

I eventually manage to make it work but this code only working with 
python 3.

I like distribute it but I do not know where. Is there someone that can 
merge this upstream properly (with python2 compatibility)?

I can also put it on github to make it available so any interested people could improve it?

What do you think?

Thanks,

Michael Mercier

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Fwd: Py-smbus for Python 3
       [not found]     ` <1879153388.1899869.1421658735412.JavaMail.zimbra-MZpvjPyXg2s@public.gmane.org>
@ 2015-01-19  9:24       ` Wolfram Sang
  2015-01-19 12:24         ` Jean Delvare
  0 siblings, 1 reply; 3+ messages in thread
From: Wolfram Sang @ 2015-01-19  9:24 UTC (permalink / raw)
  To: Michael Mercier, Jean Delvare; +Cc: linux-i2c-u79uwXL29TY76Z2rM5mHXA

[-- Attachment #1: Type: text/plain, Size: 972 bytes --]

On Mon, Jan 19, 2015 at 10:12:15AM +0100, Michael Mercier wrote:
> Hi,
> 
> I am working on a project that use the py-smbus module. The problem is 
> I am using python 3.x and the py-smbus library is not compatible with 
> this version.
> 
> I found a lot of hack to do so, like:
> http://www.raspberrypi.org/forums/viewtopic.php?f=32&t=22348
> http://procrastinative.ninja/2014/07/21/smbus-for-python34-on-raspberry/
> http://comments.gmane.org/gmane.linux.drivers.i2c/11290
> http://www.spinics.net/lists/linux-i2c/msg08427.html
> 
> I eventually manage to make it work but this code only working with 
> python 3.
> 
> I like distribute it but I do not know where. Is there someone that can 
> merge this upstream properly (with python2 compatibility)?
> 
> I can also put it on github to make it available so any interested people could improve it?
> 
> What do you think?

Adding Jean to the list, he is the current maintainer of i2c-tools.


[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Py-smbus for Python 3
  2015-01-19  9:24       ` Wolfram Sang
@ 2015-01-19 12:24         ` Jean Delvare
  0 siblings, 0 replies; 3+ messages in thread
From: Jean Delvare @ 2015-01-19 12:24 UTC (permalink / raw)
  To: Wolfram Sang; +Cc: Michael Mercier, linux-i2c-u79uwXL29TY76Z2rM5mHXA

Hi all,

On Mon, 19 Jan 2015 10:24:20 +0100, Wolfram Sang wrote:
> On Mon, Jan 19, 2015 at 10:12:15AM +0100, Michael Mercier wrote:
> > Hi,
> > 
> > I am working on a project that use the py-smbus module. The problem is 
> > I am using python 3.x and the py-smbus library is not compatible with 
> > this version.
> > 
> > I found a lot of hack to do so, like:
> > http://www.raspberrypi.org/forums/viewtopic.php?f=32&t=22348
> > http://procrastinative.ninja/2014/07/21/smbus-for-python34-on-raspberry/
> > http://comments.gmane.org/gmane.linux.drivers.i2c/11290
> > http://www.spinics.net/lists/linux-i2c/msg08427.html
> > 
> > I eventually manage to make it work but this code only working with 
> > python 3.
> > 
> > I like distribute it but I do not know where. Is there someone that can 
> > merge this upstream properly (with python2 compatibility)?
> > 
> > I can also put it on github to make it available so any interested people could improve it?
> > 
> > What do you think?
> 
> Adding Jean to the list, he is the current maintainer of i2c-tools.

Indeed there have been many people doing the same, unfortunately nobody
ever posted a patch which would preserve compatibility with python 2. I
don't know a thing about python but I can't imagine that this is not
possible.

Unfortunately, as long as nobody contributes a patch which makes
py-smbus work for both python version 2 and version 3, I can't apply
it. I don't think it makes sense to break compatibility with one
version to make the other one work.

-- 
Jean Delvare
SUSE L3 Support

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-01-19 12:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1421658501.2937.2@smtp.inria.fr>
     [not found] ` <1421658501.2937.2-YAXBhf1W29QAs8EywTwl9A@public.gmane.org>
2015-01-19  9:12   ` Fwd: Py-smbus for Python 3 Michael Mercier
     [not found]     ` <1879153388.1899869.1421658735412.JavaMail.zimbra-MZpvjPyXg2s@public.gmane.org>
2015-01-19  9:24       ` Wolfram Sang
2015-01-19 12:24         ` Jean Delvare

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).