sw icon indicating copy to clipboard operation
sw copied to clipboard

You have spaces in the storage directory path

Open howardjones opened this issue 4 years ago • 3 comments

I am trying to build Tesseract on Windows, which uses sw.

I've run sw setup and then the build command for Tesseract. I get the following error. My home directory is based on my username, which has a space in it. I can't change it. sw chose the storage directory path (and didn't complain during the setup phase). How can I proceed?

Exception in file D:/dev/cppan2/client2/src/sw/support/storage.cpp:18, function checkPath: You have spaces in the storage directory path. SW cannot work in this directory: 'C:\Users\Howard Jones\.sw\storage'

howardjones avatar Oct 18 '20 23:10 howardjones

Hi,

  1. Check c:\Users\u\.sw\sw.yml. There will be storage_dir setting. Change it to some dir without spaces.
  2. I'll try to remove this limitation in my dev builds.

egorpugin avatar Oct 19 '20 10:10 egorpugin

I think if it at least warned you when you ran the setup (and pointed to that config file) it would be an improvement.

howardjones avatar Oct 19 '20 10:10 howardjones

Ok, I'll think how to improve that.

egorpugin avatar Oct 19 '20 16:10 egorpugin