All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Res:  Python / Lua socket programming
       [not found] <445566.78958.qm@web50412.mail.re2.yahoo.com>
@ 2008-08-07 14:15 ` Leonardo Giordano
  0 siblings, 0 replies; only message in thread
From: Leonardo Giordano @ 2008-08-07 14:15 UTC (permalink / raw)
  To: buildroot

Tiago,

Python is working fine on my host machine. I can do the examples at 
Python Docs.
However, when tested on my target machine (using linux built with 
buildroot), I see this:

#python
Could not find platform independent libraries <prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
'import site' failed; use -v for traceback
Python 2.4.2 (#3, Aug  7 2008, 09:10:04)
[GCC 4.2.4] on linux2
Type "help", "copyright", "credits" or "license" for more information.
 >>>

Then I can import some modules, for instance "import math" and works fine.
However, when I do "import socket":

 >>>import socket
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
ImportError: No module named socket

Any comments?

Regards,


Tiago Maluta escribi?:
> Leonardo, 
>
> Did you followed the Python Docs? http://www.python.org/doc/current/lib/socket-example.html
> If you are using an operating system based on GNU/Linux, you could check /usr/lib/python2.5 for socket.py
> Maybe your python installation is missing some modules, try to load other modules (for example: import string, os). 
>
>
> -
> Tiago Maluta
>
> ----- Mensagem original ----
> De: Leonardo Giordano <lgiordano@gmail.com>
> Para: buildroot at uclibc.org
> Enviadas: Quinta-feira, 7 de Agosto de 2008 9:27:14
> Assunto: [Buildroot] Python / Lua socket programming
>
> Hi, I am trying to have an easy programming (or scripting) language. I 
> have both Lua and Python compiled with buildroot. However, I don't know 
> how to enable socket programming. I mean:
> For python, it should have a socket module but it is not. I do "import 
> socket" but is says it is not present. Maybe is a path problem?
> For lua, I should add luasocket library but I don't know how.
>
> Any comments?
>
> Regards,
>
>
> _______________________________________________
> buildroot mailing list
> buildroot at uclibc.org
> http://busybox.net/mailman/listinfo/buildroot
>
>
>
>       Novos endere?os, o Yahoo! que voc? conhece. Crie um email novo com a sua cara @ymail.com ou @rocketmail.com.
> http://br.new.mail.yahoo.com/addresses
>   

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-08-07 14:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <445566.78958.qm@web50412.mail.re2.yahoo.com>
2008-08-07 14:15 ` [Buildroot] Res: Python / Lua socket programming Leonardo Giordano

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.