Coder Social home page Coder Social logo

Comments (8)

Yannakis avatar Yannakis commented on June 14, 2024 2

Yes, that's true, I'm not using python9 because I start python from anaconda3 (jupyter notebook) and there is python8 available.
I actually don't know how to use here python9.
But @dglent (I see, he must also be a Greek, Γειά σου Δημήτρη και ευχαριστώ :-) ) directed me to firefox_decrypt.py version 0.7.0 and this was the right one for python8!

from firefox_decrypt.

pjb1008 avatar pjb1008 commented on June 14, 2024 1

Hi,
It would be more convenient to be able to use the system's own Python. The following patch lets it work on Ubuntu 20, which has Python 3.8.10.

diff --git a/firefox_decrypt.py b/firefox_decrypt.py
index 55f4aac..d06ebc0 100755
--- a/firefox_decrypt.py
+++ b/firefox_decrypt.py
@@ -35,7 +35,7 @@ from itertools import chain
 from subprocess import run, PIPE, DEVNULL
 from urllib.parse import urlparse
 from configparser import ConfigParser
-from typing import Optional, Iterator, Any
+from typing import Optional, Iterator, Any, List, Dict
 
 LOG: logging.Logger
 VERBOSE = False
@@ -43,7 +43,7 @@ SYSTEM = platform.system()
 SYS64 = sys.maxsize > 2**32
 DEFAULT_ENCODING = "utf-8"
 
-PWStore = list[dict[str, str]]
+PWStore = List[Dict[str, str]]
 
 # NOTE: In 1.0.0-rc1 we tried to use locale information to encode/decode
 # content passed to NSS. This was an attempt to address the encoding issues

from firefox_decrypt.

dglent avatar dglent commented on June 14, 2024

Check this issue:
#74

from firefox_decrypt.

unode avatar unode commented on June 14, 2024

@dglent is probably right, you are not using Python 3.9.
See also https://github.com/unode/firefox_decrypt#windows

from firefox_decrypt.

unode avatar unode commented on June 14, 2024

On my system Python 3.8 produces incorrect results even with the above patch.
Please use Python 3.9 or newer.

from firefox_decrypt.

Yannakis avatar Yannakis commented on June 14, 2024

Thanks a lot!
Since I don't use Ubuntu, I'm going to try Python 3.9 on my win10 and see, whether it helps...

from firefox_decrypt.

unode avatar unode commented on June 14, 2024

Anaconda (or miniconda) now ship with Python 3.9 by default.
This can be an option if the system's version is older.

from firefox_decrypt.

Yannakis avatar Yannakis commented on June 14, 2024

OK, @unode!
Thanks for the information!

from firefox_decrypt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.