vladmandic / automatic

SD.Next: Advanced Implementation of Stable Diffusion and other Diffusion-based generative image models
https://github.com/vladmandic/automatic
GNU Affero General Public License v3.0
5.56k stars 409 forks source link

[Issue]: Initial run - Error getting local repository version: invalid literal for int() with base 10 #1469

Closed octoworld closed 1 year ago

octoworld commented 1 year ago

Issue Description

Fresh install on win11. First run of webui.bat results in error:

`2023-06-19 01:07:08,594 | sd | INFO | launch | Starting SD.Next 2023-06-19 01:07:08,594 | sd | INFO | launch | Starting SD.Next 2023-06-19 01:07:08,594 | sd | INFO | installer | Python 3.10.6 on Windows 2023-06-19 01:07:08,594 | sd | INFO | installer | Python 3.10.6 on Windows 2023-06-19 01:07:08,690 | sd | INFO | installer | Version: Active code page: 65001

b340e3f4 Sun Jun 18 16:30:59 2023 -0400 2023-06-19 01:07:08,690 | sd | INFO | installer | Version: Active code page: 65001

b340e3f4 Sun Jun 18 16:30:59 2023 -0400 2023-06-19 01:07:09,224 | sd | INFO | installer | Latest published version: b340e3f40c36eda26bf62fcbcdfec7219a731cea 2023-06-18T20:30:59Z 2023-06-19 01:07:09,224 | sd | INFO | installer | Latest published version: b340e3f40c36eda26bf62fcbcdfec7219a731cea 2023-06-18T20:30:59Z 2023-06-19 01:07:09,228 | sd | DEBUG | installer | Setting environment tuning 2023-06-19 01:07:09,228 | sd | DEBUG | installer | Setting environment tuning 2023-06-19 01:07:09,230 | sd | DEBUG | installer | Torch overrides: cuda=False rocm=False ipex=False diml=False 2023-06-19 01:07:09,230 | sd | DEBUG | installer | Torch overrides: cuda=False rocm=False ipex=False diml=False 2023-06-19 01:07:09,232 | sd | DEBUG | installer | Torch allowed: cuda=True rocm=True ipex=True diml=True 2023-06-19 01:07:09,232 | sd | DEBUG | installer | Torch allowed: cuda=True rocm=True ipex=True diml=True 2023-06-19 01:07:09,236 | sd | INFO | installer | nVidia CUDA toolkit detected 2023-06-19 01:07:09,236 | sd | INFO | installer | nVidia CUDA toolkit detected 2023-06-19 01:07:11,487 | sd | INFO | installer | Torch 2.0.1+cu118 2023-06-19 01:07:11,487 | sd | INFO | installer | Torch 2.0.1+cu118 2023-06-19 01:07:12,570 | sd | INFO | installer | Torch backend: nVidia CUDA 11.8 cuDNN 8700 2023-06-19 01:07:12,570 | sd | INFO | installer | Torch backend: nVidia CUDA 11.8 cuDNN 8700 2023-06-19 01:07:12,570 | sd | INFO | installer | Torch detected GPU: NVIDIA GeForce GTX 1660 Ti VRAM 6144 Arch (7, 5) Cores 24 2023-06-19 01:07:12,570 | sd | INFO | installer | Torch detected GPU: NVIDIA GeForce GTX 1660 Ti VRAM 6144 Arch (7, 5) Cores 24 2023-06-19 01:07:12,580 | sd | WARNING | installer | Not used, uninstalling: xformers 0.0.17 2023-06-19 01:07:12,580 | sd | WARNING | installer | Not used, uninstalling: xformers 0.0.17 2023-06-19 01:07:12,580 | sd | DEBUG | installer | Running pip: uninstall xformers --yes --quiet 2023-06-19 01:07:12,580 | sd | DEBUG | installer | Running pip: uninstall xformers --yes --quiet 2023-06-19 01:07:13,659 | sd | DEBUG | installer | Package version not found: tensorflow 2023-06-19 01:07:13,659 | sd | DEBUG | installer | Package version not found: tensorflow 2023-06-19 01:07:13,659 | sd | INFO | installer | Installing package: tensorflow==2.12.0 2023-06-19 01:07:13,659 | sd | INFO | installer | Installing package: tensorflow==2.12.0 2023-06-19 01:07:13,659 | sd | DEBUG | installer | Running pip: install --upgrade tensorflow==2.12.0 2023-06-19 01:07:13,659 | sd | DEBUG | installer | Running pip: install --upgrade tensorflow==2.12.0 2023-06-19 01:08:05,364 | sd | WARNING | installer | Modified files: ['tive code page: 65001'] 2023-06-19 01:08:05,364 | sd | WARNING | installer | Modified files: ['tive code page: 65001'] 2023-06-19 01:08:05,461 | sd | ERROR | installer | Error getting local repository version: invalid literal for int() with base 10: 'Active code page: 65001\r\n\x0c1687120259' 2023-06-19 01:08:05,461 | sd | ERROR | installer | Error getting local repository version: invalid literal for int() with base 10: 'Active code page: 65001\r\n\x0c1687120259'`

Version Platform Description

OS: Windows 11 10.0.22000 Build 22000 CPU:AMD Ryzen 5 4600H , 3000 Mhz, 6 Core(s), 12 Logical Processor(s) GPU: GeForce GTX 1660 Ti Version (cloned today)

Acknowledgements

vladmandic commented 1 year ago

there seems to be something wrong with your git, its reporting nonsense (e.g. Active code page). what is git package you're using and what's the version?

octoworld commented 1 year ago

thanks, i was on: git version 2.39.0.windows.1 now updated to: git version 2.41.0.windows.1

different issue now, i don't get as far as i had previously:

> webui.bat
Creating venv in directory C:\Users\ddddd\A1111-vlad\automatic\venv using python "
C:\Users\ddddd\AppData\Local\Programs\Python\Python310\python.exe"
Unable to create venv in directory "C:\Users\ddddd\A1111-vlad\automatic\venv"

exit code: 123

stderr:
The filename, directory name, or volume label syntax is incorrect.

Launch unsuccessful. Exiting.
Press any key to continue . . .

Tried a fully clean clone also. (There is no sdnext.log at this point)

Other info:

> python --version 
Python 3.10.6

> where python
C:\Users\ddddd\AppData\Local\Programs\Python\Python310\python.exe
C:\Users\ddddd\AppData\Local\Microsoft\WindowsApps\python.exe

I'm stuck but will keep digging.

octoworld commented 1 year ago

I got past the above my manually entering the PYTHON_FULLNAME in webui.bat (line 29).

Then hit the same error:

09:06:14-935704 ERROR Error getting local repository version: invalid literal for int() with base 10: 'Active code page: 65001\r\n\x0c1687120259'

vladmandic commented 1 year ago

take a look at

octoworld commented 1 year ago

tried a lot of those options, none worked. i'll close this, it's obviously a local issue.

Update: found that i had an alias.bat running as cmd started, specifying "chcp 65001". i don't remember setting this but once removed install is completing. thanks for your help :)