We haven't done much work on the python module for the Windows port
yet. I'll poke around when I have a chance and see if I can get
something to work.
Albert
> --
> 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.
>
Thanks for the report, I'm sure it will be helpful to others. I agree
that a solution using distutils and a setup.py script would be best.
I also looked into this briefly and ran into some of the same issues
you pointed out, but don't think I'll have much time in the next few
weeks to work on it more. Definitely let us know if you make progress
on it.
Cheers,
Albert
> --
> You received this message because you are subscribed to the Google Groups
> "Lightweight Communications and Marshalling" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/lcm-users/-/Gn844k0hyvsJ.
That's great, thanks for sending in the patch! I was able to get it
to compile, but if I try to do "import lcm" after installing, I get an
ImportError. Is this something you encountered?
C:\>Python26\python.exe
Python 2.6.6 (r266:84297, Aug 24 2010, 18:46:32) [MSC v.1500 32 bit (Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import lcm
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python26\lib\site-packages\lcm\__init__.py", line 3, in <module>
import _lcm
ImportError: DLL load failed: The specified module could not be found.
>>>
C:\>dir Python26\Lib\site-packages\lcm\
Volume in drive C is windows
Volume Serial Number is 7FF4-F0D5
Directory of C:\Python26\Lib\site-packages\lcm
02/01/2012 11:55 PM <DIR> .
02/01/2012 11:55 PM <DIR> ..
02/01/2012 11:53 PM 16,384 _lcm.pyd
02/01/2012 11:51 PM 3,664 __init__.py
02/01/2012 11:55 PM 4,708 __init__.pyc
3 File(s) 24,756 bytes
2 Dir(s) 26,555,199,488 bytes free
Albert
> --
> You received this message because you are subscribed to the Google Groups
> "Lightweight Communications and Marshalling" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/lcm-users/-/saUoAJKKpxMJ.
I created a new branch for incorporating this patch.
http://lcm.googlecode.com/svn/branches/py-win
I modified setup.py so that it compiles all of LCM directly into the
.pyd. This removes the need for carrying lcm.dll around.
Also, the following 3 files need to be available somewhere for the
dynamic linker: intl.dll, libglib-2.0-0.dll, and libgthread-2.0-0.dll.
It would be great if there was an easy way to statically link glib in
as well...
If you have a chance, please check out the branch and see if it builds for you.
This is great, I'm looking forward to merging this into trunk and
getting it into the next release.
Albert
> --
> You received this message because you are subscribed to the Google Groups
> "Lightweight Communications and Marshalling" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/lcm-users/-/2tyq59EF-tQJ.