how do i fix this invalid arguement error

Cameron Simpson cs at zip.com.au
Sat Nov 26 21:24:26 EST 2016


On 26Nov2016 12:55, Dennis Lee Bieber <wlfraed at ix.netcom.com> wrote:
>On Sat, 26 Nov 2016 08:12:46 -0800 (PST), junkone1 at gmail.com declaimed the
>following:
>>    with open('\\192.168.0.1\fe18cb0618cabd41\ninjatrader$EURUSDTestRun 2016-11-25-11-11.csv','r') as f:
[...]
>	Second... does Python open() accept web addresses? What is at
>192.168.0.1 that you don't have some more sensible path to it? 192.168.0.1
>is a private local network address. You are on a Windows machine so if the
>file is available on a local network node you can probably mount that node
>(Computer/Map Network Drive) and access the file as something like
>Z:/ninjatrader...

I thought //192.168.0.1/foo/... was a network share, getting "foo" from host 
192.168.0.1. Disclaimer: not a Windows guy. But I've certainly using UNIXy 
systems implementing this syntax, and thought I'd seen an equivalent in Windows 
land. So not HTTP, SMB. Confirmation or refutation from anyone?

Cheers,
Cameron Simpson <cs at zip.com.au>



More information about the Python-list mailing list