Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error running md2anki #23

Open
Nightwindx opened this issue Feb 2, 2024 · 0 comments
Open

Error running md2anki #23

Nightwindx opened this issue Feb 2, 2024 · 0 comments

Comments

@Nightwindx
Copy link

Hello,
I am facing an issue after running "md2anki" in PowerShell/CMD/terminal. I have upgraded the software, uninstalled then reinstalled, restarted laptop, uninstalled then reinstalled python, ran PowerShell as Administrator, and added python to PATH before installation. Still did not work.

This is the error:
Traceback (most recent call last):
File "C:\Users\jadma\AppData\Local\Programs\Python\Python312\Lib\site-packages\markdown2anki\config\configs_handle.py", line 77, in handle_configs
config_dir, config_file = get_configfile_paths(config_link_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\jadma\AppData\Local\Programs\Python\Python312\Lib\site-packages\markdown2anki\config\configs_handle.py", line 26, in get_configfile_paths
raise FileNotFoundError(
FileNotFoundError: The path to the file containing the link to the config file doesn't exist.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "", line 198, in run_module_as_main
File "", line 88, in run_code
File "C:\Users\jadma\AppData\Local\Programs\Python\Python312\Scripts\md2anki.exe_main
.py", line 7, in
File "C:\Users\jadma\AppData\Local\Programs\Python\Python312\Lib\site-packages\markdown2anki_init
.py", line 30, in main
config = config_handle.handle_configs(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\jadma\AppData\Local\Programs\Python\Python312\Lib\site-packages\markdown2anki\config\configs_handle.py", line 79, in handle_configs
welcome_user(
File "C:\Users\jadma\AppData\Local\Programs\Python\Python312\Lib\site-packages\markdown2anki\config\first_config.py", line 32, in welcome_user
welcome_msg = get_welcome_message(
^^^^^^^^^^^^^^^^^^^^
File "C:\Users\jadma\AppData\Local\Programs\Python\Python312\Lib\site-packages\markdown2anki\config\first_config.py", line 95, in get_welcome_message
welcome_msg = welcome_file.read()
^^^^^^^^^^^^^^^^^^^
File "C:\Users\jadma\AppData\Local\Programs\Python\Python312\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 0x90 in position 1115: character maps to


Python version: 3.12.1
Edition: Windows 11 Home
Version: 22H2
System type: 64-bit operating system, x64-based processor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog
Development

No branches or pull requests

1 participant