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

BUG: Won't Export App #17

Open
everythingability opened this issue Oct 13, 2024 · 12 comments
Open

BUG: Won't Export App #17

everythingability opened this issue Oct 13, 2024 · 12 comments

Comments

@everythingability
Copy link

Hi,

amazed that this exists. Great job! Loving it.

When I export my app on Sonoma 14.5, CardStock 099.6.2 , I get an app but when I launch it nothing happens. There's no clue in the System Preferences window.

Tom

@benjie-git
Copy link
Owner

Hmmm, this works fine for me on MacOS 14.7 on Arm. I'll test more with the downloaded versions. Are you running on an Intel or Arm machine? And are you running the Intel or Arm download?

@everythingability
Copy link
Author

M2 Arm. And the ARM download (I hope/reckon)

image

@benjie-git
Copy link
Owner

This works fine if running from source, but PyInstaller fails to include the requests package inside the standalone app, for requests>=2.32.0. This works with requests<=2.31.0. Fixed in git, so the next builds will include this fix.

@benjie-git
Copy link
Owner

benjie-git commented Oct 15, 2024 via email

@everythingability
Copy link
Author

image

It DOES successfully export now... Yay! There is a slight UI issue that, having exported an app, the window kinda just lurks there... looking as if it's still in progress, or failed... when it should close - make a ping or something ...or reveal it in the Finder...

Still. Great . Thanks.

@benjie-git
Copy link
Owner

The export window does automatically close for me when the export is complete. Are you able to run the app from the terminal and see if there are any error messages? You should be able to run in the terminal from the directory containing the CardStock.app as CardStock.app/Contents/MacOS/CardStock

@benjie-git benjie-git reopened this Oct 18, 2024
@everythingability
Copy link
Author

Ak. OK. I tried and the first time it complained about an image... not sure what to do about that. The image is where it says it is.

The 2nd time it complained because the file/Stack already exists.

tas509@UOY24M162 ~ % /Applications/CardStock.app/Contents/MacOS/CardStock
Traceback (most recent call last):
File "stackExporter.py", line 493, in OnExportApp
File "stackExporter.py", line 170, in ExportApp
File "stackExporter.py", line 313, in ExportFromBundle
File "shutil.py", line 260, in copyfile
FileNotFoundError: [Errno 2] No such file or directory: '/Users/tas509/Desktop/GZoZe6aWgAoAsM3.jpg'
Traceback (most recent call last):
File "stackExporter.py", line 493, in OnExportApp
File "stackExporter.py", line 170, in ExportApp
File "stackExporter.py", line 280, in ExportFromBundle
File "shutil.py", line 600, in copytree
File "shutil.py", line 498, in _copytree
File "", line 225, in makedirs
FileExistsError: [Errno 17] File exists: '/Users/tas509/Desktop/MyStack.app'

@everythingability
Copy link
Author

Just tried Remove for the image - btw this dialog wasn't clear as to what it was telling me and what to do about it... and it fixed it.

Super!

@benjie-git
Copy link
Owner

The app will now show error messages during export, and close the export dialog cleanly after an error. I still need to determine why it couldn't find your image.

@everythingability
Copy link
Author

everythingability commented Oct 21, 2024 via email

@benjie-git
Copy link
Owner

I'll try to make this dialog more clear. The idea is that it's packaging up all of your resources into the exported stack, and is confirming that it found everything your stack will need, in terms of sounds and images. If you delete them from this list, it will not include them in the packaged stack app. It may still find them at run time, if you run the exported stack from the same location as your original stack, since the relative paths to the images/sounds will still be in the same relative locations.

But it does sound like the export tool is having trouble finding your images that are in the Desktop folder. I'll see if I can figure out why that could be happening.

@everythingability
Copy link
Author

Hi,

I think stating what the issue is (if there an is an issue). For example, if an image is missing, does Cardstock crash, or is the image just missing?

I honestly can't remember if I'd added an image that was lying around that I later tidied up.

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

2 participants