Ice icon indicating copy to clipboard operation
Ice copied to clipboard

Error: NoneType object has no attribute exe

Open Naetalis opened this issue 9 years ago • 22 comments

ICE was working fine in Steam with ZSNES for awhile. Today I tried adding Nestopia into the emulators & consoles text files and when running ICE it says it detects both ZSNES & Nestopia, but afterwards gives the above error in the subject line. Any idea what's going on?

Naetalis avatar Feb 04 '17 01:02 Naetalis

I've gotten this same error starting about 2 days ago. I was using Retroarch for Nintendo 64 and was having a blast playing N64 games through Steam. Then 2 days ago, I tried adding Dolphin for Wii games and was running into this error. I got rid of Dolphin and re-installed all emulators and ice and fresh installed them and still got this error using the same settings I had before. I am still able to play my old games I had added before, but I can't add new ones or consoles. Checking the log shows the error as this:

An Error has occurred: 'NoneType' object has no attribute 'exe' Traceback (most recent call last): File "", line 45, in File "", line 31, in main File "c:\Users\Scott.Scott-PC\Development\Projects\Ice\build\ice\out00-PYZ.pyz\ice.rom_manager", line 40, in init File "c:\Users\Scott.Scott-PC\Development\Projects\Ice\build\ice\out00-PYZ.pyz\ice.rom_manager", line 52, in is_managed_by_ice AttributeError: 'NoneType' object has no attribute 'exe'

KcKuun avatar Feb 05 '17 21:02 KcKuun

Yep same, I can't add any new ROMs, but I still see my old ones.

Naetalis avatar Feb 05 '17 21:02 Naetalis

I'm having the same issue. Same exact error as KcKuun

edit: I fixed this by deleting my shortcuts.vdf located in Steam\userdata\ (your account)\config and running Ice again.

legendury avatar Feb 06 '17 00:02 legendury

This worked for me as well. Thanks!

Naetalis avatar Feb 09 '17 02:02 Naetalis

Nice! That worked for me too! You are awesome!

KcKuun avatar Feb 09 '17 03:02 KcKuun

same here!

efinatto avatar Feb 14 '17 21:02 efinatto

+1, clean install, after the second scan I got the same error but the quick fix worked.

uyuarasy avatar Mar 16 '17 22:03 uyuarasy

This issue is caused by Steam changing the file format. Pysteam (the library ICE uses to read/write the shortcuts file) doesn't understand how to parse the new format. There's a bug logged against Pysteam about it. Blowing away the file allows ICE to write using the old format, and Steam will still happily read the old format. The only caveat is that if Steam writes to the file, it'll update the format and you'll be unable to use ICE again without blowing away the file.

Spiridios avatar Mar 18 '17 04:03 Spiridios

waiting for a solution

DocMAX avatar Mar 20 '17 16:03 DocMAX

For those that missed, @legendury posted the solution. Deleting the file, while nor steam or are ice running solves the issue. Re-run ice again after deleting the file and the error should go away

MarcelloLins avatar Mar 27 '17 05:03 MarcelloLins

If you want to get it going again try building from source with: pysteam: https://github.com/scottrice/pysteam/pull/14 ice: https://github.com/scottrice/Ice/pull/456

lachlankrautz avatar Mar 27 '17 06:03 lachlankrautz

I attempted to build lachlankrautz's commit into a binary and it seems to work (for me). First time doing this so my apologies if it doesn't work! It's also like twice the size of the official binaries, so I guess the method I used includes extra stuff or something.

One thing to note, I needed to remove %l from the commands in emulators.txt. Not sure if this is an error on my part or a consequence of the new shortcuts.vdf format.

Anyhow you're probably better off running it from source, but for those who can't this should work (I think).

Ice.zip

dijidiji avatar Mar 31 '17 00:03 dijidiji

Yeah so I changed the commands field to map to the launch options field in the steam shortcut so there is no longer a need for the exe "%i" in that field.

This was because the shortcuts I made with params in the exe field didn't seem to work. I figured steam now wants exe in their "exe" field and params in their "launch options" field.

lachlankrautz avatar Mar 31 '17 00:03 lachlankrautz

When trying to build @lachlankrautz 's branch myself with pyinstaller, I get <error.log gist> when I try to run it.

When I try to run @dijicaek 's executable, I get .

Does anyone know what's wrong?

UndarkAido avatar Jun 29 '17 03:06 UndarkAido

I see that the problem comes when ICE try to read the shortcuts array generated by pysteam shortcuts.get_shortcuts(user) , the last position is of type "None" and this break all the process, a fast workarround is filtering the shortcuts array, like this:

backups.py - Line 66

shortcuts_list = shortcuts.get_shortcuts(user)
shortcuts.write_shortcuts(backup_path, [x for x in shortcuts_list if x is not None])

steam_shortcut_synchronizer.py - Line 76

current_shortcuts = shortcuts.get_shortcuts(user)
current_shortcuts = [x for x in current_shortcuts if x is not None]

I don't know if this is a bad solution but works for me

PD: sorry for my english

davasqueza avatar Aug 07 '17 04:08 davasqueza

I downloaded ICE and got also this error. Then I deleted the shortcut.vcf file.

After that there was no error. But.. Steam did not show any shortcuts. Have the latest version of Steam.

So asking me, I think that ICE does not write the correct shortcut format any more. Steam changed the format (?) and ICE is not updated to this format.

Leaves me 1 question: how can I create a rom shortcut myself in steam?

edit: got it: RetroArch -L "C:\RetroArch\cores(core).dll" (rom path)

Harribo19 avatar Sep 25 '17 09:09 Harribo19

Deleting shortcut.vcf actually delete all your existing steam shortcuts

kwokhou avatar Oct 04 '17 01:10 kwokhou

has there been any update on this? is there a way to fix it without blowing away all existing shortcuts?

canichols2 avatar Mar 16 '18 02:03 canichols2

Nope, nothing. I would recommend Steam ROM Manager as an alternative.

On Thu, Mar 15, 2018, 9:48 PM Cody Nichols [email protected] wrote:

has there been any update on this? is there a way to fix it without blowing away all existing shortcuts?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/scottrice/Ice/issues/449#issuecomment-373587158, or mute the thread https://github.com/notifications/unsubscribe-auth/AHE_Yhnz4NirP7ub_hiNXan7hG5cu_J6ks5teyfjgaJpZM4L2-2x .

UndarkAido avatar Mar 16 '18 13:03 UndarkAido

Is there someone who can recompile the ice.exe that dijicaek made above with the fixes that davasqueza found? I'd really appreciate it. I have it all working fine now except for having to delete shortcuts.vdf every time i want to import new ROMS.

Teutonic84 avatar Jan 03 '19 04:01 Teutonic84

Honestly just use Steam Room Manager. Works great and it's active

On Wed, Jan 2, 2019, 11:54 PM Teutonic84 <[email protected] wrote:

Is there someone who can recompile the ice.exe that dijicaek made above with the fixes that davasqueza found? I'd really appreciate it. I have it all working fine now except for having to delete shortcuts.vdf every time i want to import new ROMS.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/scottrice/Ice/issues/449#issuecomment-451055879, or mute the thread https://github.com/notifications/unsubscribe-auth/AM4vyBrZvMj49RkaJU5E6V4mo4qfWSa7ks5u_Yz_gaJpZM4L2-2x .

legendury avatar Jan 03 '19 13:01 legendury

I would use Steam Rom Manager if they added commandline support like ICE has, but they aren't going to be adding that anytime soon. I have ICE setup where i can just click on a link to a single batch file and it will auto-configure ICE, import the ROMS to steam and then open steam. i get that you can add everything from steam rom manager, but it's not as automated as i would like it to be.

Teutonic84 avatar Jan 03 '19 18:01 Teutonic84