Avid Pro Audio Community

Avid Pro Audio Community

How to Join & Post  •  Community Terms of Use  •  Help Us Help You

Knowledge Base Search  •  Community Search  •  Learn & Support


Avid Home Page

Go Back   Avid Pro Audio Community > Dev > Pro Tools Scripting SDK Toolkit
Register FAQ Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 10-17-2023, 03:38 AM
crustn crustn is offline
Member
 
Join Date: Jan 2009
Posts: 93
Default Error while building SDK client wrapper

Hi,

I'm unable to build PTSL client wrapper and PTSL CMD example application. The Python script stops at PyYAML.

I'm on mac 13.6 (Ventura), Python 3.12.0 and Xcode 15.0


Here ist the Terminal Output:
Code:
Collecting PyYAML==6.0 (from -r requirements.txt (line 20))
  Using cached PyYAML-6.0.tar.gz (124 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error
  
  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [54 lines of output]
      running egg_info
      writing lib/PyYAML.egg-info/PKG-INFO
      writing dependency_links to lib/PyYAML.egg-info/dependency_links.txt
      writing top-level names to lib/PyYAML.egg-info/top_level.txt
      Traceback (most recent call last):
        File "/Users/stefan/Desktop/PTSL_SDK_CPP.23.9.1.0.734915/Config/.venv/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
          main()
        File "/Users/stefan/Desktop/PTSL_SDK_CPP.23.9.1.0.734915/Config/.venv/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/Users/stefan/Desktop/PTSL_SDK_CPP.23.9.1.0.734915/Config/.venv/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
          return hook(config_settings)
                 ^^^^^^^^^^^^^^^^^^^^^
        File "/private/var/folders/q0/f0q3yzjx175cj7tpbs4zqrt40000gn/T/pip-build-env-p3esp5hv/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 355, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=['wheel'])
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/private/var/folders/q0/f0q3yzjx175cj7tpbs4zqrt40000gn/T/pip-build-env-p3esp5hv/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 325, in _get_build_requires
          self.run_setup()
        File "/private/var/folders/q0/f0q3yzjx175cj7tpbs4zqrt40000gn/T/pip-build-env-p3esp5hv/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 341, in run_setup
          exec(code, locals())
        File "<string>", line 288, in <module>
        File "/private/var/folders/q0/f0q3yzjx175cj7tpbs4zqrt40000gn/T/pip-build-env-p3esp5hv/overlay/lib/python3.12/site-packages/setuptools/__init__.py", line 103, in setup
          return distutils.core.setup(**attrs)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/private/var/folders/q0/f0q3yzjx175cj7tpbs4zqrt40000gn/T/pip-build-env-p3esp5hv/overlay/lib/python3.12/site-packages/setuptools/_distutils/core.py", line 185, in setup
          return run_commands(dist)
                 ^^^^^^^^^^^^^^^^^^
        File "/private/var/folders/q0/f0q3yzjx175cj7tpbs4zqrt40000gn/T/pip-build-env-p3esp5hv/overlay/lib/python3.12/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
          dist.run_commands()
        File "/private/var/folders/q0/f0q3yzjx175cj7tpbs4zqrt40000gn/T/pip-build-env-p3esp5hv/overlay/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
          self.run_command(cmd)
        File "/private/var/folders/q0/f0q3yzjx175cj7tpbs4zqrt40000gn/T/pip-build-env-p3esp5hv/overlay/lib/python3.12/site-packages/setuptools/dist.py", line 989, in run_command
          super().run_command(command)
        File "/private/var/folders/q0/f0q3yzjx175cj7tpbs4zqrt40000gn/T/pip-build-env-p3esp5hv/overlay/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
          cmd_obj.run()
        File "/private/var/folders/q0/f0q3yzjx175cj7tpbs4zqrt40000gn/T/pip-build-env-p3esp5hv/overlay/lib/python3.12/site-packages/setuptools/command/egg_info.py", line 318, in run
          self.find_sources()
        File "/private/var/folders/q0/f0q3yzjx175cj7tpbs4zqrt40000gn/T/pip-build-env-p3esp5hv/overlay/lib/python3.12/site-packages/setuptools/command/egg_info.py", line 326, in find_sources
          mm.run()
        File "/private/var/folders/q0/f0q3yzjx175cj7tpbs4zqrt40000gn/T/pip-build-env-p3esp5hv/overlay/lib/python3.12/site-packages/setuptools/command/egg_info.py", line 548, in run
          self.add_defaults()
        File "/private/var/folders/q0/f0q3yzjx175cj7tpbs4zqrt40000gn/T/pip-build-env-p3esp5hv/overlay/lib/python3.12/site-packages/setuptools/command/egg_info.py", line 586, in add_defaults
          sdist.add_defaults(self)
        File "/private/var/folders/q0/f0q3yzjx175cj7tpbs4zqrt40000gn/T/pip-build-env-p3esp5hv/overlay/lib/python3.12/site-packages/setuptools/command/sdist.py", line 113, in add_defaults
          super().add_defaults()
        File "/private/var/folders/q0/f0q3yzjx175cj7tpbs4zqrt40000gn/T/pip-build-env-p3esp5hv/overlay/lib/python3.12/site-packages/setuptools/_distutils/command/sdist.py", line 251, in add_defaults
          self._add_defaults_ext()
        File "/private/var/folders/q0/f0q3yzjx175cj7tpbs4zqrt40000gn/T/pip-build-env-p3esp5hv/overlay/lib/python3.12/site-packages/setuptools/_distutils/command/sdist.py", line 336, in _add_defaults_ext
          self.filelist.extend(build_ext.get_source_files())
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "<string>", line 204, in get_source_files
        File "/private/var/folders/q0/f0q3yzjx175cj7tpbs4zqrt40000gn/T/pip-build-env-p3esp5hv/overlay/lib/python3.12/site-packages/setuptools/_distutils/cmd.py", line 107, in __getattr__
          raise AttributeError(attr)
      AttributeError: cython_sources
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
Traceback (most recent call last):
  File "/Users/stefan/Desktop/PTSL_SDK_CPP.23.9.1.0.734915/setup/build_cpp_ptsl_sdk.py", line 111, in <module>
    call_script(config_dir, source_dir, config, is_dev_mode_on, arch, os_version, bag_config_dir)
  File "/Users/stefan/Desktop/PTSL_SDK_CPP.23.9.1.0.734915/setup/build_cpp_ptsl_sdk.py", line 31, in call_script
    subprocess.run(cmd, cwd=cwd, shell=True, check=True)
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/subprocess.py", line 571, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command 'source .venv/bin/activate && pip install -r requirements.txt && python "/Users/stefan/Desktop/PTSL_SDK_CPP.23.9.1.0.734915/Config/ptsl_build_script.py" --source_dir "/Users/stefan/Desktop/PTSL_SDK_CPP.23.9.1.0.734915/examples/ptslcmd" --config Debug ' returned non-zero exit status 1.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/stefan/Desktop/PTSL_SDK_CPP.23.9.1.0.734915/setup/build_cpp_ptsl_sdk.py", line 113, in <module>
    shutil.rmtree(venv_path)
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/shutil.py", line 769, in rmtree
    _rmtree_safe_fd(fd, path, onexc)
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/shutil.py", line 674, in _rmtree_safe_fd
    _rmtree_safe_fd(dirfd, fullname, onexc)
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/shutil.py", line 674, in _rmtree_safe_fd
    _rmtree_safe_fd(dirfd, fullname, onexc)
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/shutil.py", line 680, in _rmtree_safe_fd
    onexc(os.rmdir, fullname, err)
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/shutil.py", line 678, in _rmtree_safe_fd
    os.rmdir(entry.name, dir_fd=topfd)
OSError: [Errno 66] Directory not empty: 'site-packages'


Any ideas?

Thanks,
Stefan
Reply With Quote
  #2  
Old 10-18-2023, 01:37 AM
crustn crustn is offline
Member
 
Join Date: Jan 2009
Posts: 93
Default Re: Error while building SDK client wrapper

an update:
fortunately, I had a Parallels VM with Monterey, Xcode 13 and Python 3.9 and I was able to compile the library there. It seems to be a problem with Xcode 15 and/or Python 3.12.
Reply With Quote
  #3  
Old 01-18-2024, 04:41 AM
Artem Shevchenko's Avatar
Artem Shevchenko Artem Shevchenko is offline
Avid
 
Join Date: Dec 2022
Location: Kyiv, Ukraine 🇺🇦
Posts: 12
Default Re: Error while building SDK client wrapper

Hi crustn,

We are pleased to hear that you have discovered a workaround. Have you had the opportunity to investigate this issue in the latest release (end of 2023)? It was addressed in that version. Please try to check.

Regards,
Artem
Reply With Quote
  #4  
Old 01-24-2024, 08:38 AM
Ben Wood Ben Wood is offline
Member
 
Join Date: Aug 2018
Location: Bristol
Posts: 39
Default Re: Error while building SDK client wrapper

I'm having the same issue building the client wrapper

Running iMac2020, Monterey 12.7.2, PTSL_SDK_CPP.2023.12.2.0.813759, Xcode 14.2, Python 3.12.1.
I tried rolling back to Python 3.11 and got further with Conan loading.

Now I get
ERROR: PtslClient/None: 'settings.compiler' value not defined

TIA
Reply With Quote
  #5  
Old 01-31-2024, 01:36 AM
Dmytro L's Avatar
Dmytro L Dmytro L is offline
Avid
 
Join Date: Dec 2022
Location: Ukraine
Posts: 41
Default Re: Error while building SDK client wrapper

Hi crustn, Ben,

Please see a reply with the suggested solution from Kenley in the other thread https://duc.avid.com/showthread.php?t=427322
Hope it helps you both.

Thanks
Reply With Quote
  #6  
Old 02-05-2024, 10:12 AM
epm epm is offline
Member
 
Join Date: Nov 2006
Location: New York
Posts: 150
Default Re: Error while building SDK client wrapper

Quote:
Originally Posted by Ben Wood View Post
I'm having the same issue building the client wrapper

Running iMac2020, Monterey 12.7.2, PTSL_SDK_CPP.2023.12.2.0.813759, Xcode 14.2, Python 3.12.1.
I tried rolling back to Python 3.11 and got further with Conan loading.

Now I get
ERROR: PtslClient/None: 'settings.compiler' value not defined

TIA
have followed this, and the linked thread in the post above, but i'm still getting the same error as you. Any insight on how this might be solved? Similar system configuration here.

Mac Mini 2018, Monterey 12.7.2, Xcode 14.2, Python 3.12 PTSL 2023.12
__________________
-Evan
Reply With Quote
  #7  
Old 02-12-2024, 09:31 AM
kenley_m's Avatar
kenley_m kenley_m is offline
Avid
 
Join Date: Jan 2023
Location: N/A
Posts: 16
Default Re: Error while building SDK client wrapper

Hi epm,

I wanted to let you know Ben has confirmed this issue is resolved in the other thread. The final resolution was to remove the default conan profile ~/.conan/profiles/default and run the build again once you've verified that Xcode command line tools are installed and selected. Here's a post with some more detail: https://duc.avid.com/showthread.php?...14#post2693914
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
compile PTSL client wrapper Audio Editor Pro Tools Scripting SDK Toolkit 4 10-26-2023 03:21 PM
Cannot compile the PTSL C++ Client Wrapper on Windows 11 Loic Pro Tools Scripting SDK Toolkit 1 04-05-2023 02:19 PM
How to uninstall PT12? Quicktime Wrapper error QuacksMeUp Pro Tools 12 4 11-01-2015 04:57 PM
building new PC...windows install error jonathan jetter Pro Tools TDM Systems (Win) 5 07-26-2008 05:31 AM
Bounce Error! Please help, I have a client waitin Hollens Studios 003, Mbox 2, Digi 002, original Mbox, Digi 001 (Mac) 3 01-19-2006 01:27 PM


All times are GMT -7. The time now is 07:57 AM.


Powered by: vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Limited. Forum Hosted By: URLJet.com