Any ideas on what might cause this error? ```+ ./p...
# general
i
Any ideas on what might cause this error?
Copy code
+ ./pants test :: --tag=-integration --tag=aiohttp3
/root/.cache/pants/setup/bootstrap-Linux-x86_64/1.8.0rc0/local/lib/python2.7/site-packages/cryptography/__init__.py:39: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a future release.
  CryptographyDeprecationWarning,
Exception caught: (<class 'pants.build_graph.address_lookup_error.AddressLookupError'>)

Exception message: Build graph construction failed: MappingError Failed to parse documentation/api/BUILD:
name 'node_module' is not defined
h
Huh, this is on Pants 1.8.0rc0, right? I’m afk but would suspect that the Node contrib plugin either isn’t activated or didn’t have
node_module
at the time I thought y’all were on more recent Pants?
i
I'm unfortunately waiting for a third party to update code in order for us to complete the upgrade. I think I might just wait for that to officially drop to continue. Was just curious if it might be an easy fix.
h
Got it. Was this working before?
i
It was yes. I am updating our python version now from 3.6.9 -> 3.6.11 and this popped up during that change. I think I will wait for our pants upgrade to complete, since that might fix this and is where we want to be anyway.
h
That’s really weird that it broke. I wouldn’t expect that. Is that locally or in CI? One thing you could try is to delete ~/.cache/pants/setup. Maybe ~/.cache/pants/plugins too
w
can pass
--print-exception-stacktrace
to see if you get any more hints
👍 1
h
Hey Connor, any update on this one?
i
The
--print-exception-stacktrace
did not show any extra information. I did not attempt to remove the cache, since we run in a docker container and it should have built those from scratch. I'm pushing the update to 1.26 today (yay) and will get back to testing this either this afternoon or on Monday. So I should have some more information shortly.
🤞 1
h
Okay, fingers crossed! Let us know if we can help in any way with the 1.26 upgrade. 1.25 was a big one with
globs()
being removed, but also lots of improvements like being able to use file arguments
❤️ 1
i
Pants 1.26 fixed the issue! Hooray for upgrading 🎉
❤️ 1
h
Yay!