https://pantsbuild.org/ logo
#general
Title
# general
p

polite-garden-50641

07/06/2022, 6:07 PM
@enough-analyst-54434 is this a legit pex command
pex3 lock export --manylinux --output lock_file.txt  pex_lockfile.json
? if so I am getting an error. What I am trying to do is to have pex generate a lock file for a linux platform, so windows only reqs won't be there.
the error I am seeing:
Copy code
File "/opt/hostedtoolcache/Python/3.9.13/x64/lib/python3.9/argparse.py", line 2049, in _parse_known_args
    positionals_end_index = consume_positionals(start_index)
  File "/opt/hostedtoolcache/Python/3.9.13/x64/lib/python3.9/argparse.py", line 2026, in consume_positionals
    take_action(action, args)
  File "/opt/hostedtoolcache/Python/3.9.13/x64/lib/python3.9/argparse.py", line 1935, in take_action
    action(self, namespace, argument_values, option_string)
  File "/opt/hostedtoolcache/Python/3.9.13/x64/lib/python3.9/argparse.py", line 1214, in __call__
    subnamespace, arg_strings = parser.parse_known_args(arg_strings, None)
  File "/opt/hostedtoolcache/Python/3.9.13/x64/lib/python3.9/argparse.py", line 1858, in parse_known_args
    namespace, args = self._parse_known_args(args, namespace)
  File "/opt/hostedtoolcache/Python/3.9.13/x64/lib/python3.9/argparse.py", line 2067, in _parse_known_args
    start_index = consume_optional(start_index)
  File "/opt/hostedtoolcache/Python/3.9.13/x64/lib/python3.9/argparse.py", line 2007, in consume_optional
    take_action(action, args, option_string)
  File "/opt/hostedtoolcache/Python/3.9.13/x64/lib/python3.9/argparse.py", line 1935, in take_action
    action(self, namespace, argument_values, option_string)
  File "/opt/hostedtoolcache/Python/3.9.13/x64/lib/python3.9/site-packages/pex/resolve/resolver_options.py", line 39, in __call__
    elif value.startswith("manylinux"):
AttributeError: 'NoneType' object has no attribute 'startswith'
I also tried w/
--platform current
(w/o the manylinux flag) but the win32 reqs were still included.
if this is a bug I can add a ticket.
e

enough-analyst-54434

07/06/2022, 6:11 PM
pex3 lock export -h
indicates
--manylinux
requires an argument; so ugly error but valid error. The
--platform
thing though sounds like a bug.
p

polite-garden-50641

07/06/2022, 6:19 PM
ok. will create a ticket for the platform thing.
e

enough-analyst-54434

07/06/2022, 7:18 PM
Thanks Asher. I'll get out a fix in 2.1.95.
💯 1
🔥 1
4 Views