holzschu / Carnets

Carnets is a stand-alone Jupyter notebook server and client. Edit your notebooks on the go, even where there is no network.
https://holzschu.github.io/Carnets_Jupyter/
BSD 3-Clause "New" or "Revised" License
567 stars 34 forks source link

There is no XCFramework found at ... #280

Open deniznet opened 1 year ago

deniznet commented 1 year ago

Hello! After resolve problem with xcfs, I got next errors:

About 1064 errors like: There is no XCFramework found at '/Users/deniz/Documents/Carnets/Carnets/cpython/Python-aux/freetype.xcframework'. and etc about different modules

I tried https://stackoverflow.com/questions/68876949/xcode-no-xcframework-found But there is not effects.

Please, help to find solution!

holzschu commented 1 year ago

Hi, I forgot to update the building instructions. You need to go into the cpython directory and type sh ./downloadAndCompile.sh to compile all the Python-related packages. It will take a while.

deniznet commented 1 year ago

Thank you! I've tried it. Even I cloned git with submodules git clone --recurse-submodules https://github.com/holzschu/Carnets.git

than .get_frameworks and after that sh ./downloadAndCompile.sh so I've got an error:

Updating submodules... Compiling Python 3.9... cp: /Users/deniz/Documents/Carnets/cpython/Python-aux//libfftw3_threads.xcframework/macos-x86_64/libfftw3_threads.a: No such file or directory

after this long pause and window with python error has been opened. Next, a lot of actions like

zip error: Nothing to do! (try: zip -rq XcFrameworks/pythonE-astropy.modeling._projections.xcframework.zip . -i XcFrameworks/pythonE-astropy.modeling._projections.xcframework) pythonE-astropy.table._np_utils

zip error: Nothing to do! (try: zip -rq XcFrameworks/pythonE-astropy.table._np_utils.xcframework.zip . -i XcFrameworks/pythonE-astropy.table._np_utils.xcframework) pythonE-astropy.table._column_mixins

zip error: Nothing to do! (try: zip -rq XcFrameworks/pythonE-astropy.table._column_mixins.xcframework.zip . -i XcFrameworks/pythonE-astropy.table._column_mixins.xcframework) pythonE-astropy.cosmology.scalar_inv_efuncs

What I do wrong?

holzschu commented 1 year ago

You didn't necesarily do anything wrong. It's very hard to make a script to compile Python and all the associated submodules that works for all platforms and all OSX installs.

We would need to look at the log files to find out what went wrong (make_osx.log: compiling Python 3.11 for OSX, make_install_osx.log: compiling all Python packages for OSX, make_ios.log: compiling all Python packages for iOS).

I would start with make_osx.log.

Also: can you check that the cpython submodule is on branch 3.11? It should be, but I'd like to be sure.