Coder Social home page Coder Social logo

error... about firefox_decrypt HOT 13 CLOSED

unode avatar unode commented on May 22, 2024
error...

from firefox_decrypt.

Comments (13)

unode avatar unode commented on May 22, 2024 1

I've managed to reproduce the problem.
I'll hopefully have a fix in a few hours.

from firefox_decrypt.

unode avatar unode commented on May 22, 2024 1

Sorry that was a mistake on my part. Can you try the latest commit?

from firefox_decrypt.

olejaZverev avatar olejaZverev commented on May 22, 2024

the username is a Russian letter. I think the error hidden in this

from firefox_decrypt.

unode avatar unode commented on May 22, 2024

I can't seem to reproduce this issue on my system.

The problem is clearly encoding related and as you pointed out most likely due to the Russian characters on your username.

from firefox_decrypt.

olejaZverev avatar olejaZverev commented on May 22, 2024

I'm a C ++ programmer myself and I can not fix the problem in the python.

I could check your builds until we solve the encoding problem together. if you are interested in this.

from firefox_decrypt.

unode avatar unode commented on May 22, 2024

I didn't have time too look further into this.

Reproducing this problem requires both a non-ASCII character/encoding as well as Windows neither of which I have readily at hand.

There are ongoing efforts to make tests run on AppVeyor in the appveyor branch but this is very much work in progress.

On the other hand, since it's unclear how easy it will be to run the current Bash based tests on AppVeyor, there's also some efforts both on #25 and the pytests branch to make testing more robust and convert the current testing framework to Python.

All of this will take time and any help is most appreciated. Feel free to fork and submit pull requests.

from firefox_decrypt.

unode avatar unode commented on May 22, 2024

As for the actual NSS interaction problem, it seems Windows does not use UTF-8 as default character encoding for library interaction. From different sources I found references to different ANSI codepages and UTF-16. This will require further testing.

If you can, try changing the encoding used by the bytestring that gets passed to NSS_Init and see if you get it to work on your system.

from firefox_decrypt.

olejaZverev avatar olejaZverev commented on May 22, 2024

I try you last build with Python 3.6.5(on this PC too), its all right and great well.
But...need 2.7 Python for nuitka and cython.

from firefox_decrypt.

unode avatar unode commented on May 22, 2024

Not as easy as I though, and in fact with Python 2.7 I couldn't find a compatible solution. With Python 3 it worked fine.
The problem has to do with the encoding used by cmd.exe.
The only alternative is to set your terminal to be UTF8 compatible but this has it's own problems.

So on this note and given 2.7 end of life is approaching, I'm currently dropping support for Python 2.7 on Windows.

Please try Python 3 instead and let me know if it worked.

from firefox_decrypt.

olejaZverev avatar olejaZverev commented on May 22, 2024

Not as easy as I though, and in fact with Python 2.7 I couldn't find a compatible solution. With Python 3 it worked fine.
The problem has to do with the encoding used by cmd.exe.
The only alternative is to set your terminal to be UTF8 compatible but this has it's own problems.

for russian language: chcp 866
but....error too.

python 3 may be one way.

from firefox_decrypt.

olejaZverev avatar olejaZverev commented on May 22, 2024

with python 3

Microsoft Windows [Version 6.1.7601]
(c) Корпорация Майкрософт (Microsoft Corp.), 2009. Все права защищены.

C:\Users\Алиса>C:\Users\Алиса\Desktop\firefox_decrypt.py
Traceback (most recent call last):
File "C:\Users\Алиса\Desktop\firefox_decrypt.py", line 952, in
main()
File "C:\Users\Алиса\Desktop\firefox_decrypt.py", line 918, in main
nss = NSSInteraction()
File "C:\Users\Алиса\Desktop\firefox_decrypt.py", line 413, in init
self.NSS = NSSDecoder()
File "C:\Users\Алиса\Desktop\firefox_decrypt.py", line 256, in init
self.load_libnss()
File "C:\Users\Алиса\Desktop\firefox_decrypt.py", line 370, in load_libnss
self.NSS = self.find_nss(locations, nssname)
File "C:\Users\Алиса\Desktop\firefox_decrypt.py", line 302, in find_nss
os.chdir(loc)
FileNotFoundError: [WinError 3] Системе не удается найти указанный путь: 'C:\Pr
ogram Files (x86)\Mozilla Firefox'

My system not have this path. Right path is: C:\Program Files\Mozilla Firefox

from firefox_decrypt.

olejaZverev avatar olejaZverev commented on May 22, 2024

I try last commit. Work correctly.

from firefox_decrypt.

unode avatar unode commented on May 22, 2024

Great, good to know. There's still some work to do as things broke on non-UTF8 Linux systems.

Thanks for the effort and the report.

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.