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

[Help] Install Issues-Windows #169

Closed
y0himba opened this issue Dec 31, 2024 · 9 comments
Closed

[Help] Install Issues-Windows #169

y0himba opened this issue Dec 31, 2024 · 9 comments
Labels
duplicate This issue or pull request already exists fixed in next update (pending) windows Related to the windows operating system

Comments

@y0himba
Copy link

y0himba commented Dec 31, 2024

Hello. My wife is recently blind, and when I saw this, I literally whooped out loud. I can convert her books to audio! For free or a small donation!

However, I am not very tech savvy, and I am having issues with the install. Got clone fails first, I restore it, then I manually extract the invalid paths (see below) and that gets it cloned and checked out.

Next, I run ebook2audiobook.cmd and get a host of errors. I don't understand any of them. The "Docker" thing is way out of my league. I just want to convert her books to audio for her, easily. It also fails to import unidic saying no module is found.

I have tried to run conda init cmd.exe. I have tried installing pydantic-core, pyee manually, tried running the suggested pip install --force-reinstall --no-deps pydantic-core==2.23.4 but I cannot even activate the vEnv.

please see the screenshots below. Thank you for any help as this is an absolute BOON to my wife and I.

If there is any information I can collect and post to this end, please just let me know? Go easy on me also, I am an old vet and just trying to get some help here.

y0himba-Administrator_CWindowssys-343

y0himba-Administrator_CWindowssys-344

y0himba-Administrator_CWindowssys-345

y0himba-Administrator_CWindowssys-346

@titusthef0x
Copy link

Had the same problem with cloning on windows try the following inside the folder:

git config core.protectNTFS false

and then what you did:

git restore --source=HEAD :/

There should now be files inside the ebook2audiobook folder and you can go on

@DrewThomasson DrewThomasson added the windows Related to the windows operating system label Dec 31, 2024
@DrewThomasson
Copy link
Owner

DrewThomasson commented Dec 31, 2024

It's a bug That's being fixed in the next PR :)

Caused by file naming limitations of windows with con

This is a duplicate of #126

@DrewThomasson DrewThomasson added the duplicate This issue or pull request already exists label Dec 31, 2024
@thre3eye
Copy link

thre3eye commented Jan 2, 2025

FYI - just stumbled across this today. @titusthef0x workaround worked around it, but a regular checkout on win still seems to fail.

PS C:\Data\Tools> git clone https://github.com/DrewThomasson/ebook2audiobook.git Cloning into 'ebook2audiobook'... remote: Enumerating objects: 2727, done. remote: Counting objects: 100% (672/672), done. remote: Compressing objects: 100% (307/307), done. remote: Total 2727 (delta 507), reused 365 (delta 365), pack-reused 2055 (from 4) Receiving objects: 100% (2727/2727), 202.98 MiB | 10.28 MiB/s, done. Resolving deltas: 100% (1405/1405), done. error: invalid path 'voices/con/adult/female/.gitkeep' fatal: unable to checkout working tree warning: Clone succeeded, but checkout failed. You can inspect what was checked out with 'git status' and retry with 'git restore --source=HEAD :/'

@y0himba
Copy link
Author

y0himba commented Jan 2, 2025

That is the error in my screenshots. It's being worked on, known bug according to above.

Can anyone tell me what to do about the Conda errors in my original post? Please and thank you?

@ROBERT-MCDOWELL
Copy link
Collaborator

just try
conda init

@y0himba
Copy link
Author

y0himba commented Jan 2, 2025

just try conda init

I have tried to run conda init cmd.exe. I have tried installing pydantic-core, pyee manually, tried running the suggested pip install --force-reinstall --no-deps pydantic-core==2.23.4 but I cannot even activate the vEnv.

@titusthef0x
Copy link

just try conda init

I have tried to run conda init cmd.exe. I have tried installing pydantic-core, pyee manually, tried running the suggested pip install --force-reinstall --no-deps pydantic-core==2.23.4 but I cannot even activate the vEnv.

I used PowerShell 7 (x64) as administrator instead of cmd.exe and never ran into those problems. Maybe try that.

@y0himba
Copy link
Author

y0himba commented Jan 2, 2025

just try conda init

I have tried to run conda init cmd.exe. I have tried installing pydantic-core, pyee manually, tried running the suggested pip install --force-reinstall --no-deps pydantic-core==2.23.4 but I cannot even activate the vEnv.

I used PowerShell 7 (x64) as administrator instead of cmd.exe and never ran into those problems. Maybe try that.

`PS C:\Tools\ebook2audiobook> conda init
WARNING: Cannot install xonsh wrapper without a python interpreter in prefix: C:\Users\y0himba\AppData\Local\Temp_MEI605082
ERROR during elevated execution.
rc: [WinError 0] The operation completed successfully.
needs sudo C:\Users\y0himba\AppData\Local\Temp_MEI605082\Scripts\conda.exe
needs sudo C:\Users\y0himba\AppData\Local\Temp_MEI605082\Scripts\conda-env.exe
modified C:\Users\y0himba\AppData\Local\Temp_MEI605082\Scripts\conda-script.py
modified C:\Users\y0himba\AppData\Local\Temp_MEI605082\Scripts\conda-env-script.py
needs sudo C:\Users\y0himba\AppData\Local\Temp_MEI605082\condabin\conda.bat
needs sudo C:\Users\y0himba\AppData\Local\Temp_MEI605082\Library\bin\conda.bat
needs sudo C:\Users\y0himba\AppData\Local\Temp_MEI605082\condabin_conda_activate.bat
needs sudo C:\Users\y0himba\AppData\Local\Temp_MEI605082\condabin\rename_tmp.bat
needs sudo C:\Users\y0himba\AppData\Local\Temp_MEI605082\condabin\conda_auto_activate.bat
needs sudo C:\Users\y0himba\AppData\Local\Temp_MEI605082\condabin\conda_hook.bat
needs sudo C:\Users\y0himba\AppData\Local\Temp_MEI605082\Scripts\activate.bat
needs sudo C:\Users\y0himba\AppData\Local\Temp_MEI605082\condabin\activate.bat
needs sudo C:\Users\y0himba\AppData\Local\Temp_MEI605082\condabin\deactivate.bat
needs sudo C:\Users\y0himba\AppData\Local\Temp_MEI605082\Scripts\activate
needs sudo C:\Users\y0himba\AppData\Local\Temp_MEI605082\Scripts\deactivate
needs sudo C:\Users\y0himba\AppData\Local\Temp_MEI605082\etc\profile.d\conda.sh
needs sudo C:\Users\y0himba\AppData\Local\Temp_MEI605082\etc\fish\conf.d\conda.fish
needs sudo C:\Users\y0himba\AppData\Local\Temp_MEI605082\shell\condabin\Conda.psm1
needs sudo C:\Users\y0himba\AppData\Local\Temp_MEI605082\shell\condabin\conda-hook.ps1
needs sudo C:\Users\y0himba\AppData\Local\Temp_MEI605082\etc\profile.d\conda.csh
modified F:\Documents\PowerShell\profile.ps1
modified F:\Documents\WindowsPowerShell\profile.ps1
modified HKEY_CURRENT_USER\Software\Microsoft\Command Processor\AutoRun

==> For changes to take effect, close and re-open your current shell. <==

Operation failed.
PS C:\Tools\ebook2audiobook>`

@ROBERT-MCDOWELL
Copy link
Collaborator

you have an issue with your user permissions. apparently it needs administrator privileges... which is a non common state

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists fixed in next update (pending) windows Related to the windows operating system
Projects
None yet
Development

No branches or pull requests

5 participants