We use cookies to enhance your browsing experience and help us improve our websites. To improve our website, we carefully select third parties that use cookies to allow us to serve specific content and achieve the purposes set out in our cookie policy. For more information on how to make adjustments through your browser to the cookies being used on your device, please click Find Out More link. By closing this banner or continuing to browse our website, you agree to our use of such cookies. FIND OUT MORE
Hi Cosmin
I just encountered an error message as follows:
……line 245, in FTPopen
SystemError: new style getargs format but argument is not a tuple
# clear __builtin__._
# clear sys.pat……
And this line 245 (and following line 246) are as follows (with some info masked):
res4 = MDM.send(‘AT#FTPOPEN="84.xxx.xx.xx","zcitynetyyyyyy","passw",0r’)
MOD.sleep(20) #Wait 2 sec
Never seen before, although I have used similar pieces of code before.
Regards,
Tom
Use " to escape double quotes, and MDM.send needs two parameters (you’re missing the timeout).
Thanks again Cosmin,
for your quick response.
Sorry, my mistake. I was too quick to copy from elsewhere and missed the timeout parameter here! 🙁
But actually, no need to modify the quotes. This form I have used a long time, and also worked here after inserting the missing timeout parameter.
However, to say the least, the error message is quite confusing…
Is there any place where one could see the error message explanations in complete, tuned for PythonWin?
Cheers, Tom
I think we must rely on Google again …