SOLUTION: Fixing "Save/Load" in Windows 7.

7 views
Skip to first unread message

Parahexen

unread,
Dec 3, 2011, 7:17:00 AM12/3/11
to opennero
People who get "IOError: Errno 22 invalid mode ('a')" when saving or
loading, here's the fixing:

1. Open "OpenNERO-2011.12.02-win32\NERO\module.py"

2. Comment out line 156 and line 173:
#location = os.path.relpath("/") + location
(add the character "#" at the beginning of these two line)

3. So far so good.

Jarek

unread,
Dec 4, 2011, 1:02:04 AM12/4/11
to opennero
Commenting lines does not work since %LocalAppData% is prepended in
line 160 that looks like a call to compiled code.

bill.mybiz

unread,
Dec 5, 2011, 11:45:59 AM12/5/11
to opennero
This gets rid of the error but produces another error and a blank data
file. The path it ends up trying to save to is the local app data path
+ the path from the save dialog. I kluged something that just ignores
the location and saves it where it wants to save it (in the nero app
data folder, "C:\AppData\Local\OpenNERO" on my machine).

If you want this as a temporary fix, just create a new line under the
first location line mentioned above (create a new line 157) and put in
this line with the same indentation: "location =
os.path.basename(location)".

This will save the file using the filename you made, but it will NOT
save it in the folder you specify. It saves it in the nero app data
folder mentioned above. But hey, it at least saves it somewhere! heh

Reply all
Reply to author
Forward
0 new messages