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

Build issue #25

Open
oyinkan21 opened this issue Mar 9, 2024 · 9 comments
Open

Build issue #25

oyinkan21 opened this issue Mar 9, 2024 · 9 comments

Comments

@oyinkan21
Copy link

Ran into this error when running "python download_libfaust.py " Anyone seen this before/ know how to fix this?

(base) me@my-MacBook-Pro-2 libfaust % python download_libfaust.py
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 141M 100 141M 0 0 2423k 0 0:00:59 0:00:59 --:--:-- 2551k
Checksumming Protective Master Boot Record (MBR : 0)…
Protective Master Boot Record (MBR :: verified CRC32 $1F22BD08
Checksumming GPT Header (Primary GPT Header : 1)…
GPT Header (Primary GPT Header : 1): verified CRC32 $BDFECAC7
Checksumming GPT Partition Data (Primary GPT Table : 2)…
GPT Partition Data (Primary GPT Tabl: verified CRC32 $5FD1D292
Checksumming (Apple_Free : 3)…
(Apple_Free : 3): verified CRC32 $00000000
Checksumming disk image (Apple_HFS : 4)…
...............................................................................
disk image (Apple_HFS : 4): verified CRC32 $9E5C0C1A
Checksumming (Apple_Free : 5)…
(Apple_Free : 5): verified CRC32 $00000000
Checksumming GPT Partition Data (Backup GPT Table : 6)…
GPT Partition Data (Backup GPT Table: verified CRC32 $5FD1D292
Checksumming GPT Header (Backup GPT Header : 7)…
GPT Header (Backup GPT Header : 7): verified CRC32 $72804D70
verified CRC32 $E9E44F69
/dev/disk9 GUID_partition_scheme
/dev/disk9s1 Apple_HFS /Volumes/Faust-2.70.3
cp: /Volumes/Faust-2.70.3/Faust-2.70.3/: No such file or directory
Traceback (most recent call last):
File "/Users/me/Desktop/TD-Faust/thirdparty/libfaust/download_libfaust.py", line 55, in
main(args.version)
File "/Users/me/Desktop/TD-Faust/thirdparty/libfaust/download_libfaust.py", line 42, in main
install_macos(version)
File "/Users/me/Desktop/TD-Faust/thirdparty/libfaust/download_libfaust.py", line 27, in install_macos
subprocess.run(["cp", "-R", f"/Volumes/Faust-{version}/Faust-{version}/
", dir_path], check=True)
File "/Users/me/anaconda3/lib/python3.11/subprocess.py", line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['cp', '-R', '/Volumes/Faust-2.70.3/Faust-2.70.3/*', 'darwin-arm64/Release']' returned non-zero exit status 1.

@DBraun
Copy link
Owner

DBraun commented Mar 9, 2024

I think python is using Python 2.7, but you'll need Python 3.6 or higher. Do you have that installed? Then it would be python3 download_libfaust.py I pushed a minor update to the script to debug this in case the Python version is too low.

@oyinkan21
Copy link
Author

Thanks! I have Python 3.11 installed so I tried 'python3 download_libfaust.py'. Unfortunately, I'm getting pretty much the same error - I'm getting this now:

(base) me@my-MBP-2 libfaust % python3 download_libfaust.py
File already exists: Faust-2.70.3-arm64.dmg
/dev/disk9 GUID_partition_scheme
/dev/disk9s1 Apple_HFS /Volumes/Faust-2.70.3
cp: /Volumes/Faust-2.70.3/Faust-2.70.3/: No such file or directory
Traceback (most recent call last):
File "/Users/me/Desktop/TD-Faust/thirdparty/libfaust/download_libfaust.py", line 55, in
main(args.version)
File "/Users/me/Desktop/TD-Faust/thirdparty/libfaust/download_libfaust.py", line 42, in main
install_macos(version)
File "/Users/me/Desktop/TD-Faust/thirdparty/libfaust/download_libfaust.py", line 27, in install_macos
subprocess.run(["cp", "-R", f"/Volumes/Faust-{version}/Faust-{version}/
", dir_path], check=True)
File "/Users/me/anaconda3/lib/python3.11/subprocess.py", line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['cp', '-R', '/Volumes/Faust-2.70.3/Faust-2.70.3/*', 'darwin-arm64/Release']' returned non-zero exit status 1.

@DBraun
Copy link
Owner

DBraun commented Mar 9, 2024

Can you go to Finder and unmount the Faust-2.70.3 and then run the script again? Maybe there's an issue if it's already mounted.

@oyinkan21
Copy link
Author

oyinkan21 commented Mar 9, 2024

Thanks! I unmounted it but I'm still getting the exact same error where it says the file already exists and 'no such file or directory'.

@DBraun
Copy link
Owner

DBraun commented Mar 9, 2024

Sorry there are probably some other issues. I'll get back to you soon.

@DBraun
Copy link
Owner

DBraun commented Mar 10, 2024

I pushed some fixes which I checked on my mac. Can you pull and then continue with python3 download_libfaust.py?

@oyinkan21
Copy link
Author

Thanks so much! I did that and I think it worked. Here's what I got:

(base) me@my-MacBook-Pro-2 TD-Faust % git pull
remote: Enumerating objects: 16, done.
remote: Counting objects: 100% (16/16), done.
remote: Compressing objects: 100% (8/8), done.
remote: Total 16 (delta 8), reused 15 (delta 8), pack-reused 0
Unpacking objects: 100% (16/16), 8.26 KiB | 497.00 KiB/s, done.
From https://github.com/DBraun/TD-Faust
a56747e..7778a45 main -> origin/main
Updating a56747e..7778a45
Fast-forward
CMakeLists.txt | 12 ++++++------
README.md | 6 +++---
build_tdfaust.py | 6 +++---
thirdparty/libfaust/download_libfaust.py | 11 +++++++++--
4 files changed, 21 insertions(+), 14 deletions(-)
(base) me@my-MacBook-Pro-2 TD-Faust % cd thirdparty
(base) me@my-MacBook-Pro-2 thirdparty % cd libfaust
(base) me@my-MacBook-Pro-2 libfaust % python3 download_libfaust.py
File already exists: Faust-2.70.3-arm64.dmg
/dev/disk9 GUID_partition_scheme
/dev/disk9s1 Apple_HFS /Volumes/Faust-2.70.3

"disk9" ejected.
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 150M 100 150M 0 0 23.7M 0 0:00:06 0:00:06 --:--:-- 27.8M
Checksumming Protective Master Boot Record (MBR : 0)…
Protective Master Boot Record (MBR :: verified CRC32 $1857DF63
Checksumming GPT Header (Primary GPT Header : 1)…
GPT Header (Primary GPT Header : 1): verified CRC32 $89EE4352
Checksumming GPT Partition Data (Primary GPT Table : 2)…
GPT Partition Data (Primary GPT Tabl: verified CRC32 $91C6B667
Checksumming (Apple_Free : 3)…
(Apple_Free : 3): verified CRC32 $00000000
Checksumming disk image (Apple_HFS : 4)…
.....................................................................................................................
disk image (Apple_HFS : 4): verified CRC32 $3EB72359
Checksumming (Apple_Free : 5)…
(Apple_Free : 5): verified CRC32 $00000000
Checksumming GPT Partition Data (Backup GPT Table : 6)…
GPT Partition Data (Backup GPT Table: verified CRC32 $91C6B667
Checksumming GPT Header (Backup GPT Header : 7)…
GPT Header (Backup GPT Header : 7): verified CRC32 $470D667E
verified CRC32 $02B8657A
/dev/disk6 GUID_partition_scheme
/dev/disk6s1 Apple_HFS /Volumes/Faust-2.70.3
"disk6" ejected.

However when I got to the last step of the build I hit this error:

(base) me@my-MacBook-Pro-2 TD-faust % python build_tdfaust.py --pythonver=3.11
rm: Plugins/TD-Faust.plugin: No such file or directory
Building libsndfile.
CMake Error: The source directory "/Users/me/Desktop/TD-Faust/thirdparty/libsndfile" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
Traceback (most recent call last):
File "/Users/me/Desktop/TD-Faust/build_tdfaust.py", line 75, in
build_macos(args.pythonver, args.touchdesigner_app)
File "/Users/me/Desktop/TD-Faust/build_tdfaust.py", line 49, in build_macos
run_command(["cmake", "-Bbuild", "-DCMAKE_VERBOSE_MAKEFILE=ON", "-DCMAKE_INSTALL_PREFIX=./install"])
File "/Users/me/Desktop/TD-Faust/build_tdfaust.py", line 8, in run_command
subprocess.run(command, shell=shell, check=True)
File "/Users/me/anaconda3/lib/python3.11/subprocess.py", line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['cmake', '-Bbuild', '-DCMAKE_VERBOSE_MAKEFILE=ON', '-DCMAKE_INSTALL_PREFIX=./install']' returned non-zero exit status 1.

I checked that my cmake works fine so not really sure what the issue is. (sorry for all the questions)

@DBraun
Copy link
Owner

DBraun commented Mar 11, 2024

The error is CMake Error: The source directory "/Users/me/Desktop/TD-Faust/thirdparty/libsndfile" does not appear to contain CMakeLists.txt.
You need to run git submodule update --init --recursive in the root of TD-Faust. For the next steps, I also want to make sure CMake is available from the command line, so you may need to run
PATH="/Applications/CMake.app/Contents/bin":"$PATH" before python3 build_tdfaust.py
or choose a more permanent solution like modifying your .zshrc file.

@DBraun
Copy link
Owner

DBraun commented Apr 13, 2024

I've revised the build procedure a little. Can you either try the pre-compiled plugins from the Releases or could you try the build procedure again? The README was updated too.

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