Hi, i would like to know if someone can help to sort out a doubt aboty python, first of all i'm pretty new to python.

Problem description:
the programs i wrote do not run in the same way in console than script, if i type the whole program in the console everything works out pretty cool, but if i write the same exact program in a script file, erros came up.

Some examples:

print control.get_axis()
write direct to console it return values
write in ascript file do not return values

console: succesfully connects to external device
script: cant create sockets

i really have no clue on whats going on, it really will be aprecciated any help, i'm in the middle of a final schools projects and i had no clue on how to solve this issue, thanks.

Give us a short code of what gives you problems, and we could actually help.