On Tuesday, March 5, 2013 3:20:28 AM UTC+8, ian douglas wrote:
> On 03/04/2013 11:06 AM, io wrote:
>
> > esclusioni_file = open('/home/io/btc_trading/exclusions.txt','r')
>
> >
>
> > Windows error :
>
> >
>
> > Traceback (most recent call last):
>
> >File "C:\btc_trading\scripts
>
> > \i
On 2013.03.04 19:58, Steven D'Aprano wrote:
> Windows understands forward slashes in paths too. You can make your code
> (almost) platform-independent, and avoid a lot of problems with unescaped
> backslashes, by always using forward slashes in paths.
Or use os.path.join, the entire purpose of wh
On Mon, 04 Mar 2013 11:20:28 -0800, ian douglas wrote:
> The error tells you everything you need to know: the file system has no
> path/file called "/home/io/btc_trading/markets.csv"
>
> I imagine your CSV file lives in a different location on your Windows 7
> system (which also uses back-slashes
On 3/4/2013 2:20 PM, ian douglas wrote:
I imagine your CSV file lives in a different location on your Windows 7
system (which also uses back-slashes '\' instead of forward-slashes '/',
Forward slashes work fine on Windows except for invoking the executable
at a Command Prompt command line, wh
On Tue, Mar 5, 2013 at 6:59 AM, io wrote:
> Genius!
>
> The code i posted was an example.
> My real code was c:\btc_trading
>
> i was just missing the double slashes!
>
> Thanks , thankyou very much.
>
> :-)
Even on Windows, you can use / as a directory separator. This
generally saves you th
Thanks, btw ...i'm the IT guy!
I was missing the double slash as dougas suggested!++Thanks anyway.
--
http://mail.python.org/mailman/listinfo/python-list
Genius!
The code i posted was an example.
My real code was c:\btc_trading
i was just missing the double slashes!
Thanks , thankyou very much.
:-)
--
http://mail.python.org/mailman/listinfo/python-list
io :
>The following scripts are working fine on linux but, using the same
>version, can't work on windows because i receive the following message:
Thats because there is No such file or directory: '/home/io/btc_trading/
on that Windows PC.
--
Wir danken für die Beachtung aller Sicherheitsbest
Am 04.03.13 20:06, schrieb io:
The following scripts are working fine on linux but, using the same
version, can't work on windows because i receive the following message:
snip
f = open("/home/io/btc_trading/markets.csv","wb")
Windows error :
Traceback (most recent call last):
File "C
On 03/04/2013 11:06 AM, io wrote:
esclusioni_file = open('/home/io/btc_trading/exclusions.txt','r')
Windows error :
Traceback (most recent call last):
File "C:\btc_trading\scripts
\import_json_2_csv_from_web_and_exclusions.py", line 10, in
f = open("/home/io/btc_trading/markets.csv","w
The following scripts are working fine on linux but, using the same
version, can't work on windows because i receive the following message:
Script:
import json
import urllib
import csv
url = "http://bitcoincharts.com/t/markets.json";
response = urllib.urlopen(url);
data = json.loads(response.r
11 matches
Mail list logo