question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Spyder is opening bootstrap.py when using "python bootstrap.py"

See original GitHub issue

Description

What steps will reproduce the problem?

I think that this issue is from #11704. That PR changed “CLI_OPTIONS, CLI_ARGS = get_options()” to “CLI_OPTIONS, CLI_ARGS = get_options(sys_argv)” of 108 line of mainwindow.py

I am sorry if it was the problem you intended or already knew. Have a nice day.

bootstrap

Versions

  • Spyder version: 5.0.0.dev0 856a88456
  • Python version: 3.7.6
  • Qt version: 5.9.6
  • PyQt5 version: 5.9.2
  • Operating System: Linux 4.15.0-96-generic

Dependencies


# Mandatory:
atomicwrites >=1.2.0        :  1.3.0 (OK)
chardet >=2.0.0             :  3.0.4 (OK)
cloudpickle >=0.5.0         :  1.3.0 (OK)
diff_match_patch >=20181111 :  20181111 (OK)
intervaltree                :  None (OK)
IPython >=4.0               :  7.13.0 (OK)
jedi =0.15.2                :  0.15.2 (OK)
keyring                     :  None (OK)
nbconvert >=4.0             :  5.6.1 (OK)
numpydoc >=0.6.0            :  0.9.2 (OK)
parso =0.5.2                :  0.5.2 (OK)
pexpect >=4.4.0             :  4.8.0 (OK)
pickleshare >=0.4           :  0.7.5 (OK)
psutil >=5.3                :  5.7.0 (OK)
pygments >=2.0              :  2.6.1 (OK)
pylint >=0.25               :  2.4.4 (OK)
pyls >=0.31.9;<0.32.0       :  0.31.9 (OK)
qdarkstyle >=2.8            :  2.8 (OK)
qtawesome >=0.5.7           :  0.7.0 (OK)
qtconsole >=4.6.0           :  4.7.2 (OK)
qtpy >=1.5.0                :  1.9.0 (OK)
rtree >=0.8.3               :  0.9.3 (OK)
sphinx >=0.6.6              :  2.4.4 (OK)
spyder_kernels >=2.0.0dev0  :  2.0.0.dev0 (OK)
watchdog                    :  None (OK)
xdg >=0.26                  :  0.26 (OK)
zmq >=17                    :  18.1.1 (OK)

# Optional:
cython >=0.21               :  0.29.15 (OK)
matplotlib >=2.0.0          :  3.1.3 (OK)
numpy >=1.7                 :  1.18.1 (OK)
pandas >=0.13.1             :  1.0.3 (OK)
scipy >=0.17.0              :  1.4.1 (OK)
sympy >=0.7.3               :  1.5.1 (OK)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
CAM-Gerlachcommented, Apr 14, 2020

@mrclary Yeah, just too many edge cases that could crop up…I just should have thought of that originally but thanks to you and @ok97465 for your help here! I haven’t been working too much on Spyder itself lately, mostly the docs and tutorials with a few PRs here and there as I focus on building an open-source client-server IoT framework designed for field networks of scientific sensors. @ccordoba12 has been the one doing all the hard work as he always does

1reaction
CAM-Gerlachcommented, Apr 14, 2020

Thanks for the catch and sorry about that @ok97465 , I did it to save one line of code duplication since if get_options() is called with the default None, which is passed to argparse.parse_args() it will just pull from sys.argv anyway but I forgot that it needs to be sys.argv[1:] or it grabs the name of the script being run, which in this case makes Spyder open it as a file. My mistake, sorry, we could just replace it with that but better to just do it the way @ccordoba12 did to avoid any other issues going forward.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Installation — Spyder 3 documentation
Spyder is quite easy to install on Windows, Linux and MacOS X. Just the read the ... Run Spyder with the command python...
Read more >
Easy Way to switch Environments in Spyder? - Google Groups
An alternative method is to activate the environment, and run Spyder directly from its sources with the bootstrap method (first browse to the...
Read more >
How to use Flask-Bootstrap in Spyder? - python - Stack Overflow
I'm trying to run the Flask-Bootstrap sample application from within ... When I run via python run_sample_app.py , I get an error message...
Read more >
bootstrap-py 1.0.2 - PyPI
Usage · Install bootstrap-py · Generate Python package · List license choices · Using tox.
Read more >
spyder-ide/public - Gitter
C:\dev\spyder λ python bootstrap.py Executing Spyder from source checkout ... (called rope and jedi) for that functionality, so perhaps you should open an ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found