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

Error 23 No matter what i do after PS Update #18

Closed
Charlielx opened this issue Jul 5, 2020 · 2 comments
Closed

Error 23 No matter what i do after PS Update #18

Charlielx opened this issue Jul 5, 2020 · 2 comments

Comments

@Charlielx
Copy link

Hi so I recently updated from CC 2019 to 2020 and ever since I haven't been able to get the script to create the card.json file and run properly. Prior to the update it would run just fine, and I had made many cards using it. Immediately after the update I was able to get the script to run, but it wouldn't update the card.json so it was just using the last successful card's text over and over. In response to this I enabled all permissions both on the scripts folder itself, as well as the folder containing the scripts folder, to no avail. After that I tried redownloading the distro and when I tried running the new file it wouldn't run at all, and only resulted in Error 23 repeatedly which is very frustrating lol. I tried basically everything I could think of to get it to run properly, including following the recommendations of one of the other issues on this git, also to no avail. Is there anything anyone can think of that might be causing this, or a solution I could apply? I'd love to get back to making more cards asap. Thanks!

@saggitar
Copy link

In case you are using Windows, just use the same command to call the python script as for Mac:

In proxy.jsx we have

if ($.os.search(/windows/i) != -1) {
      // Windows
      app.system("python get_card_info.py \"" + cardName + "\"");
} else {
      // macOS
      app.system("/usr/local/bin/python3 " + filePath + "/scripts/get_card_info.py \"" + cardName + "\" >> " + filePath + "/scripts/debug.log 2>&1");
}

The macOS command solves the problem, but the code was not fixed for Windows. The working directory when running the script is the Photoshop installation directory, so it can't find the get_card_info script like this.
You can change the command for the Windows branch to also use the absolute path of the script as a reference:

if ($.os.search(/windows/i) != -1) {
      // Windows
      app.system("python " + filePath + "/scripts/get_card_info.py \"" + cardName + "\" >> " + filePath + "/scripts/debug.log 2>&1");
} else {
      // macOS
      app.system("/usr/local/bin/python3 " + filePath + "/scripts/get_card_info.py \"" + cardName + "\" >> " + filePath + "/scripts/debug.log 2>&1");
}

Now the python script will be found, and everything works.

@ndepaola
Copy link
Collaborator

ndepaola commented Aug 2, 2021

fixed here f39f5f9 sorry about this guys

@ndepaola ndepaola closed this as completed Aug 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants