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

[email protected]_py312.rb:checkin new version of coin3d #571

Closed
wants to merge 1 commit into from

Conversation

ipatch
Copy link
Collaborator

@ipatch ipatch commented Oct 10, 2024

brew style freecad/freecad/[NAME_OF_FORMULA_FILE] 

output from running above command should output something similiar to the below

1 file inspected, no offenses detected
  • Have you ensured your commit passed audit checks, ie.
brew audit freecad/freecad/[NAME_OF_FORMULA_FILE] --online --new-formula

Not all PRs require passing these checks ie. adding [no ci] in the commit message will prevent the CI from running but PRs that change formula files generally should run through the CI checks that way new bottles are built and uploaded to the repository thus not having to build all formula from source but rather installing from a bottle (significantly faster 🐰 ... 🐢)

For more information about this template file learn more

@ipatch ipatch self-assigned this Oct 10, 2024
@ipatch
Copy link
Collaborator Author

ipatch commented Oct 10, 2024

current build error from CI

    File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
    File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
    File "<frozen importlib._bootstrap>", line 1310, in _find_and_load_unlocked
    File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
    File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
    File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
    File "<frozen importlib._bootstrap>", line 1324, in _find_and_load_unlocked
  ModuleNotFoundError: No module named 'setuptools'

@ipatch ipatch force-pushed the coin3d-new-version branch from 14b865d to 8696895 Compare October 10, 2024 19:20
@ipatch
Copy link
Collaborator Author

ipatch commented Oct 10, 2024

current build err with macos arm runner (taken from raw log), seems to be related to soqt

2024-10-10T19:29:31.7189770Z In file included from In file included from /tmp/coin3dA4.0.3_py312--soqt-20241010-14959-a4b9un/soqt/src/Inventor/Qt/SoQtGLWidget.cpp/tmp/coin3dA4.0.3_py312--soqt-20241010-14959-a4b9un/soqt/src/Inventor/Qt/SoQtComponent.cpp::7040:
2024-10-10T19:29:31.7189840Z :
2024-10-10T19:29:31.7190620Z In file included from In file included from /tmp/coin3dA4.0.3_py312--soqt-20241010-14959-a4b9un/soqt/src/qt-config.h/tmp/coin3dA4.0.3_py312--soqt-20241010-14959-a4b9un/soqt/src/qt-config.h::2727:
2024-10-10T19:29:31.7190680Z :
2024-10-10T19:29:31.7191190Z In file included from In file included from /opt/homebrew/lib/QtCore.framework/Headers/qglobal.h/opt/homebrew/lib/QtCore.framework/Headers/qglobal.h::2424:
2024-10-10T19:29:31.7191250Z :
2024-10-10T19:29:31.7191870Z /opt/homebrew/include/QtCore/qtversionchecks.h/opt/homebrew/include/QtCore/qtversionchecks.h::3838::44::  error: error: Qt major version not 6 or 7Qt major version not 6 or 7
2024-10-10T19:29:31.7191880Z 
2024-10-10T19:29:31.7192260Z In file included from /tmp/coin3dA4.0.3_py312--soqt-20241010-14959-a4b9un/soqt/src/Inventor/Qt/SoQt.cpp:222:
2024-10-10T19:29:31.7192590Z In file included from /tmp/coin3dA4.0.3_py312--soqt-20241010-14959-a4b9un/soqt/src/qt-config.h:27:
2024-10-10T19:29:31.7192730Z #  error Qt major version not 6 or 7In file included from 
2024-10-10T19:29:31.7192880Z /opt/homebrew/lib/QtCore.framework/Headers/qglobal.h   ^:
2024-10-10T19:29:31.7192940Z 24:
2024-10-10T19:29:31.7193190Z /opt/homebrew/include/QtCore/qtversionchecks.h:#  error Qt major version not 6 or 7
2024-10-10T19:29:31.7193240Z    ^
2024-10-10T19:29:31.7193330Z 38:4: error: Qt major version not 6 or 7
2024-10-10T19:29:31.7193410Z #  error Qt major version not 6 or 7
2024-10-10T19:29:31.7193470Z    ^

@ipatch ipatch force-pushed the coin3d-new-version branch 3 times, most recently from a4904ce to 3dd372b Compare October 10, 2024 22:10
@ipatch
Copy link
Collaborator Author

ipatch commented Oct 10, 2024

2024-10-10T22:59:55.3267870Z �[31m==>�[0m �[1m�[31mFAILED�[0m�[0m
2024-10-10T22:59:55.3285670Z ##[group]Full test freecad/freecad/[email protected]_py312 output
2024-10-10T22:59:55.3287210Z /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.3.5/bin/bundle clean
2024-10-10T22:59:55.3288310Z �[32m==>�[0m �[1mTesting freecad/freecad/[email protected]_py312�[0m
2024-10-10T22:59:55.3289260Z �[31mError:�[0m freecad/freecad/[email protected]_py312: failed
2024-10-10T22:59:55.3349690Z ##[error]freecad/freecad/[email protected]_py312: failed
2024-10-10T22:59:55.3365880Z An exception occurred within a child process:
2024-10-10T22:59:55.3403860Z   NameError: undefined local variable or method `coin3d_py310_include' for #<Formulary::FormulaNamespaceb97052bcf70825c94c61f8f749604feb296990faea60e40c0b8fb058d6729f40::Coin3dAT403Py312:0x000000011c9ca1e0>
2024-10-10T22:59:55.3405980Z /opt/homebrew/Library/Taps/freecad/homebrew-freecad/Formula/[email protected]_py312.rb:142:in `block in <class:Coin3dAT403Py312>'
2024-10-10T22:59:55.3407290Z /opt/homebrew/Library/Homebrew/formula.rb:2813:in `block (3 levels) in run_test'
2024-10-10T22:59:55.3408160Z /opt/homebrew/Library/Homebrew/extend/kernel.rb:536:in `with_env'
2024-10-10T22:59:55.3409010Z /opt/homebrew/Library/Homebrew/formula.rb:2812:in `block (2 levels) in run_test'
2024-10-10T22:59:55.3410090Z /opt/homebrew/Library/Homebrew/formula.rb:1199:in `with_logging'
2024-10-10T22:59:55.3410900Z /opt/homebrew/Library/Homebrew/formula.rb:2811:in `block in run_test'
2024-10-10T22:59:55.3411670Z /opt/homebrew/Library/Homebrew/mktemp.rb:75:in `block in run'
2024-10-10T22:59:55.3412470Z /opt/homebrew/Library/Homebrew/mktemp.rb:75:in `chdir'
2024-10-10T22:59:55.3413130Z /opt/homebrew/Library/Homebrew/mktemp.rb:75:in `run'
2024-10-10T22:59:55.3413800Z /opt/homebrew/Library/Homebrew/formula.rb:3129:in `mktemp'
2024-10-10T22:59:55.3414580Z /opt/homebrew/Library/Homebrew/formula.rb:2805:in `run_test'
2024-10-10T22:59:55.3415290Z /opt/homebrew/Library/Homebrew/test.rb:48:in `block in <main>'
2024-10-10T22:59:55.3416660Z /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.3.5/lib/ruby/3.3.0/timeout.rb:186:in `block in timeout'
2024-10-10T22:59:55.3418210Z /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.3.5/lib/ruby/3.3.0/timeout.rb:41:in `handle_timeout'
2024-10-10T22:59:55.3419680Z /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.3.5/lib/ruby/3.3.0/timeout.rb:195:in `timeout'
2024-10-10T22:59:55.3420580Z /opt/homebrew/Library/Homebrew/test.rb:52:in `<main>'
2024-10-10T22:59:55.3421610Z ##[endgroup]
2024-10-10T22:59:55.3422100Z �[31mError:�[0m test failed
2024-10-10T22:59:55.3423350Z ##[error]test failed
2024-10-10T22:59:55.3424990Z ##[group]Truncated test freecad/freecad/[email protected]_py312 output
2024-10-10T22:59:55.3433650Z ##[error]/opt/homebrew/Library/Homebrew/test.rb:52:in `<main>'

@ipatch ipatch force-pushed the coin3d-new-version branch 5 times, most recently from 50b8aae to af1b1df Compare October 14, 2024 16:31
@ipatch
Copy link
Collaborator Author

ipatch commented Oct 14, 2024

getting the local build error when running brew install [email protected]_py312 on my local arch linux install,

==> python3.12 -m pip install --verbose --no-deps --no-binary=:all: --ignore-installed --no-compile --prefix=/home/capin/homebrew/Cellar/[email protected]_py312/4.0.3 --no-build-isolation .
Using pip 24.2 from /home/capin/homebrew/opt/[email protected]/lib/python3.12/site-packages/pip (python 3.12)
Processing /opt/tmp/homebrew/coin3dA4.0.3_py312--pivy-20241014-1817780-h5px00/pivy-0.6.9.a0
  Preparing metadata (setup.py): started
  Running command python setup.py egg_info
  /opt/tmp/homebrew/coin3dA4.0.3_py312--pivy-20241014-1817780-h5px00/pivy-0.6.9.a0/setup.py:536: SyntaxWarning: invalid escape sequence '\Q'
    if os.path.isdir(os.getenv("QTDIR") + "\\include\Qt\""):
  /opt/tmp/homebrew/coin3dA4.0.3_py312--pivy-20241014-1817780-h5px00/pivy-0.6.9.a0/setup.py:537: SyntaxWarning: invalid escape sequence '\Q'
    CPP_FLAGS += " -I" + '"' + os.getenv("QTDIR") + "\\include\Qt\""
  /opt/tmp/homebrew/coin3dA4.0.3_py312--pivy-20241014-1817780-h5px00/pivy-0.6.9.a0/setup.py:541: SyntaxWarning: invalid escape sequence '\q'
    CPP_FLAGS += " -I" + '"' + os.getenv("QTDIR") + "\\include\qt\Qt\""
  /opt/tmp/homebrew/coin3dA4.0.3_py312--pivy-20241014-1817780-h5px00/pivy-0.6.9.a0/setup.py:542: SyntaxWarning: invalid escape sequence '\q'
    CPP_FLAGS += " -I" + '"' + os.getenv("QTDIR") + "\\include\qt\""
  warning: no files found matching 'ChangeLog'
  warning: no files found matching 'README'
  warning: no files found matching '*.win32' under directory 'Inventor'
  warning: no files found matching '*.fix' under directory 'Inventor'
  Preparing metadata (setup.py): finished with status 'done'
Building wheels for collected packages: Pivy
  Building wheel for Pivy (setup.py): started
  Running command python setup.py bdist_wheel
  /opt/tmp/homebrew/coin3dA4.0.3_py312--pivy-20241014-1817780-h5px00/pivy-0.6.9.a0/setup.py:536: SyntaxWarning: invalid escape sequence '\Q'
    if os.path.isdir(os.getenv("QTDIR") + "\\include\Qt\""):
  /opt/tmp/homebrew/coin3dA4.0.3_py312--pivy-20241014-1817780-h5px00/pivy-0.6.9.a0/setup.py:537: SyntaxWarning: invalid escape sequence '\Q'
    CPP_FLAGS += " -I" + '"' + os.getenv("QTDIR") + "\\include\Qt\""
  /opt/tmp/homebrew/coin3dA4.0.3_py312--pivy-20241014-1817780-h5px00/pivy-0.6.9.a0/setup.py:541: SyntaxWarning: invalid escape sequence '\q'
    CPP_FLAGS += " -I" + '"' + os.getenv("QTDIR") + "\\include\qt\Qt\""
  /opt/tmp/homebrew/coin3dA4.0.3_py312--pivy-20241014-1817780-h5px00/pivy-0.6.9.a0/setup.py:542: SyntaxWarning: invalid escape sequence '\q'
    CPP_FLAGS += " -I" + '"' + os.getenv("QTDIR") + "\\include\qt\""

                              _____
                          .-'`     '.
                       __/  __       \
                      /  \ /  \       |    ___
                     | /`\| /`\|      | .-'  /^\/^\
                     | \(/| \(/|      |/     |) |)|
                    .-\__/ \__/       |      \_/\_/__..._
            _...---'-.                /   _              '.
           /,      ,             \   '|  `\                \
          | ))     ))           /`|   \    `.       /)  /) |
          | `      `          .'       |     `-._         /
          \                 .'         |     ,_  `--....-'
           `.           __.' ,         |     / /`'''`
             `'-.____.-' /  /,         |    / /
                 `. `-.-` .'  \        /   / |
                   `-.__.'|    \      |   |  |-.
                      _.._|     |     /   |  |  `'.
                .-''``    |     |     |   /  |     `-.
             .'`         /      /     /  |   |        '.
           /`           /      /     |   /   |\         \
          /            |      |      |   |   /\          |
         ||            |      /      |   /     '.        |
         |\            \      |      /   |       '.      /
         \ `.           '.    /      |    \        '---'/
          \  '.           `-./        \    '.          /
           '.  `'.            `-._     '.__  '-._____.'--'''''--.
             '-.  `'--._          `.__     `';----`              \
                `-.     `-.          `.''```                     ;
                   `'-..,_ `-.         `'-.                     /
                          '.  '.           '.                 .'


                              ~~~ HISSSSSSSSSS ~~~
                             Welcome to Pivy 0.6.9!
                   Building Pivy has never been so much fun!


  Platform...linux
  Python version...3.12.7
  Checking for swig...
  '/home/capin/homebrew/opt/[email protected]/bin/swig'
  Checking for SWIG version...
  4.2.1
  Warning: Pivy has only been tested with the following SWIG versions: 3.0.8 3.0.10 3.0.12 4.0.0.
  calling: cmake /opt/tmp/homebrew/coin3dA4.0.3_py312--pivy-20241014-1817780-h5px00/pivy-0.6.9.a0/distutils_cmake
  -- COIN_FOUND: TRUE
  -- COIN_INCLUDE_DIR: /home/capin/homebrew/Cellar/[email protected]_py312/4.0.3/include
  -- COIN_LIB_DIR: /home/capin/homebrew/Cellar/[email protected]_py312/4.0.3/lib
  -- COIN_VERSION: 4.0.3
  -- Configuring incomplete, errors occurred!

  CMake Deprecation Warning at /home/capin/homebrew/Cellar/[email protected]_py312/4.0.3/lib/cmake/Coin-4.0.3/coin-config.cmake:1 (cmake_minimum_required):
    Compatibility with CMake < 3.5 will be removed from a future version of
    CMake.

    Update the VERSION argument <min> value or use a ...<max> suffix to tell
    CMake that the project does not need compatibility with older versions.
  Call Stack (most recent call first):
    CMakeLists.txt:5 (find_package)


  CMake Deprecation Warning at /home/capin/homebrew/Cellar/[email protected]_py312/4.0.3/lib/cmake/Coin-4.0.3/coin-config.cmake:1 (cmake_minimum_required):
    Compatibility with CMake < 3.5 will be removed from a future version of
    CMake.

    Update the VERSION argument <min> value or use a ...<max> suffix to tell
    CMake that the project does not need compatibility with older versions.
  Call Stack (most recent call first):
    /home/capin/homebrew/Cellar/cmake/3.30.5/share/cmake/Modules/CMakeFindDependencyMacro.cmake:76 (find_package)
    /usr/lib/cmake/SoQt-1.6.1/soqt-config.cmake:63 (find_dependency)
    CMakeLists.txt:15 (find_package)


  CMake Error at /home/capin/homebrew/Cellar/cmake/3.30.5/share/cmake/Modules/FindThreads.cmake:66 (message):
    FindThreads only works if either C or CXX language is enabled
  Call Stack (most recent call first):
    /home/capin/homebrew/Cellar/cmake/3.30.5/share/cmake/Modules/CMakeFindDependencyMacro.cmake:76 (find_package)
    /home/capin/homebrew/Cellar/qt/6.7.2_1/lib/cmake/Qt6/QtPublicDependencyHelpers.cmake:36 (find_dependency)
    /home/capin/homebrew/lib/cmake/Qt6/Qt6Dependencies.cmake:27 (_qt_internal_find_third_party_dependencies)
    /home/capin/homebrew/lib/cmake/Qt6/Qt6Config.cmake:124 (include)
    /home/capin/homebrew/Cellar/cmake/3.30.5/share/cmake/Modules/CMakeFindDependencyMacro.cmake:76 (find_package)
    /home/capin/homebrew/lib/cmake/Qt6Core/Qt6CoreDependencies.cmake:20 (find_dependency)
    /home/capin/homebrew/lib/cmake/Qt6Core/Qt6CoreConfig.cmake:45 (include)
    /home/capin/homebrew/Cellar/cmake/3.30.5/share/cmake/Modules/CMakeFindDependencyMacro.cmake:76 (find_package)
    /usr/lib/cmake/SoQt-1.6.1/soqt-config.cmake:70 (find_dependency)
    CMakeLists.txt:15 (find_package)


  CMake Warning at /home/capin/homebrew/Cellar/cmake/3.30.5/share/cmake/Modules/CMakeFindDependencyMacro.cmake:76 (find_package):
    Found package configuration file:

      /home/capin/homebrew/lib/cmake/Qt6/Qt6Config.cmake

    but it set Qt6_FOUND to FALSE so package "Qt6" is considered to be NOT
    FOUND.
  Call Stack (most recent call first):
    /home/capin/homebrew/lib/cmake/Qt6Core/Qt6CoreDependencies.cmake:20 (find_dependency)
    /home/capin/homebrew/lib/cmake/Qt6Core/Qt6CoreConfig.cmake:45 (include)
    /home/capin/homebrew/Cellar/cmake/3.30.5/share/cmake/Modules/CMakeFindDependencyMacro.cmake:76 (find_package)
    /usr/lib/cmake/SoQt-1.6.1/soqt-config.cmake:70 (find_dependency)
    CMakeLists.txt:15 (find_package)


  CMake Warning at /home/capin/homebrew/Cellar/cmake/3.30.5/share/cmake/Modules/CMakeFindDependencyMacro.cmake:76 (find_package):
    Found package configuration file:

      /home/capin/homebrew/lib/cmake/Qt6Core/Qt6CoreConfig.cmake

    but it set Qt6Core_FOUND to FALSE so package "Qt6Core" is considered to be
    NOT FOUND.
  Call Stack (most recent call first):
    /usr/lib/cmake/SoQt-1.6.1/soqt-config.cmake:70 (find_dependency)
    CMakeLists.txt:15 (find_package)




  checking for COIN via cmake

  checking for SOQT via cmake

  disable soqt, because cmake couldn't find it
  Traceback (most recent call last):
    File "<string>", line 2, in <module>
    File "<pip-setuptools-caller>", line 34, in <module>
    File "/opt/tmp/homebrew/coin3dA4.0.3_py312--pivy-20241014-1817780-h5px00/pivy-0.6.9.a0/setup.py", line 669, in <module>
      setup(name="Pivy",
    File "/home/capin/homebrew/opt/[email protected]/lib/python3.12/site-packages/setuptools/_distutils/core.py", line 183, in setup
      return run_commands(dist)
             ^^^^^^^^^^^^^^^^^^
    File "/home/capin/homebrew/opt/[email protected]/lib/python3.12/site-packages/setuptools/_distutils/core.py", line 199, in run_commands
      dist.run_commands()
    File "/home/capin/homebrew/opt/[email protected]/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 954, in run_commands
      self.run_command(cmd)
    File "/home/capin/homebrew/opt/[email protected]/lib/python3.12/site-packages/setuptools/dist.py", line 950, in run_command
      super().run_command(command)
    File "/home/capin/homebrew/opt/[email protected]/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 973, in run_command
      cmd_obj.run()
    File "/home/capin/homebrew/opt/[email protected]/lib/python3.12/site-packages/setuptools/command/bdist_wheel.py", line 398, in run
      self.run_command("build")
    File "/home/capin/homebrew/opt/[email protected]/lib/python3.12/site-packages/setuptools/_distutils/cmd.py", line 316, in run_command
      self.distribution.run_command(command)
    File "/home/capin/homebrew/opt/[email protected]/lib/python3.12/site-packages/setuptools/dist.py", line 950, in run_command
      super().run_command(command)
    File "/home/capin/homebrew/opt/[email protected]/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 973, in run_command
      cmd_obj.run()
    File "/opt/tmp/homebrew/coin3dA4.0.3_py312--pivy-20241014-1817780-h5px00/pivy-0.6.9.a0/setup.py", line 607, in run
      self.pivy_configure()
    File "/opt/tmp/homebrew/coin3dA4.0.3_py312--pivy-20241014-1817780-h5px00/pivy-0.6.9.a0/setup.py", line 463, in pivy_configure
      self.check_with_cmake()
    File "/opt/tmp/homebrew/coin3dA4.0.3_py312--pivy-20241014-1817780-h5px00/pivy-0.6.9.a0/setup.py", line 248, in check_with_cmake
      raise(RuntimeError('coin was not found, but you need coin to build pivy'))
  RuntimeError: coin was not found, but you need coin to build pivy
  error: subprocess-exited-with-error

  × python setup.py bdist_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.
  full command: /home/capin/homebrew/opt/[email protected]/bin/python3.12 -u -c '
  exec(compile('"'"''"'"''"'"'
  # This is <pip-setuptools-caller> -- a caller that pip uses to run setup.py
  #
  # - It imports setuptools before invoking setup.py, to enable projects that directly
  #   import from `distutils.core` to work with newer packaging standards.
  # - It provides a clear error message when setuptools is not installed.
  # - It sets `sys.argv[0]` to the underlying `setup.py`, when invoking `setup.py` so
  #   setuptools doesn'"'"'t think the script is `-c`. This avoids the following warning:
  #     manifest_maker: standard file '"'"'-c'"'"' not found".
  # - It generates a shim setup.py, for handling setup.cfg-only projects.
  import os, sys, tokenize

  try:
      import setuptools
  except ImportError as error:
      print(
          "ERROR: Can not execute `setup.py` since setuptools is not available in "
          "the build environment.",
          file=sys.stderr,
      )
      sys.exit(1)

  __file__ = %r
  sys.argv[0] = __file__

  if os.path.exists(__file__):
      filename = __file__
      with tokenize.open(__file__) as f:
          setup_py_code = f.read()
  else:
      filename = "<auto-generated setuptools caller>"
      setup_py_code = "from setuptools import setup; setup()"

  exec(compile(setup_py_code, filename, "exec"))
  '"'"''"'"''"'"' % ('"'"'/opt/tmp/homebrew/coin3dA4.0.3_py312--pivy-20241014-1817780-h5px00/pivy-0.6.9.a0/setup.py'"'"',), "<pip-setuptools-caller>", "exec"))' bdist_wheel -d /opt/tmp/homebrew/pip-wheel-zidsnxdh
  cwd: /opt/tmp/homebrew/coin3dA4.0.3_py312--pivy-20241014-1817780-h5px00/pivy-0.6.9.a0/
  Building wheel for Pivy (setup.py): finished with status 'error'
  ERROR: Failed building wheel for Pivy
  Running setup.py clean for Pivy
  Running command python setup.py clean
  /opt/tmp/homebrew/coin3dA4.0.3_py312--pivy-20241014-1817780-h5px00/pivy-0.6.9.a0/setup.py:536: SyntaxWarning: invalid escape sequence '\Q'
    if os.path.isdir(os.getenv("QTDIR") + "\\include\Qt\""):
  /opt/tmp/homebrew/coin3dA4.0.3_py312--pivy-20241014-1817780-h5px00/pivy-0.6.9.a0/setup.py:537: SyntaxWarning: invalid escape sequence '\Q'
    CPP_FLAGS += " -I" + '"' + os.getenv("QTDIR") + "\\include\Qt\""
  /opt/tmp/homebrew/coin3dA4.0.3_py312--pivy-20241014-1817780-h5px00/pivy-0.6.9.a0/setup.py:541: SyntaxWarning: invalid escape sequence '\q'
    CPP_FLAGS += " -I" + '"' + os.getenv("QTDIR") + "\\include\qt\Qt\""
  /opt/tmp/homebrew/coin3dA4.0.3_py312--pivy-20241014-1817780-h5px00/pivy-0.6.9.a0/setup.py:542: SyntaxWarning: invalid escape sequence '\q'
    CPP_FLAGS += " -I" + '"' + os.getenv("QTDIR") + "\\include\qt\""
  Cleaning headers:.
  'build/lib' does not exist -- can't clean it
  'build/bdist.linux-x86_64' does not exist -- can't clean it
  'build/scripts-3.12' does not exist -- can't clean it
Failed to build Pivy
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (Pivy)

and looking at the dep order, it looks pivy can use soqt as optional dep, so probably attempt to build soqt before pivy 🧐

@ipatch ipatch force-pushed the coin3d-new-version branch from 26b4267 to 391a856 Compare October 14, 2024 18:37
@ipatch
Copy link
Collaborator Author

ipatch commented Oct 15, 2024

am able to build and install locally (arch linux) but am running into the below error,

╰─λ brew test [email protected]_py312 -v
/home/capin/homebrew/Library/Homebrew/vendor/portable-ruby/3.3.5/bin/bundle clean
==> Testing freecad/freecad/[email protected]_py312
==> /home/capin/homebrew/bin/gcc-14 test.cpp -L/home/capin/homebrew/Cellar/[email protected]_py312/4.0.3/lib -lCoin -L/home/capin/homebrew/opt/mesa/lib -lGL -o test -I/home/capin/homebrew/opt/[email protected]_py312/include
==> ./test
==> /home/capin/homebrew/opt/[email protected]/bin/python3.12 -c import shiboken2
from pivy.sogui import SoGui
assert SoGui.init("test") is not None
Authorization required, but no authorization protocol specified

qt.qpa.xcb: could not connect to display :0
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-glx, webgl, xcb.

Error: freecad/freecad/[email protected]_py312: failed
An exception occurred within a child process:
  BuildError: Failed executing: /home/capin/homebrew/opt/[email protected]/bin/python3.12 -c import\ shiboken2
from\ pivy.sogui\ import\ SoGui
assert\ SoGui.init("test")\ is\ not\ None
/home/capin/homebrew/Library/Homebrew/formula.rb:3078:in `block in system'
/home/capin/homebrew/Library/Homebrew/formula.rb:3014:in `open'
/home/capin/homebrew/Library/Homebrew/formula.rb:3014:in `system'
/home/capin/homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11600/lib/types/private/methods/call_validation.rb:167:in `bind_call'
/home/capin/homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11600/lib/types/private/methods/call_validation.rb:167:in `validate_call_skip_block_type'
/home/capin/homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11600/lib/types/private/methods/call_validation.rb:109:in `block in create_validator_slow_skip_block_type'
/home/capin/homebrew/Library/Taps/freecad/homebrew-freecad/Formula/[email protected]_py312.rb:163:in `block in <class:Coin3dAT403Py312>'
/home/capin/homebrew/Library/Homebrew/formula.rb:2813:in `block (3 levels) in run_test'
/home/capin/homebrew/Library/Homebrew/extend/kernel.rb:536:in `with_env'
/home/capin/homebrew/Library/Homebrew/formula.rb:2812:in `block (2 levels) in run_test'
/home/capin/homebrew/Library/Homebrew/formula.rb:1199:in `with_logging'
/home/capin/homebrew/Library/Homebrew/formula.rb:2811:in `block in run_test'
/home/capin/homebrew/Library/Homebrew/mktemp.rb:75:in `block in run'
/home/capin/homebrew/Library/Homebrew/mktemp.rb:75:in `chdir'
/home/capin/homebrew/Library/Homebrew/mktemp.rb:75:in `run'
/home/capin/homebrew/Library/Homebrew/formula.rb:3129:in `mktemp'
/home/capin/homebrew/Library/Homebrew/formula.rb:2805:in `run_test'
/home/capin/homebrew/Library/Homebrew/test.rb:48:in `block in <main>'
/home/capin/homebrew/Library/Homebrew/vendor/portable-ruby/3.3.5/lib/ruby/3.3.0/timeout.rb:186:in `block in timeout'
/home/capin/homebrew/Library/Homebrew/vendor/portable-ruby/3.3.5/lib/ruby/3.3.0/timeout.rb:41:in `handle_timeout'
/home/capin/homebrew/Library/Homebrew/vendor/portable-ruby/3.3.5/lib/ruby/3.3.0/timeout.rb:195:in `timeout'
/home/capin/homebrew/Library/Homebrew/test.rb:52:in `<main>'

@ipatch ipatch force-pushed the coin3d-new-version branch from 391a856 to caa9c97 Compare October 15, 2024 17:43
@ipatch
Copy link
Collaborator Author

ipatch commented Oct 15, 2024

current build error with macos ci arm runner,

2024-10-15T17:51:16.6592250Z Failed to build Pivy
2024-10-15T17:51:16.6592530Z ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (Pivy)
2024-10-15T17:51:16.6592620Z 

seems like it could be related to separation of the python-setuptools into it's own package / formula file. 🧐


2024-10-15T17:51:16.6478560Z /usr/bin/env tar --extract --no-same-owner --file /Users/runner/Library/Caches/Homebrew/downloads/345e05339ae483fefd7433f6496d2620fbf3ac2668f186fdfa2a88c47074e601--pivy-0.6.9.a0.tar.gz --directory /private/tmp/homebrew-unpack20241015-12755-ixx9t6
2024-10-15T17:51:16.6479110Z /usr/bin/env cp -al /private/tmp/homebrew-unpack20241015-12755-ixx9t6/pivy-0.6.9.a0 /private/tmp/coin3dA4.0.3_py312--pivy-20241015-12755-onvdyy
2024-10-15T17:51:16.6479240Z ----------------------------------------------------
2024-10-15T17:51:16.6480900Z CMAKE_PREFIX_PATH=/opt/homebrew/opt/[email protected]:/opt/homebrew/opt/icu4c@75:/opt/homebrew/opt/[email protected]_py312:/opt/homebrew/opt/readline:/opt/homebrew/opt/sqlite:/opt/homebrew/opt/llvm:/opt/homebrew/opt/qt@5:/opt/homebrew/opt/sphinx-doc:/opt/homebrew/opt/[email protected]_py312:/opt/homebrew/opt/llvm@15:/opt/homebrew/opt/[email protected]_py312:/opt/homebrew:/opt/homebrew/Cellar/[email protected]_py312/4.0.3
2024-10-15T17:51:16.6481000Z CMAKE_PREFIX_PATH Datatype: String
2024-10-15T17:51:16.6481210Z ----------------------------------------------------
2024-10-15T17:51:16.6481880Z �[34m==>�[0m �[1mpython3.12 -m pip install --verbose --no-deps --no-binary=:all: --ignore-installed --no-compile --prefix=/opt/homebrew/Cellar/[email protected]_py312/4.0.3 --no-build-isolation .�[0m
2024-10-15T17:51:16.6482240Z Using pip 24.2 from /opt/homebrew/lib/python3.12/site-packages/pip (python 3.12)
2024-10-15T17:51:16.6482600Z Processing /private/tmp/coin3dA4.0.3_py312--pivy-20241015-12755-onvdyy/pivy-0.6.9.a0
2024-10-15T17:51:16.6482700Z   Preparing metadata (setup.py): started
2024-10-15T17:51:16.6482810Z   Running command python setup.py egg_info
2024-10-15T18:35:56.8328810Z   try:
2024-10-15T18:35:56.8329960Z       import setuptools
2024-10-15T18:35:56.8330430Z   except ImportError as error:
2024-10-15T18:35:56.8330820Z       print(
2024-10-15T18:35:56.8331170Z           "ERROR: Can not execute `setup.py` since setuptools is not available in "
2024-10-15T18:35:56.8331270Z           "the build environment.",
2024-10-15T18:35:56.8331360Z           file=sys.stderr,
2024-10-15T18:35:56.8331430Z       )
2024-10-15T18:35:56.8331510Z       sys.exit(1)
2024-10-15T18:35:56.8331570Z   
2024-10-15T18:35:56.8331650Z   __file__ = %r
2024-10-15T18:35:56.8331720Z   sys.argv[0] = __file__
2024-10-15T18:35:56.8331780Z   
2024-10-15T18:35:56.8331890Z   if os.path.exists(__file__):
2024-10-15T18:35:56.8331960Z       filename = __file__
2024-10-15T18:35:56.8332050Z       with tokenize.open(__file__) as f:
2024-10-15T18:35:56.8332120Z           setup_py_code = f.read()
2024-10-15T18:35:56.8332180Z   else:
2024-10-15T18:35:56.8332400Z       filename = "<auto-generated setuptools caller>"
2024-10-15T18:35:56.8332550Z       setup_py_code = "from setuptools import setup; setup()"
2024-10-15T18:35:56.8332630Z   
2024-10-15T18:35:56.8332770Z   exec(compile(setup_py_code, filename, "exec"))
2024-10-15T18:35:56.8333470Z   '"'"''"'"''"'"' % ('"'"'/private/tmp/coin3dA4.0.3_py312--pivy-20241015-12746-vp459a/pivy-0.6.9.a0/setup.py'"'"',), "<pip-setuptools-caller>", "exec"))' bdist_wheel -d /private/tmp/pip-wheel-qv14iql1
2024-10-15T18:35:56.8333770Z   cwd: /private/tmp/coin3dA4.0.3_py312--pivy-20241015-12746-vp459a/pivy-0.6.9.a0/
2024-10-15T18:35:56.8333990Z   Building wheel for Pivy (setup.py): finished with status 'error'
2024-10-15T18:35:56.8334090Z   ERROR: Failed building wheel for Pivy
2024-10-15T18:35:56.8334170Z   Running setup.py clean for Pivy
2024-10-15T18:35:56.8334260Z   Running command python setup.py clean

it seems using the upstream homebrew/homebrew-core implementation of setting up pivy using the below lines possibly resolves the above build issues.

# Allow setup.py to build with Qt6 as we saw some issues using CMake directly on Intel
inreplace "distutils_cmake/CMakeLists.txt", " NONE)", ")" # allow languages
ENV.append "CXXFLAGS", "-std=c++17"

@ipatch ipatch force-pushed the coin3d-new-version branch from caa9c97 to d2fde4c Compare October 15, 2024 18:25
@ipatch ipatch force-pushed the coin3d-new-version branch from d2fde4c to ccf0aa4 Compare October 15, 2024 18:51
@ipatch ipatch added the pr-pull label Oct 15, 2024
github-actions bot pushed a commit that referenced this pull request Oct 15, 2024
@ipatch ipatch closed this Oct 15, 2024
@ipatch ipatch deleted the coin3d-new-version branch October 15, 2024 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant