8000 sys.argv call still results in an error · Issue #753 · PyMySQL/PyMySQL · GitHub
[go: up one dir, main page]

Skip to content

sys.argv call still results in an error #753

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
insideClaw opened this issue Dec 14, 2018 · 1 comment · Fixed by #755
Closed

sys.argv call still results in an error #753

insideClaw opened this issue Dec 14, 2018 · 1 comment · Fixed by #755

Comments

@insideClaw
Copy link
insideClaw commented Dec 14, 2018

The previous fix in PR #739, addressing bug #736, aims to handle sys.argv not being available, but it doesn't prevent an exception being thrown when it's not found. Exception extract shown below:

        File "/opt/datadog-agent/embedded/lib/python2.7/site-packages/pymysql/connections.py", line 321, in __init__
          argv = getattr(sys, "argv")
      AttributeError: 'module' object has no attribute 'argv'

The context is similar to the one in #736 - an environment that's unable to execute that system call. In my case the monitoring service Datadog using PyMySQL in its embedded environment.

@insideClaw
Copy link
Author

Fix implemented in #754

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant
0