darktrojan / openwith

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

Issue with helper script installation #337

Open Mark-Eng opened 2 years ago

Mark-Eng commented 2 years ago

I just got a new device running Windows 11. I installed Python 3.10, installed the latest version of Open With in Firefox, and downloaded the open_with_windows script.

When I try to run the script from the command prompt, nothing happens. I can see another console window open for a split second, then it disappears. If I click "test installation, I get the" Something went wrong" message.

I've installed the helper successfully on several other machines, and I've tested other Python scripts on my current machine—they all work fine.

Any suggestions?

rodhfr commented 2 years ago

The same thing happened with me. Last version on firefox. Ran the helper script and it creates five json files... "open with chrome, chromium, firefox, thunderbird and open with bat" but when i click test installation, "Something went wrong" message appears. Tested with powershell, cmd both with administrative rights and nothing. Tried to use the path with "" and with python3 command no difference at all. if i ran --verbose flag it tells me to use install option but i am already using it.

Silent-Soldier commented 1 year ago

The installation instructions need revised, as open_with_windows.py install is technically wrong in the sense Python can't detect the command as being applicable to a script. To fix, you need to append ./ to the install command, which results in ./open_with_windows.py install, which should work correctly.

Mark-Eng commented 1 year ago

Thanks @Silent-Soldier, but here's what I get when I try that. Maybe I misunderstood what you were suggesting? image

Silent-Soldier commented 1 year ago

Have you updated Pythons built-in utilities (pip, setuptools, wheel, etc.), as well as ensured Python is in PATH, including USERPATH (i.e. %USERPROFILE%\AppData\Roaming\Python\Python3xx\ and %USERPROFILE%\AppData\Roaming\Python\Python3xx\Scripts)? Python defaults to USERPATH since 3.8? unless running the shell with Admin privileges.

Also, are you using Command Prompt or Powershell? They each require a different syntax. The one I provided was tested/successful using Powershell (Core 7.2 to be exact).

3flowin commented 1 year ago

Have you updated Pythons built-in utilities (pip, setuptools, wheel, etc.), as well as ensured Python is in PATH, including USERPATH (i.e. %USERPROFILE%\AppData\Roaming\Python\Python3xx\ and %USERPROFILE%\AppData\Roaming\Python\Python3xx\Scripts)? Python defaults to USERPATH since 3.8? unless running the shell with Admin privileges.

Also, are you using Command Prompt or Powershell? They each require a different syntax. The one I provided was tested/successful using Powershell (Core 7.2 to be exact).

i already did all of these and i still cant fucking install it 0/10 addon, too fucking hard to install