facorazza / passwords2bitwarden Goto Github PK
View Code? Open in Web Editor NEWVault converter from Nextcloud Passwords to Bitwarden/Vaultwarden
Vault converter from Nextcloud Passwords to Bitwarden/Vaultwarden
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
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....
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.
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. ๐
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.