Skip to content
This repository was archived by the owner on May 12, 2021. It is now read-only.
This repository was archived by the owner on May 12, 2021. It is now read-only.

Building 0.22 for centos-7 #15

@spjspjspj

Description

@spjspjspj

First I got into this error

Your system's preferred encoding is `ANSI_X3.4-1968`, but Pants requires `UTF-8`.
Specifically, Python's `locale.getpreferredencoding()` must resolve to `UTF-8`.

Then I added these two vars (and PANTS_PRINT_EXCEPTION_STACKTRACE for debugging pants error) to builder/rpm/centos-7/Dockerfile

 FROM centos:7

+ENV LC_ALL en_US.UTF-8
+ENV LANG en_US.UTF-8
+ENV PANTS_PRINT_EXCEPTION_STACKTRACE true
+
 RUN yum update -y
 RUN yum install -y \
     make \

I'm now getting error:

Exception caught: (exceptions.TypeError)
  File "/root/.cache/pants/setup/bootstrap-Linux-x86_64/1.15.0/bin/pants", line 10, in <module>
    sys.exit(main())
  File "/root/.cache/pants/setup/bootstrap-Linux-x86_64/1.15.0/lib/python2.7/site-packages/pants/bin/pants_loader.py", line 87, in main
    PantsLoader.run()
  File "/root/.cache/pants/setup/bootstrap-Linux-x86_64/1.15.0/lib/python2.7/site-packages/pants/bin/pants_loader.py", line 83, in run
    cls.load_and_execute(entrypoint)
  File "/root/.cache/pants/setup/bootstrap-Linux-x86_64/1.15.0/lib/python2.7/site-packages/pants/bin/pants_loader.py", line 76, in load_and_execute
    entrypoint_main()
  File "/root/.cache/pants/setup/bootstrap-Linux-x86_64/1.15.0/lib/python2.7/site-packages/pants/bin/pants_exe.py", line 39, in main
    PantsRunner(exiter, start_time=start_time).run()
  File "/root/.cache/pants/setup/bootstrap-Linux-x86_64/1.15.0/lib/python2.7/site-packages/pants/bin/pants_runner.py", line 59, in run
    options_bootstrapper=options_bootstrapper
  File "/root/.cache/pants/setup/bootstrap-Linux-x86_64/1.15.0/lib/python2.7/site-packages/pants/bin/local_pants_runner.py", line 90, in create
    options_bootstrapper
  File "/root/.cache/pants/setup/bootstrap-Linux-x86_64/1.15.0/lib/python2.7/site-packages/pants/bin/local_pants_runner.py", line 39, in parse_options
    options = OptionsInitializer.create(options_bootstrapper, build_config)
  File "/root/.cache/pants/setup/bootstrap-Linux-x86_64/1.15.0/lib/python2.7/site-packages/pants/init/options_initializer.py", line 127, in create
    options = cls._construct_options(options_bootstrapper, build_configuration)
  File "/root/.cache/pants/setup/bootstrap-Linux-x86_64/1.15.0/lib/python2.7/site-packages/pants/init/options_initializer.py", line 90, in _construct_options
    build_configuration.optionables() |

Exception message: unsupported operand type(s) for |: 'set' and 'OrderedSet'

Wondering if you guys have seen this and have a fix. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions