Stand alone product keyword and search - Now mac supported

2»

Comments

  • nomad-ads_8ecd56922enomad-ads_8ecd56922e Posts: 2,003
    edited November 2019

    Well, in my case, it appears Python ran the script, and gave me the GUI.... and it made the other files you mentioned (daz_config.ini and daz_data.xlsx) within the directory... but no content is showing up in the search, and when I go to load the database, spreadsheet file in LibreOffice... there's nothing in the fields, other than the word Image in 1A and the word Keywords in 1B..  When I opened the ini file in Notepad, at one point it was showing a lot of detected folders on drive E:, a lot of which seems to be stuff in my temporary-holding-pattern second downloads folder area... but now when I open the ini file again, all I see is:

    ------------------------------------------->8---cut-here--->8--------------------------------------------

    [SEARCH]
    1 = 1
    2 = 1

    [LOCATIONS]

    ------------------------------------------->8---cut-here--->8--------------------------------------------

    Am I missing something?

    dazdb spreadsheet 20191110.png
    956 x 726 - 77K
    Post edited by nomad-ads_8ecd56922e on
  • kaotkblisskaotkbliss Posts: 2,918
    edited November 2019

    And you ran the Add Runtime? (I know you did because you had asked me about the hard drive usage when it was running)

    I've not seen this happen, I'lll have to review the code and see what I can find out.

    In the meantime you can try addining runtime again and see if you get a list. If you do, then perhaps the first time the list of runtimes didn't get updated properly, or even worse, was overwritten somewhere in the code.

     

    *edit*

    I updated the first post with a new update that doesn't necessarily deal with your issue, but does add some improvements

    Post edited by kaotkbliss on
  • Okay, switched it out with the new one, and now it works.

  • kaotkblisskaotkbliss Posts: 2,918

    Yay! :) glad it's finally working

  • kaotkblisskaotkbliss Posts: 2,918

    Working on adding a couple new buttons (Also added a total of products under the list)

    1 button is to clear your list selection (also clears preview image and keyword list)

    the other button which I'm still debating everything it's going to do, deletes an item from your list which currently will either

    just delete your item from the list. Item will re-appear next time you add-items and it finds the thumbnail again

    or it will delete the item from your list as well as the thumbnail in runtime\support so it no longer will be found. (This will also cause thumbnails to show the white triangle with ! in product list in daz studio since the thumbnail will be gone)

     

    What I'm debating is if I should go through the item that's being deleted dsx file and remove all files listed there (a kind of uninstall) when deleting the item and image. What do you think?

  • kaotkblisskaotkbliss Posts: 2,918

    I've a pretty long list of items in my product library (over 5,000) so when I go back to continue adding keywords it takes longer and longer to find where I left off.

    I finally decided to add a button that will filter the list to products that don't have any keywords added.

    Then after having my HD crash and needing to reinstall windows and all my programs, I found that some products switched which version of the item it was going to list in Daz studio's product list (Some products have Ds, Ps, PoserCF and/or no extention at all and it appears that it's random which one is used for the product name)

    This left me with 2 copies of many products listed in my database since I had a Ds version and now the image has been renamed to Ps or vice-versa

    So I added another button to go through the data and any image that no longer exists in runtime\support will remove that entry. 

  • kaotkblisskaotkbliss Posts: 2,918

    Well, it's been quite some time (about 6 years it looks like) but I had to finally reinstall windows on my pc and in doing so had to re-install python.

    Doing so led to some errors due to changes in PIL (That handles the thumbnails) and the syntax for escape characters in python.

    I've updated the code to address these errors.

  • FrankTheTankFrankTheTank Posts: 1,526
    edited February 16

    so I already had Python 3.11 installed for Chatterbox TTS Turbo that I use everyday. I thought I would just be able to run your script and have a standalone product keyword search for my daz stuff. Mind you, I know nothing about programming. So anyway, i downloaded it and ran it and it did "something", not sure what, but my Chatterbox Turbo TTS no longer runs properly.

    Its my fault, i should have never tempted fate and ran some unknown script when I don't know anything about programming, but I just want to undo whatever your script did.

    I've tried reinstalling Chatterbox, but its still not working right. I've tried using AI to fix the problem, it seems to think that some background service is now running at startup related to it. Can you explain how to undo whatever the script did?

    update: so I used google AI to try to figure out what happened, and I wound up having to do a clean install of python and chatterbox turbo, no big deal, it was a learning experience. In any case, I used AI to help me figure out what to cleanup and all is good again. But man, chatterbox TTS is a "fragile" installation. Its not the first time it has caused me headaches. Even browser plugins can hose the installation. In fact OBS studio also caused it to stop working before. On the plus side, I was also able to use AI to build a couple batch scripts so I can process hundreds of lines of dialog at a time now. And I learned quite a bit about Python in the process. So I did benefit overall. 

    Post edited by FrankTheTank on
  • kaotkblisskaotkbliss Posts: 2,918
    edited February 16

    Sorry to hear about the issues. I don't know chatterbox but I'm assuming it's using one of the same plugins my script is using and when running my script, probably updated the plugin to a newer version. Normally an app made in python just looks to see if it needs to insall or update a package, not downgrade one, which is probably why reinstalling chatterbox didn't work. The problematic plugin package would have had to be removed for chatterbox to install the version it needs.

     

    *edit to add*

    There are no background processes that run with my app so I'm pretty sure it's a package update. I'll look into my app checking if a package is installed or not first instead of just checking if the minimum version is installed. This may cause my app to not work propperly if it can't get the correct version, but it's probably better than messing up other python apps because it updated a package used by something else.

    Post edited by kaotkbliss on
  • FrankTheTankFrankTheTank Posts: 1,526

    kaotkbliss said:

    Sorry to hear about the issues. I don't know chatterbox but I'm assuming it's using one of the same plugins my script is using and when running my script, probably updated the plugin to a newer version. Normally an app made in python just looks to see if it needs to insall or update a package, not downgrade one, which is probably why reinstalling chatterbox didn't work. The problematic plugin package would have had to be removed for chatterbox to install the version it needs.

     

    *edit to add*

    There are no background processes that run with my app so I'm pretty sure it's a package update. I'll look into my app checking if a package is installed or not first instead of just checking if the minimum version is installed. This may cause my app to not work propperly if it can't get the correct version, but it's probably better than messing up other python apps because it updated a package used by something else.

    Yeah, Chatterbox Turbo is very finicky and a slight update or change to something it uses and it stops talking to the GPU. But I Iove it, it's the best free, locally installed, AI text-to-speech and voice-to-speech that I have found. Just in case you or anyone is interested in trying it out, I followed this tutorial here on installing it. I tried some other tutorial the first time, and this particular tutorial was very easy to follow imo. If I ever have to install it a 3rd time, I will be able to do it much faster now. 

  • kaotkblisskaotkbliss Posts: 2,918

    Going through those install instructions and I do see that chatterbox uses pillow (later renamed to just PIL) and possibly configparser (I saw pycparser in that tutorial which may be the an older version of configparser)

    So that would explain the issues.

    Doing some research on ignoring import if any version of a module exists now.

    Hopefully the versions of those modules you have will work with the original PIL code I had and I can just do a switch to run a different line of code depending on the pillow version.

  • kaotkblisskaotkbliss Posts: 2,918

    Actually, now that I'm getting into trying to code this and make sure correct versions of modules are installed, it looks like pillow is a branch of PIL (both continuing on as seperate modules) so I would think that they would also work independantly of eachother.

    I might have to set up a virtual machine and install python 3.11 and chatterbox and do some experimenting to drill down to the exact culprit.

    It will also give me a way to test changes and make sure they work in both 3.11 and 3.14 and alongside chatterbox

Sign In or Register to comment.