RosettaTechnologies / AnkiBrain

142 stars 20 forks source link

install fails for script #7

Open amsaravi opened 4 months ago

amsaravi commented 4 months ago

Great add-on I have trouble with logging-in to the provided site and also installing the python requirements in the advanced mode : finally i could install pyenv in my windows 10. the problem was that i have both anaconda and python 3.7.9 installed and they do not let pyenv to take the control of python ... now this is the new issue: when i try to install base on github provided data and full install the packages, runing the anki will remove all installed packages and env directory. and the script provided by the add-on cant install the required env in windows and prompts: venv exists, deleting... Creating new python virtualenv in ./user_files/venv Error: Command '['C:\Users\mahdi\AppData\Roaming\Anki2\addons21\1915225457\user_files\venv\Scripts\python3.9.exe', '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 3221225781. .\user_files\venv\Scripts\activate : The term '.\user_files\venv\Scripts\activate' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At C:\Users\mahdi\AppData\Roaming\Anki2\addons21\1915225457\win-setup-python-env.ps1:23 char:1

amsaravi commented 4 months ago

this means that the script cant create the virtual env and installs all packages in the main python installation image

amsaravi commented 4 months ago

I tried to run the script manually and got this error. copyq_0029

amsaravi commented 4 months ago

WDADesktopService_wp9EBSdQHO but python -m venv ./user_files/venv works well

amsaravi commented 4 months ago

I finally installed the add-on, it seems the installation guide in the readme section is misleading and instructs to install the venv in the root add-on's path, where the script installs it in the ./user_files/venv path by the way, good job, well done, congrats.