avalon60 / ctk_theme_builder

CTk Theme Builder for CustomTkinter, a comprehensive and easy solution, for creating CustomTkinter themes.
MIT License
207 stars 17 forks source link

Doesn't install on Mac OS Sonoma #24

Closed steveorobec closed 6 months ago

steveorobec commented 8 months ago

Install via zip file with and without -i option fails eg python -v theme_builder_setup.py -i /Users/=====/util/ctk_theme_builder-develop -p /var/tmp/ctk_theme_builder.zip

python -v theme_builder_setup.py -i /Users/=====/util -p /var/tmp/ctk_theme_builder.zip

Checking Python interpreter version... Python version, 3.8.11, is a supported version. Starting CTk Theme Builder deployment. Installation base location: /Users/====/util/ctk_theme_builder-develop Updating existing application at: /Users/====/util/ctk_theme_builder-develop/ctk_theme_builder

======================== KEY LOCATION MAPPINGS ========================== Package Location: /var/tmp/ctk_theme_builder.zip App Home = /Users/===/util/ctk_theme_builder-develop/ctk_theme_builder Assets Location = /Users/====/util/ctk_theme_builder-develop/ctk_theme_builder/assets User Theme Location = /Users/====/util/ctk_theme_builder-develop/ctk_theme_builder/user_themes Log Location = /Users/=====/util/ctk_theme_builder-develop/ctk_theme_builder/log

Checking for repository: /Users/====/util/ctk_theme_builder-develop/ctk_theme_builder/assets/data/ctk_theme_builder.db Repository located - pre-existing installation. Unpacking package: /var/tmp/ctk_theme_builder.zip to: /Users/=======/util/ctk_theme_builder-develop

/Users/=====/miniconda3/lib/python3.8/encodings/pycache/cp437.cpython-38.pyc matches /Users/====/miniconda3/lib/python3.8/encodings/cp437.py

code object from '/Users/=====/miniconda3/lib/python3.8/encodings/pycache/cp437.cpython-38.pyc'

import 'encodings.cp437' # <_frozen_importlib_external.SourceFileLoader object at 0x1015aedc0> Inspecting CTk Theme Builder application home directory... The specified application home directory, /Users/======/util/ctk_theme_builder-develop/ctk_theme_builder, appears invalid. The following components are missing: /Users/====/util/ctk_theme_builder-develop/ctk_theme_builder/assets/etc (directory) /Users/====/util/ctk_theme_builder-develop/ctk_theme_builder/assets/themes (directory) /Users/====c/util/ctk_theme_builder-develop/ctk_theme_builder/assets/images (directory) /Users/====/util/ctk_theme_builder-develop/ctk_theme_builder/assets/config (directory) /Users/=====/util/ctk_theme_builder-develop/ctk_theme_builder/assets/palettes (directory) /Users/=====/util/ctk_theme_builder-develop/ctk_theme_builder/assets/views (directory) /Users/=====/util/ctk_theme_builder-develop/ctk_theme_builder/ctk_theme_builder.bat (file) /Users/=====/util/ctk_theme_builder-develop/ctk_theme_builder/ctk_theme_builder.sh (file) /Users/=====/util/ctk_theme_builder-develop/ctk_theme_builder/ctk_theme_preview.py (file) /Users/=====/util/ctk_theme_builder-develop/ctk_theme_builder/build_app.sh (file) /Users/=====/util/ctk_theme_builder-develop/ctk_theme_builder/build_app.bat (file) /Users/=====/util/ctk_theme_builder-develop/ctk_theme_builder/get-pip.py (file) /Users/=====/util/ctk_theme_builder-develop/ctk_theme_builder/requirements.txt (file) /Users/=====/util/ctk_theme_builder-develop/ctk_theme_builder/assets/config/repo_updates.json (file) /Users/=====c/util/ctk_theme_builder-develop/ctk_theme_builder/assets/themes/GreyGhost.json (file) Install base, /Users/=====/util/ctk_theme_builder-develop, does not appear to be correct.

clear builtins._

clear sys.path

Manually unzipping gives /Users/=====/ctk_theme_builder-develop/requirements.txt, /Users/====/ctk_theme_builder-develop/assets/etc so they do exist in the zip. Tried several times including into a fresh folder

Sorry about formatting in cut and paste

avalon60 commented 8 months ago

Hi Steve. I have never tested install on Mac (I don't have one). Also, it looks like you are using some Anaconda variant. That's something not tested either. Did it create the ctk_theme_builder folder? If so were there any logs in the log directory?

Finally, don't include a ctk_theme_builder-develop with the -i option. Give it a base directory and let it create the ctk_theme_builder directory for you. I am guessing that you want something like:

python theme_builder_setup.py -i /Users/=====/util -p /var/tmp/ctk_theme_builder.zip

It should create a ctk_theme_builder directory for you, below /Users/=====/util.

I assume the ===== is where you obvuscated you username.

You can cross-reference my comments with: https://github.com/avalon60/ctk_theme_builder/issues/23#issuecomment-1949367942

steveorobec commented 8 months ago

Hi Clive

Thanks for the quick response Appreciate that you haven't tested on a mac, just posted for your info and others.

Yes the === was obfuscation , the -v was for python to get more verbose info as to what was happening There was a log, I found it later but it was just a neater reflection of what I posted, no additional info Yes it did create a folder.

I used your suggested code (I had done similar before but to rule it out I repeated it) It creates 2 folders ctk_theme_builder and ctk_theme_builder-developer

image

It still failed, same error as above, didn't delete the folders on failure though

avalon60 commented 7 months ago

Steve. I have purchased a used iMac Mini, from eBay. It comes with Ventura, and believe this should allow me to run Python 11 or 12. With a bit of luck, I should be able to work the installation issues.

rennoun commented 6 months ago

i have exactly same problem, did you found the solution ?

avalon60 commented 6 months ago

This is how I successfully installed on Sonoma:

Typically:

From a terminal window:

brew install python
brew install python-tk

If a suitable Python version (see Installing & Upgrading CTk Theme Builder) is already installed (including Tkinter) , then ignore the above.

Download https://github.com/avalon60/ctk_theme_builder/releases/download/v3.0.1/ctk_theme_builder-3.0.1.zip

Unpack the theme_builder_setup.py file and run it:

cd $HOME/Downloads

unzip -j ctk_theme_builder-3.0.1.zip ctk_theme_builder/theme_builder_setup.py

python3 theme_builder_setup.py  -p $HOME/Downloads/ctk_theme_builder-3.0.1.zip

This results in a ctk_theme_builder installation in your home directory. You can then launch CTk Theme Builder, using the command:

$HOME/ctk_theme_builder/ctk_theme_builder.sh

avalon60 commented 6 months ago

Closing as resolved and no further feedback.