On 12/23/2014 10:56 AM, Marius Liebenberg wrote: > I am running a python script in the user mode that is supposed to > communicate to a client with a very simple udp protocol > When I run the script in a shell it works fine but when I load it as a > user component in lcnc I get this error. I have the feeling it has to do > with the fact that it is not run by python but by lcnc's own python > interpreter but I am not sure.
User components run with the standard system-wide python interpreter, nothing special there. > Traceback (most recent call last): > File "/home/marius/bin/udps", line 88, in <module> > sock.sendto(data + "\n", (HOST, PORT)) > TypeError: an integer is required Sounds like PORT maybe is a string, from sys.argv maybe, when it should be an int? You can check this by using "print type(PORT)". If that's the case, try (HOST, int(PORT)) instead to force coercion of PORT to int. -- Sebastian Kuzminsky ------------------------------------------------------------------------------ Dive into the World of Parallel Programming! The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net _______________________________________________ Emc-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-developers
