-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Spyder can't open a console because of problems with Beautiful Soup #3287
Comments
I also have this issue, but now Spyder will not even load. the loading pop-up screen with the logo comes up for about 100ms, not enough time to read the error message. When I run spyder.exe, I get this: Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\spyderlib\spyder.py", line 155, in <module
Spyder version: 2.3.9 It works fine on my laptop, the only difference seems to be that my laptop runs Python 2.7.11. |
It looks like a conda issue, no @ccordoba12 ? |
I cannot pull up an IPython console, either. Traceback (most recent call last): |
Yes, it seems you have a broken installation now. Please reinstall Anaconda and report again. |
I was able to get IPython to load again using |
So, I was unable to install or update this bs4 package. It appears to be Beautiful Soup. The init.py file states lxml and/or html5lib be installed. After installing html5lib, Spyder loads up. This appears to be a dependency issue. The new version of spyder should note this dependency on install! |
We don't depend on beautifulsoup or html5lib, so this is really a dependencies problem with Anaconda. I'm glad you were able to find and solve your problem ;-) |
@ccordoba12 I wouldn't be so quick to close this. It look like @ilkerhk still has an issue. |
I also demonstrated that the spyder package imports bs4. So it appears that spyder does use Beautiful Soup. File "C:\Anaconda\lib\site-packages\spyderlib\widgets\dicteditorutils.py", lin |
It's true we import So although this is clearly an installation issue, we can add a bit of code to address it ;-) |
I tried with and without beautifulsoup and html5lib, but didn't see any effect. I still can't run with a different error (see below). But downgrading back to iPython 4.2.0 + Spyder2 works for me. I am OK with those. Thanks all for the replies. P.S. I've just tried fresh conda environment. After the install everything works fine (Spyder2 and iPython 4.2.0 ). If I upgrade to Spyder 3, I got the below error. I upgrade to iPython 5.0 still got below error. An error ocurred while starting the kernel |
I realized I have other issue(s) with the setup. I installed all fresh but still getting error. So please ignore the error I mentioned in the last comment. |
The error in the first comment (which is about IPython 5 and Pygments and has nothing to do with beautifulsoup) has also been reported in issue #3309. |
@ilkerhk try to force install pygments |
Thanks @MadDenker , |
Description of your problem
Not sure if this is Conda or Spyder issue, but after the recent update of conda I can't open new ipython console.
What steps will reproduce the problem?
What is the expected output? What do you see instead?
An error ocurred while starting the kernel
Error in sitecustomize; set PYTHONVERBOSE for traceback:
AttributeError: module 'pkg_resources' has no attribute 'iter_entry_points'
Traceback (most recent call last):
File "/home/ilker/ILK/Anaconda3/lib/python3.5/site‑packages/spyderlib/widgets/externalshell/start_ipython_kernel.py", line 183, in
from IPython.kernel.zmq.kernelapp import IPKernelApp
File "/home/ilker/ILK/Anaconda3/lib/python3.5/site‑packages/IPython/init.py", line 49, in
from .terminal.embed import embed
File "/home/ilker/ILK/Anaconda3/lib/python3.5/site‑packages/IPython/terminal/embed.py", line 17, in
from IPython.terminal.interactiveshell import TerminalInteractiveShell
File "/home/ilker/ILK/Anaconda3/lib/python3.5/site‑packages/IPython/terminal/interactiveshell.py", line 84, in
class TerminalInteractiveShell(InteractiveShell):
File "/home/ilker/ILK/Anaconda3/lib/python3.5/site‑packages/IPython/terminal/interactiveshell.py", line 128, in TerminalInteractiveShell
help="The name of a Pygments style to use for syntax highlighting: \n %s" % ', '.join(get_all_styles())
File "/home/ilker/ILK/Anaconda3/lib/python3.5/site‑packages/pygments/styles/init.py", line 76, in get_all_styles
for name, _ in find_plugin_styles():
File "/home/ilker/ILK/Anaconda3/lib/python3.5/site‑packages/pygments/plugin.py", line 66, in find_plugin_styles
for entrypoint in pkg_resources.iter_entry_points(STYLE_ENTRY_POINT):
AttributeError: module 'pkg_resources' has no attribute 'iter_entry_points'
Please provide any additional information below
The problem is with the new ipython version 5.0. Downgrading ipython back to 4.2 solved my issue.
Versions and main components
Dependencies
Please go to the menu entry
Help > Optional Dependencies
(orHelp > Dependencies
), press the buttonCopy to clipboard
and paste the contents below:
The text was updated successfully, but these errors were encountered: