When opening Anaconda (and starting Spyder from it) today, I experienced some (to me) unexplainable, rendering problems (I'm not sure whether this is the correct term). The text is not displayed as it normally is, see example pictures below:
This is an example for how it looks like in the Anaconda Navigator (GUI)
This is how the Spyder editor looks like in light mode -> green dots inside the black text
This is how the Spyder editor looks like in dark mode-> pink dots inside the black text
The icons in Spyder and the text inside the documentation window are not touched by this.
The warning that I get in the shell is: libpng warning: bKGD: invalid, but I did not find any helpful resources on it.
`
I do not have these problems in any other program, everything looks normal.
I uninstalled and reinstalled anaoconda completely using this approach (link to guide), which is basically what the Anaconda Docs are recommending, but the same thing occurs in the fresh install as well.
I'm using Ubuntu 20.04.1 LTS with KDE, Anaconda Navigator 1.9.12 and Spyder 4.1.4.
Can you point me in a direction of how to resolve this? Thanks a lot!
Let me know if any useful information is missing!
I fixed it by first install ImageMagick
sudo apt install imagemagick-6.q16
and then running
cd <anaconda location>
mogrify $(find . -name '*.png')
This fixed the problem for me.
Related
I am using a chromebook with linux beta turned on to use a terminal to run python3 scripts. they worked fine until recently when any pop out window (pygame, pyplot) look corrupted. the windows have black bars covering them for pyplot or are completely covered in black for pygame. the code in the python scripts are unchanged and worked just fine a couple of weeks ago.
I have already turned off linux beta, then returned it back on, reinstalling packages which didn't alleviate the issue. Any help is IMMENSELY appreciated!!
I installed Qt5 bindings via pip install PyQt5 and changed the backend to Qt5Agg per How to change backends in matplotlib / Python and that fixed the black bars for me.
I just installed Anaconda3-2019-10 on my MacBook.
I tried to make sure that my previous Python 3 version was totally uninstalled / removed from my system. Typing python3to the terminal didn´t work anymore.
After installing Anaconda and PyCharm (pycharm-community-anaconda-2019.3.3) I started a new Project to test everything. For that I selected to create a new Conda environment:
After I created the process I checked the Preferences and the "Project Interpreter". This is what I found:
I expected to find two interpreters 1.) my 3.7 Python version and 2.) the Conda environment just created.
Does finding 3 versions mean that I didn´t correctly deinstall Python3 before installing anaconda or is there anything that I don´t understand here?
Do I need both versions?
If not is there a safe way to remove one of them?
For removing Python3 from my system I did almost everythin suggested in numerous posts in Stackoverflow.
Upon creating a venv(virtual environment) you no longer need to worry about the existing interpreter. https://docs.python.org/3/tutorial/venv.html this might be of help.
When I have installed some libraries,the pycharm compiler does not display them.
It displays like this.However I do install some libraries,see here.And I can use installed moudules like cv2 even though pycharm doesn't show it.What shoud I do to solve it?
I managed to install Pygame into my MacOS anaconda python 3.6 instance -- I simply put it into the "root" environment. The way I installed -- when I knew that the anaconda python was activated, I simply went to the command line and did pip install pygame.
But now, when I am in Spyder, and I load up a smallish python app that I wrote that uses Pygame, the app seems to run OK with no errors BUT it does not show the graphics output in any window or tab anywhere! I've tried alt-tabbing around... [For comparison... when I tried to run another small app I made that uses tkinter, then it presents the graphics by creating a separate app/window I can alt-tab to... shows a feather as the icon for that window when I alt tab to it.]
I played a little with the Spyder preferences>Ipython preferences>graphics... tried "Automatic," "inline," and Tkinter... none had any effect.
Two supporting things:
1-- note that, when I run anaconda's Spyder from the command line, for some reason it shows this string of warning errors... any tips on this for me? It is:
Erics-MacBook-Pro:~ ericstephan$ spyder
[warn] kq_init: detected broken kqueue; not using.: Undefined error: 0
[warn] kq_init: detected broken kqueue; not using.: Undefined error: 0
[warn] kq_init: detected broken kqueue; not using.: Undefined error: 0
[[and six more lines of the same]]
2-- If it helps troubleshoot, below I will paste my pygame-using app whose graphics appears nowhere in Spyder. Makes many many little confetti sprites that flutter and bounce. Hey, it's a fun little app, if you replace numdots with something big like 500, it's pretty cool... when it's visible!
Here is the problem pygame app: Stackexchange editor wouldn't allow it so you can see it at https://pastebin.com/1Aa8pVDq
The problem is not with spyder but with Qt (graphics library for spyder).
Current Qt version in Anaconda does not support macOS sierra. For more details: stackoverflow.com - Problems with Spyder 3 in macOS 10.12 (Sierra) or higher
I know that this is not a programming question. But it is stopping me programming.
I have installed Sublime Text 3. Now I am trying to install Package Control. My ultimate aim is to install the package which does syntax highlighting for CJSX files.
The problem is that when I install the Package Control manager this breaks Sublime Text 3. Specifically many menu items are missing. And the programme crashes. I keep going round in circles: install Sublime Text / it works / try to install Package Control (following both the console method or the manual method here: https://packagecontrol.io/installation) / Sublime Text breaks / uninstall - repeat.
It makes no difference how I install Sublime Text - manually with a tar file, using a .deb file, or using apt-get.
This is on Ubuntu 14.04.
Since a new version 3.1.0 of package control has been released a few hours ago, it could be a bug related to this version. I suggest you to post your bug on their issue tracker
Just visit this Link and execute the python code by opening command prompt
Ctrl+` for opening the command prompt, Both versions of Sublime Text(2/3) are provided there.