Skip to content
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

Error executing argument parser #1313

Closed
josefondrej opened this issue May 18, 2018 · 1 comment
Closed

Error executing argument parser #1313

josefondrej opened this issue May 18, 2018 · 1 comment
Labels
bug 🐛 For unexpected issues

Comments

@josefondrej
Copy link

josefondrej commented May 18, 2018

Description:

The following code does not work if it is run in hydrogen however works fine when executed in python console.

import argparse
parser = argparse.ArgumentParser()
args = parser.parse_args()

Probably same problem as in this issue.

Steps to Reproduce:

  1. Install WinPython
  2. Install atom and hydrogen
  3. Run the code snippet

Versions:

  • Windows 10 Pro
  • WinPython 3.7.0
  • Atom 1.27.0
  • Hydrogen 2.1.1
@BenRussert BenRussert added the bug 🐛 For unexpected issues label Jul 17, 2018
@BenRussert
Copy link
Member

The solution from your link works for me. You can add this snippet or put in your startup code in the hydrogen settings if you always want it to run.

import sys
sys.argv=['']
del sys

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 For unexpected issues
Projects
None yet
Development

No branches or pull requests

2 participants