darktrojan / openwith

Open With add-on for Firefox
https://addons.mozilla.org/addon/open-with/
412 stars 71 forks source link

Browser Console error messages and what they mean #173

Open darktrojan opened 7 years ago

darktrojan commented 7 years ago

Your Open With options page might give you this message:

Something went wrong. There might be more information in the Browser Console.

If that happens, open the Browser Console by clicking on the menu button, then Web Developer, then Browser Console. Here are the messages you might see there and what they mean.

This extension does not have permission to use native application open_with (or the application is not installed)

or

No such native application open_with

This means you either haven't run the install step (open_with_windows.py install) at all, you've moved the files since installing, or it failed to add itself correctly to the Windows Registry.

There is a slight bug in the installer which might cause the last one in very specific circumstances, in which case get a new version of the .py file from this link and run the install step again.

File at path "…" does not exist, or is not executable

You've moved the files. Run the install step again.

stderr output from native app open_with: C:\Python27\python.exe: can't open file 'C:\Users\IEUser\Downloads\open_with_windows.py': [Errno 2] No such file or directory

Python can't find the file. Unlikely, since if you've got this far, at least two of the files are in the right place. Any message that starts in the same way is output from Python and should hopefully have some useful information.

What you should have if everything is installed correctly:

Windows:

Linux:

Mac:

The same apply if you're using Chrome or Chromium instead of Firefox, except the parts where it says Mozilla, substitute Google/Chrome instead.

krisu5 commented 7 years ago

I get this error message: No such native application open_with NativeMessaging.jsm:100 this.NativeApp</this.startupPromise< resource://gre/modules/NativeMessaging.jsm:100:9

darktrojan commented 7 years ago

That's a variation on the first one, but for Linux (possibly Mac too, not sure). The install step should add a file at ~/.mozilla/native-messaging-hosts/open_with.json.

krisu5 commented 7 years ago

Oh, I forgot to mention that I'm using Windows 10.

darktrojan commented 7 years ago

Huh. I can't make it say that.

darktrojan commented 7 years ago

Oh okay, it's the first one with different words for Firefox 57. I wrote this using Firefox 56.

victor-50 commented 7 years ago

Sorry to say but instructions are not clear. I ended up with:

C:\Users...\AppData\Local\Temp\open_with_windows.py install File "", line 1 C:\Users...\AppData\Local\Temp\open_with_windows.py install ^ SyntaxError: unexpected character after line continuation character

darktrojan commented 6 years ago

Sorry @victor-50, your message got lost in a deluge of email lately. That's a Python error message, but the first line should be in a command prompt, so it looks like you're entering it in the wrong place. The guide I've just posted (#184) should see you right. Also note that you're going to need the file, so having it in the "Temp" folder isn't a good idea.

ghost commented 6 years ago

@darktrojan I am getting the same message as @krisu5 on Windows 10 (FF 59.0.2) except my issue is that the .py file stops being found when I close and restart Firefox. I have to re-install the .py file every time I open Firefox for it to work.

LoneFenris commented 5 years ago

EDIT: Nevermind. I'd created the registry key incorrectly.

EDIT2: Also, it seems the Microsoft Store version of Python is unable to interact with the registry (read or write), despite not throwing any errors when registry operations are attempted. Might be worth noting somewhere.

Having some trouble with the install on Windows. The registry key wasn't being created for whatever reason, though no error was occurring in the script. I created the intended registry entry in RegEdit (ie. HKEY_CURRENT_USER\Mozilla\NativeMessagingHosts\open_with = [path-to-json-file]), but it's still showing the "No such native application" error.

Fresh installation of Windows 10 1903, Firefox 67.0.1, Python 3.7.3 (from Microsoft Store).