Code Monkey home page Code Monkey logo

passwords2bitwarden's People

Contributors

facorazza avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

passwords2bitwarden's Issues

SyntaxError

Hi,

When I try to run your script I get this message:

Traceback (most recent call last):
  File "/home/pi/Passwords2Bitwarden/main.py", line 5, in <module>
    from utils import parse_custom_fields
  File "/home/pi/Passwords2Bitwarden/utils.py", line 9
    match field[1]:
          ^
SyntaxError: invalid syntax

Any suggestion?

UnicodeDecodeError while running main.py

reciving this wile trying to run my zip.

As i have no clue exactly what this means i can't really resolve it :/

PS C:\Playground\Passwords2Bitwarden> python main.py .\NC-Passwords.zip Traceback (most recent call last): File "C:\Playground\Passwords2Bitwarden\main.py", line 77, in <module> cli() File "C:\Users\matti\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\click\core.py", line 1128, in __call__ return self.main(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\matti\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\click\core.py", line 1053, in main rv = self.invoke(ctx) ^^^^^^^^^^^^^^^^ File "C:\Users\matti\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\click\core.py", line 1395, in invoke return ctx.invoke(self.callback, **ctx.params) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\matti\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\click\core.py", line 754, in invoke return __callback(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Playground\Passwords2Bitwarden\main.py", line 48, in cli for row in reader: File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.1008.0_x64__qbz5n2kfra8p0\Lib\csv.py", line 111, in __next__ row = next(self.reader) ^^^^^^^^^^^^^^^^^ File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.1008.0_x64__qbz5n2kfra8p0\Lib\encodings\cp1252.py", line 23, in decode return codecs.charmap_decode(input,self.errors,decoding_table)[0] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 3316: character maps to <undefined>

Also im trying to run this on my Windows 10 machine, Nextcloud lang set to English, and my computer as well (By natural choice).

Any clue how to solve it since im looking forward to using my Vaultwarden machine instead of NC Passwords. ๐Ÿ˜

Why does this happen ?

Traceback (most recent call last):
  File "C:\Users\Flonki\Documents\Test123\Passwords2Bitwarden\Passwords2Bitwarden-4-fails-if-there-are-no-favorite-passwords\main.py", line 78, in <module>
    cli()
  File "C:\Users\Flonki\AppData\Local\Programs\Python\Python312\Lib\site-packages\click\core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Flonki\AppData\Local\Programs\Python\Python312\Lib\site-packages\click\core.py", line 1078, in main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "C:\Users\Flonki\AppData\Local\Programs\Python\Python312\Lib\site-packages\click\core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Flonki\AppData\Local\Programs\Python\Python312\Lib\site-packages\click\core.py", line 783, in invoke
    return __callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Flonki\Documents\Test123\Passwords2Bitwarden\Passwords2Bitwarden-4-fails-if-there-are-no-favorite-passwords\main.py", line 25, in cli
    if row["ParentLabel"] == "Home":
       ~~~^^^^^^^^^^^^^^^
KeyError: 'ParentLabel'

This Happens to me
Can someone help me

Fails if there are no favorite passwords

python main.py Passwords+Folders_02_12_2023.zip
Traceback (most recent call last):
  File "/home/bitals/GitClonedRepos/Passwords2Bitwarden/main.py", line 77, in <module>
    cli()
  File "/usr/lib/python3.11/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/bitals/GitClonedRepos/Passwords2Bitwarden/main.py", line 56, in cli
    "favorite": True if row["Favorite"] == "true" else False,
                        ~~~^^^^^^^^^^^^
KeyError: 'Favorite'

Fixed by commenting out the line 56:

                "favorite": True if row["Favorite"] == "true" else False,

Some additional check should probably be added. I might have time to test with a couple of cases and write a PR later, but no guarantee.

Script got stuck without output any file

Hallo, I just wanted to use the converter and I followed the procedere but the script got stuck withpout any file output.
I received the following error report:

File "/home/Passwords2Bitwarden/main.py", line 77, in
cli()
File "/usr/lib/python3/dist-packages/click/core.py", line 1128, in call
return self.main(*args, **kwargs)
File "/usr/lib/python3/dist-packages/click/core.py", line 1053, in main
rv = self.invoke(ctx)
File "/usr/lib/python3/dist-packages/click/core.py", line 1395, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/lib/python3/dist-packages/click/core.py", line 754, in invoke
return __callback(*args, **kwargs)
File "/home/rafael-user/Downloads/Passwords2Bitwarden/main.py", line 24, in cli
if row["ParentLabel"] == "Home":
KeyError: 'ParentLabel'

Any suggestion how to get the converted file because I strongly want to leave nextcloud passwords. But I have 199 passwords....

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.