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

Vpython example #184

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
Open

Vpython example #184

wants to merge 15 commits into from

Conversation

michael-christen
Copy link
Owner

Having some issues getting this bazelified :(

± bazel run examples/vpython/basic_pendulum                                                                                                                                                                     3s
INFO: Invocation ID: b3d5cf0b-2978-4fff-90a7-39d3e1b05f4a
INFO: Streaming build results to: https://app.buildbuddy.io/invocation/b3d5cf0b-2978-4fff-90a7-39d3e1b05f4a
DEBUG: /home/mchristen/.local/tmp/bazel/_bazel_mchristen/eabc9c58e7a2790b61df5bad4df6e1e8/external/rules_python~/python/private/python.bzl:46:10: WARNING: Ignoring toolchain 'python_3_11' from module 'pigweed': Toolchain 'python_3_11' from module 'mchristen' already registered Python version 3.11 and has precedence
DEBUG: /home/mchristen/.local/tmp/bazel/_bazel_mchristen/eabc9c58e7a2790b61df5bad4df6e1e8/external/rules_python~/python/private/python.bzl:46:10: WARNING: Ignoring toolchain 'python_3_11' from module 'rules_fuzzing': Toolchain 'python_3_11' from module 'mchristen' already registered Python version 3.11 and has precedence
DEBUG: /home/mchristen/.local/tmp/bazel/_bazel_mchristen/eabc9c58e7a2790b61df5bad4df6e1e8/external/rules_python~/python/private/python.bzl:46:10: WARNING: Ignoring toolchain 'python_3_12' from module 'rules_fuzzing': Toolchain 'python_3_12' from module 'rules_mypy' already registered Python version 3.12 and has precedence
INFO: Analyzed target //examples/vpython:basic_pendulum (0 packages loaded, 0 targets configured).
INFO: Found 1 target...
Target //examples/vpython:basic_pendulum up-to-date:
  bazel-bin/examples/vpython/basic_pendulum
  bazel-bin/examples/vpython/basic_pendulum.venv.pth
Aspect //tools:aspects.bzl%mypy_aspect of //examples/vpython:basic_pendulum up-to-date:
  bazel-bin/examples/vpython/basic_pendulum.mypy_stdout
  bazel-bin/examples/vpython/basic_pendulum.mypy_cache
INFO: Elapsed time: 0.465s, Critical Path: 0.00s
INFO: 1 process: 1 internal.
INFO: Build completed successfully, 1 total action
INFO: Running command line: bazel-bin/examples/vpython/basic_pendulum
INFO: Streaming build results to: https://app.buildbuddy.io/invocation/b3d5cf0b-2978-4fff-90a7-39d3e1b05f4a
Traceback (most recent call last):
  File "/home/mchristen/.local/tmp/bazel/_bazel_mchristen/eabc9c58e7a2790b61df5bad4df6e1e8/execroot/_main/bazel-out/k8-fastbuild/bin/examples/vpython/basic_pendulum.runfiles/_main/examples/vpython/basic_pendulum.py", line 4, in <module>
    import vpython
  File "/home/mchristen/.local/tmp/bazel/_bazel_mchristen/eabc9c58e7a2790b61df5bad4df6e1e8/execroot/_main/bazel-out/k8-fastbuild/bin/examples/vpython/basic_pendulum.runfiles/.basic_pendulum.venv/lib/python3.11/site-packages/vpython/__init__.py", line 1, in <module>
    from pkg_resources import get_distribution, DistributionNotFound
  File "/home/mchristen/.local/tmp/bazel/_bazel_mchristen/eabc9c58e7a2790b61df5bad4df6e1e8/execroot/_main/bazel-out/k8-fastbuild/bin/examples/vpython/basic_pendulum.runfiles/.basic_pendulum.venv/lib/python3.11/site-packages/pkg_resources/__init__.py", line 90, in <module>
    from jaraco.text import drop_comment, join_continuation, yield_lines
  File "/home/mchristen/.local/tmp/bazel/_bazel_mchristen/eabc9c58e7a2790b61df5bad4df6e1e8/execroot/_main/bazel-out/k8-fastbuild/bin/examples/vpython/basic_pendulum.runfiles/.basic_pendulum.venv/lib/python3.11/site-packages/setuptools/_vendor/jaraco/text/__init__.py", line 231, in <module>
    files(__name__).joinpath('Lorem ipsum.txt').read_text(encoding='utf-8')
  File "/home/mchristen/.local/tmp/bazel/_bazel_mchristen/eabc9c58e7a2790b61df5bad4df6e1e8/external/rules_python~~python~python_3_11_x86_64-unknown-linux-gnu/lib/python3.11/pathlib.py", line 1058, in read_text
    with self.open(mode='r', encoding=encoding, errors=errors) as f:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/mchristen/.local/tmp/bazel/_bazel_mchristen/eabc9c58e7a2790b61df5bad4df6e1e8/external/rules_python~~python~python_3_11_x86_64-unknown-linux-gnu/lib/python3.11/pathlib.py", line 1044, in open
    return io.open(self, mode, buffering, encoding, errors, newline)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/home/mchristen/.local/tmp/bazel/_bazel_mchristen/eabc9c58e7a2790b61df5bad4df6e1e8/execroot/_main/bazel-out/k8-fastbuild/bin/examples/vpython/basic_pendulum.runfiles/.basic_pendulum.venv/lib/python3.11/site-packages/setuptools/_vendor/jaraco/text/Lorem ipsum.txt'

pypa/setuptools#3072
pypa/setuptools#4487
bazelbuild/bazel#4327
https://github.com/bazelbuild/bazel/releases
https://github.com/bazelbuild/bazel/releases/tag/7.4.0rc1
https://github.com/bazelbuild/bazel/pull/23912/files
https://github.com/bazelbuild/rules_python/pull/2456/files

Increasing version of bazel didn't seem to help ...

Copy link

codecov bot commented Feb 3, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (c853e45) to head (a554eba).

Additional details and impacted files
@@            Coverage Diff            @@
##            master      #184   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            9         9           
  Lines          184       184           
=========================================
  Hits           184       184           

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

Successfully merging this pull request may close these issues.

1 participant