wide-zoo-86070
04/26/2022, 5:30 PMx.y==1.0
. In a python script, there is from x.y import z
. It seems that Pants will complain ModuleNotFoundError: No module named 'x'
. Is it expected? and how to solve it?high-yak-85899
04/26/2022, 5:39 PMhigh-yak-85899
04/26/2022, 5:39 PMhigh-yak-85899
04/26/2022, 5:39 PMhigh-yak-85899
04/26/2022, 5:40 PMpython_requirements(
name="reqs",
module_mapping={
"pyzmq": ["zmq"],
"ipython": ["IPython"],
"pyserial": ["serial"],
"pyserial-asyncio": ["serial_asyncio"],
"python-can": ["can"]
},
)
high-yak-85899
04/26/2022, 5:41 PMx.y==1.0
is confusing to me, though. Don't think I've ever seen dot notation in package names. Are you able to pip install x.y
or only pip install x
?happy-kitchen-89482
04/26/2022, 5:50 PMhappy-kitchen-89482
04/26/2022, 5:50 PMpants
happy-kitchen-89482
04/26/2022, 5:51 PMx.y
in the example?happy-kitchen-89482
04/26/2022, 5:51 PMimport
statements, and they may not be the samehundreds-father-404
04/26/2022, 6:05 PMwide-zoo-86070
04/26/2022, 6:05 PMwide-zoo-86070
04/26/2022, 6:06 PMwide-zoo-86070
04/27/2022, 12:24 AM