Hi!
Are there any plans on porting lcm to python3?
I want to use it under blender 2.5 which is running python3 internally.
Or did i miss any compile/configure switch?
regards,
Simon
--
You received this message because you are subscribed to the Google Groups "Lightweight Communications and Marshalling" group.
To post to this group, send email to lcm-...@googlegroups.com.
To unsubscribe from this group, send email to lcm-users+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/lcm-users?hl=en.
For those who need to get lcm running on python3 i did
a port on my own. You can find a diff/patch here:
http://pastebin.com/mhPHCJ3Q
As mentioned in my first post i need to get it running under blender 2.5x
In order to do that you need to compile python 3.2 with wide unicode support
(you need ucs4 support in python3.2 -> ./configure --without-pymalloc --with-
wide-unicode)
In order to build lcm with/for python 3.2:
grab lcm-0.6.0
patch --dry-run -p1 -i lcm_py3.diff
export PYTHON="python3.2"; ./configure
and so on...
For my application it seems to work fine, but no guarantee that
it fails for other applications.
It should be possible to add if/else switches to get it to compile
under python2.
Simon
Here is a patch for running lcm0.7.0 with python3:
http://pastebin.com/Rk9r3qge
maybe it is useful to soemone else ;)
install:
> In order to build lcm with/for python 3.2:
> grab lcm-0.7.0
> patch -p1 -i lcm_py3.diff
> export PYTHON="python3.2"; ./configure
Simon
Thanks for the patch. If you can modify it so that it's backwards
compatible with Python2 (e.g., via the appropriate #if / #else
macros), then that will be easier for me to incorporate into trunk.
Albert
We fixed a small bug in our python3 patch (in the string encode function).
The new patch can be found here:
http://pastebin.com/La71svis
Sorry we did not have time yet to produce a patch that would compile with
py2/py3 using macros etc... This is python3 only.
Regards,
Simon
--
Dipl. Inform. Simon Schulz
ssc...@techfak.uni-bielefeld.de
Exzellenzcluster Cognitive Interaction Technology
Universität Bielefeld
D-33501 Bielefeld
Germany
--
You received this message because you are subscribed to the Google Groups "Lightweight Communications and Marshalling" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lcm-users+...@googlegroups.com.
Visit this group at http://groups.google.com/group/lcm-users.
For more options, visit https://groups.google.com/groups/opt_out.