billowy-tiger-59247
10/19/2023, 2:02 PMpex_binary
has a few packages that share the same namespace:
• merlin
: import merlin.core
• merlin-models
: import merlin.models
However, after building the PEX with these two packages, I’m unable to import merlin.models
I have tested with pex directly and noticed that depending on the order, I’m able to import the submodule
$ pex --lock default.lock merlin-models merlin
>>> import merlin.models # works
$ pex --lock default.lock merlin merlin-models
>>> import merlin.models # doesn't work
By checking the sys.path during PEX execution, I notice that indeed when merlin
seems to be coming before merlin-models
, which might explain the issue.
Has anyone faced this issue before?bitter-ability-32190
10/19/2023, 2:05 PMbillowy-tiger-59247
10/19/2023, 2:33 PMbitter-ability-32190
10/19/2023, 2:35 PMbillowy-tiger-59247
10/19/2023, 2:38 PMmerlin-1.11.0-py3-none-any.whl
merlin_models-23.8.0-py3-none-any.whl
merlin_core-23.8.0-py3-none-any.whl
merlin_dataloader-23.8.0-py3-none-any.whl
bitter-ability-32190
10/19/2023, 2:39 PMmerlin
project?bitter-ability-32190
10/19/2023, 2:40 PMbillowy-tiger-59247
10/19/2023, 2:42 PMbitter-ability-32190
10/19/2023, 2:43 PMbillowy-tiger-59247
10/19/2023, 3:05 PMbillowy-tiger-59247
10/19/2023, 3:06 PMhappy-kitchen-89482
10/19/2023, 7:33 PM