Python script not working on windows 7 but works fine on linux
Christian Gollwitzer
auriocus at gmx.de
Mon Mar 4 14:20:35 EST 2013
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:\btc_trading\scripts
> \import_json_2_csv_from_web_and_exclusions.py", line 10, in <module>
> f = open("/home/io/btc_trading/markets.csv","wb")
> IOError: [Errno 2] No such file or directory: '/home/io/btc_trading/
> markets.csv'
>>>>
Are you actually reading that error message? You have an absolute path
in script! This /home/io... would something like C:/btc_trading/... on
Windows.
This is not a Python question, it is a Linux/Windows question. Ask your
local IT guy.
Christian
More information about the Python-list
mailing list