Skip to content
This repository was archived by the owner on Dec 6, 2024. It is now read-only.
This repository was archived by the owner on Dec 6, 2024. It is now read-only.

[macOS] Error Running Bazel: from riegeli.records import record_reader ImportError : symbol not found in flat namespace  #5

Open

Description

@JGoDC

Please help with Bazel run gets ImportError on macOS 12.2 Monterey (Intel chip):

% bazel run -c opt \ :print_names_and_sources /tmp/dm-code_contests/code_contests_valid.riegeli Starting local Bazel server and connecting to it... INFO: Analyzed target //:print_names_and_sources (82 packages loaded, 2025 targets configured). INFO: Found 1 target... Target //:print_names_and_sources up-to-date: bazel-bin/print_names_and_sources INFO: Elapsed time: 4.780s, Critical Path: 0.10s INFO: 1 process: 1 internal. INFO: Build completed successfully, 1 total action INFO: Build completed successfully, 1 total action Traceback (most recent call last): File "/private/var/tmp/_bazel_j/651bc297ae9686f74aa6889e91cbfc4c/execroot/__main__/bazel-out/darwin-opt/bin/print_names_and_sources.runfiles/__main__/print_names_and_sources.py", line 24, in <module> import riegeli File "/private/var/tmp/_bazel_j/651bc297ae9686f74aa6889e91cbfc4c/execroot/__main__/bazel-out/darwin-opt/bin/print_names_and_sources.runfiles/com_google_riegeli/python/riegeli/__init__.py", line 18, in <module> from riegeli.records import record_reader ImportError: dlopen(/private/var/tmp/_bazel_j/651bc297ae9686f74aa6889e91cbfc4c/execroot/__main__/bazel-out/darwin-opt/bin/print_names_and_sources.runfiles/com_google_riegeli/python/riegeli/records/record_reader.so, 0x0002): symbol not found in flat namespace '__ZNK11highwayhash11HighwayHashILj2EEclERA4_KyPKcmPy'

% bazel --version
bazel 5.0.0-homebrew
% python -V
Python 3.7.9
% uname -m
x86_64

Thanks!

Activity

  1. changed the title [-]Bazel ImportError on macOS 12.2 Monterey with Intel chip[/-] [+]Error Running Bazel: from riegeli.records import record_reader ImportError (macOS 12.2 Monterey)[/+] on Feb 9, 2022
  2. changed the title [-]Error Running Bazel: from riegeli.records import record_reader ImportError (macOS 12.2 Monterey)[/-] [+]Error Running Bazel: from riegeli.records import record_reader ImportError : symbol not found in flat namespace [/+] on Feb 9, 2022
  3. KareemAlaa2001 commented on Mar 10, 2022

    @KareemAlaa2001

    Getting the same exact error here as well, same machine, python version (3.7.11 in my case) and homebrew bazel version

  4. davidhchoi commented on Mar 21, 2022

    @davidhchoi

    Can you check the Python 2 and compiler versions as well? And update them if necessary.

    tensorflow/tensorflow#39521 may also be related.

  5. Luowaterbi commented on Oct 7, 2022

    @Luowaterbi

    I have the same problem on M1pro.

  6. felixgimeno commented on Jan 16, 2023

    @felixgimeno
    Member

    Can you try on Linux or bazel version 6.0.0 ?

  7. changed the title [-]Error Running Bazel: from riegeli.records import record_reader ImportError : symbol not found in flat namespace [/-] [+][macOS] Error Running Bazel: from riegeli.records import record_reader ImportError : symbol not found in flat namespace [/+] on Jan 16, 2023
  8. isaacgor216 commented on Nov 9, 2023

    @isaacgor216

    Has anyone found a solution or workaround to this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions