Skip to content

Conversation

injust
Copy link

@injust injust commented Oct 5, 2025

When building a custom version of the agent, I ran into a NameError because requests wasn't imported.

@s3inlc
Copy link
Member

s3inlc commented Oct 7, 2025

With which python version does this happen?

@injust
Copy link
Author

injust commented Oct 7, 2025

I ran into this when building a custom version of the agent. It was probably something I did and not the Python version, as the released hashtopolis.zip works.

But generally, it's bad practice to rely on asterisk imports. It took me some time to realize that the requests import was coming from 2 levels of asterisk imports.

@injust injust changed the title Add missing requests import Explicitly import requests instead of using asterisk import Oct 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants