Spyder will not launch with Python 2.7
See original GitHub issueIssue Report Checklist
- Searched the issues page for similar reports
- Read the relevant sections of the Spyder Troubleshooting Guide and followed its advice
- Reproduced the issue after updating with
conda update spyder
(orpip
, if not using Anaconda) - Could not reproduce inside
jupyter qtconsole
(if console-related) - Tried basic troubleshooting (if a bug/error)
- Restarted Spyder
- Reset preferences with
spyder --reset
- Reinstalled the latest version of Anaconda
- Tried the other applicable steps from the Troubleshooting Guide
- Completed the Problem Description, Steps to Reproduce and Version sections below
Problem Description
I have to use Python 2.7 due to a required python module ‘arcPy’ for my code that due to my ArcGIS copy (version 10) I can not update. I have created a new environment via conda with python 2.7. When I try to install the latest version of Spyder it does not work. If I install a version ❤️.2.5 I can get Spyder installed, but then it will not launch. I reset Spyder and it still will not launch.
What steps reproduce the problem?
- Uninstall and Reinstall Anaconda
- Install Spyder 3.2.4 via conda
- Launch Spyder via command prompt or the Anaconda Navigator
What is the expected output? What do you see instead?
The expected output is Spyder launches and opens. I see instead Spyder attempt to open and then crash.
Paste Traceback/Error Below (if applicable)
PASTE TRACEBACK HERE Traceback (most recent call last): File “C:\Users\ljansen-admin.ESM-SB1-314-JB\Desktop\ANAconda\envs\py2\Scripts\spyder-script.py”, line 3, in import spyder.app.start File “C:\Users\ljansen-admin.ESM-SB1-314-JB\Desktop\ANAconda\envs\py2\lib\site-packages\spyder\app\start.py”, line 26, in from spyder.config.base import get_conf_path, running_in_mac_app File “C:\Users\ljansen-admin.ESM-SB1-314-JB\Desktop\ANAconda\envs\py2\lib\site-packages\spyder\config\base.py”, line 362, in _ = get_translation(“spyder”) File “C:\Users\ljansen-admin.ESM-SB1-314-JB\Desktop\ANAconda\envs\py2\lib\site-packages\spyder\config\base.py”, line 334, in get_translation language = load_lang_conf() File “C:\Users\ljansen-admin.ESM-SB1-314-JB\Desktop\ANAconda\envs\py2\lib\site-packages\spyder\config\base.py”, line 315, in load_lang_conf lang = get_interface_language() File “C:\Users\ljansen-admin.ESM-SB1-314-JB\Desktop\ANAconda\envs\py2\lib\site-packages\spyder\config\base.py”, line 286, in get_interface_language spyder_languages = get_available_translations() File “C:\Users\ljansen-admin.ESM-SB1-314-JB\Desktop\ANAconda\envs\py2\lib\site-packages\spyder\config\base.py”, line 257, in get_available_translations error = ('Update LANGUAGE_CODES (inside config/base.py) if a new ’ NameError: global name '’ is not defined
Versions
- Spyder version: 3.2.4
- Python version: 2.7.15
- Qt version: 5.6.2
- PyQt version: 5.6.0
- Operating System name/version: Windows 10
Issue Analytics
- State:
- Created 3 years ago
- Comments:11 (5 by maintainers)
Hi @larajan67,
You have multiple options:
If you want to continue using Python 2 in your code, the last option is the more viable alternative, even though the first one is pretty usefull but remember that we are not fixing Spyder 3 bugs anymore.
I will highly recommend you to start migrating your code to Python 3 because since December of the last year there’s no more support for Python 2 and a lot of projects are not longer providing code so it will be even harder to continue working on Python 2 as time pass by.
Please let me know if this helps you and thanks reporting!
Found a workaround to use Spyder on python 2.7.