Problems working through the Getting Started examples

68 views
Skip to first unread message

Paul Romer

unread,
Jun 8, 2022, 1:09:31 PM6/8/22
to pyoxidizer-users
I frequently encountered this error when I followed the instructions on Getting Started:

---------------------------------------------------------------------------------------------------------------------------
 > pyoxidizer run                                                                                                                                                                                   12:56:41
resolving 1 targets
resolving target install
resolving target exe
target Python distribution for x86_64-apple-darwin resolves to: https://github.com/indygreg/python-build-standalone/releases/download/20220528/cpython-3.10.4%2B20220528-x86_64-apple-darwin-pgo-full.tar.zst (sha256=823a456d3d6ebbf8d81604dd875a8091f57550be18959cb2a97fc8b25e2f2d87)
error[PYOXIDIZER_BUILD]: reading tar.zst distribution data
   
    Caused by:
        0: reading tar distribution data
        1: unexpected entry in distribution root directory: .DS_Store
      --> ./pyoxidizer.bzl:19:14
       |
    19 |     policy = dist.make_python_packaging_policy()
       |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ resolve_distribution
   
   
error: reading tar.zst distribution data

Caused by:
    0: reading tar distribution data
    1: unexpected entry in distribution root directory: .DS_Store

------------------------------------------------------------------------------------------------------------------------------------------------

If I used pyoxidizer cache-clear, it worked again but as before, on a second try I'd get this error message.

I encountered this problem on an Arm Mac and an x86 Mac. I tried installing Rust and building pyoxidizer from source first, then tried installing pyoxidizer using python3 -m pip install pyoxidizer using my existing install of Python3.10.4.

Any suggestions about what I am doing wrong or how I can do to avoid this?

Thx!


Paul Romer

unread,
Jun 8, 2022, 2:10:26 PM6/8/22
to pyoxidizer-users
On my x86 Mac, I was able to solve the problem I encountered and was therefore was able to run pyoxidizer more than once, after taking the following steps:

1. Delete rust and  the .cargo folder

2. Delete the pyoxidizer folder from ${USER}/Libraries/Caches

3. Delete my install of Python, then reinstall (currently Python 3.10.5)

4. Delete any files in /Downloads from the pyoxidizer project

5. Reinstall pyoxidizer using python3 -m pip install pyoxidizer

I have not tried to reproduce the conditions that caused the error. I'd be happy to try if that would be helpful.

I have not taken these steps on my arm64 Mac so the error persists there. I could also provide more information about the files installed there.
Reply all
Reply to author
Forward
0 new messages