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 issues regarding tempo2 #407

Open
vhaasteren opened this issue Jan 8, 2025 · 3 comments
Open

Build issues regarding tempo2 #407

vhaasteren opened this issue Jan 8, 2025 · 3 comments

Comments

@vhaasteren
Copy link
Member

vhaasteren commented Jan 8, 2025

It seems that the github actions are failing again due to some tempo2 installation issue.

I'm listing it here as an issue that affects some PRs. However, perhaps #390 fixes this

Downloading libstempo-2.5.0.tar.gz (965 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 965.6/965.6 kB 67.3 MB/s eta 0:00:00
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'error'
  error: subprocess-exited-with-error
  
  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [28 lines of output]
      <string>:37: UserWarning: tempo2 does not appear to be in your path.
      Traceback (most recent call last):
        File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
          main()
        File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
        File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
          return hook(config_settings)
        File "/tmp/pip-build-env-m75_dbw5/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 333, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=[])
        File "/tmp/pip-build-env-m75_dbw5/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 303, in _get_build_requires
          self.run_setup()
        File "/tmp/pip-build-env-m75_dbw5/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 319, in run_setup
          exec(code, locals())
        File "<string>", line 60, in <module>
        File "<string>", line 44, in _get_tempo2_install_location
      RuntimeError:
              Cannot find tempo2 install location. Your options are:
      
              1. Use the install_tempo2.sh script without any arguments to install to default location.
              2. Install tempo2 globally in /usr/local
              3. Set the TEMPO2_PREFIX environment variable:
                  For example, if the tempo2 executable lives in /opt/local/bin:
                      TEMPO2_PREFIX=/opt/local pip install libstempo
                      or
                      export TEMPO2_PREFIX=/opt/local
                      pip install libstempo
      
      [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.
Error: Process completed with exit code 1.
@jeremy-baier
Copy link

i am wrestling with this in my enteprise_extensions PR (nanograv/enterprise_extensions#242). please let me know if you have any good ideas.

@vhaasteren
Copy link
Member Author

The new dev branch of enterprise fixes this @jeremy-baier. We are no longer dependent on tempo2.

Perhaps we should do a new release and merge dev into master

@jeremy-baier
Copy link

That would be great !!

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