I'm trying to use customtkinter. i downloaded the examples and when i try theme, all the elements have a strange shape enter image description here which don't look like the screens of the examples on github.
I searched on google but didn't find a way to solve this.
I use
Ubuntu 22.04
Anaconda
tested on Python 3.8 and python 3.10
the customtkinter (V5.0.3) was installed using pip
I tried two different versions of python, tried reinstalling the lib
was expecting elements with this kind of shape https://github.com/TomSchimansky/CustomTkinter/blob/master/documentation_images/image_example_dark_Windows.png
Well apparently it's a known bug with anaconda and there is no proper solution yet. You can find the bug report here https://github.com/ContinuumIO/anaconda-issues/issues/6833
An ugly workaround wich actual works is to replace your conda env libtk8.6 by a symlink to system libtk8.6:
cd [Your_conda_env_path]/lib/
mv libtk8.6.so libtk8.6.so.old
ln -s /usr/lib/x86_64-linux-gnu/libtk8.6.so .
Related
I'm a newbie in programming but now have to use terminal a lot.
After having a brush with losing my .zshrc once before, I've been careful not to disrupt it but I installed iterm2 and oh my zsh and now almost no commands are working. I've been through all the links I could find to try trouble shoot it but i'm coming up bagels.
Context:
Mac OS monterey 12.5 macbook air M1.
default terminal was zsh
Installed iterm2 and zsh according to this tutorial.
My .zshrc file now looks like the default that is overwritten by oh my zsh (hence the issue as my paths are now gone).
I've tried the following pages for help:
This one which suggests that I copy across my ~/.bashrc which I don't have. or the other work around which I went through and tried all the suggestions in there to no avail. Brew wasn't working so I tried that again, tried to uninstall everything and even tried to 'pip-purge' but that wasn't a recognised command either.
The first thing I've been trying to run was jupyter so I'll use that as the reference point. which and where are pulling up nothing. Trying to install it again shows it is installed. trying jupyter --version or --path shows nothing. I even tried 'sudo' on one of the solutions and it said that sudo was an unrecognised command.
My current paths that I have tried to put into the .zshrc file are as follows:
export PATH=$PATH:~/.local/bin
export PATH="/opt/homebrew/bin:$PATH"
export PATH="$PATH:/Users/itamar/Desktop/Dev/flutter/bin"
export PATH="$PATH:/Library/Frameworks/Python.framework/Versions/3.10/bin"
export PATH="$PATH:/Users/itamar/Library/Python/3.10/lib/python/site-packages"
export PATH="$PATH:/Users/itamar/Library/Python/3.10/bin/jupyter"
export PATH=$HOME/bin:/usr/local/bin:$PATH
export ZSH="/Users/pierrethiollent/.oh-my-zsh"
I don't even mind if I have to nuke everything and start fresh but I don't know what will work short of reinstalled mac osx and even then I don't know if this will actually solve the problem.
Okay. solution found for those who have the same issue and are not migrating from bash to zsh.
Underneath your /.zshrc iterm2 or ohmyzsh will have backed up your previous path list to a file called '.zshrc.pre-oh-my-zsh' which will have your old paths. copied these into the zshrc file and it's working. Phew!
I would like to install the Heroku CLI in my Macbook without using HomeBrew. Is there a way to do this? Perhaps by using a native command via terminal? Or some other way that does not depend on another bit of software? I have searched online but have not found a way to do so.
Note: I have had issues with HomeBrew so I no longer use it, and hope to continue installing without it. I also did a search on Stackoverflow, as well as check the suggested similar questions while composing this one.
For anyone else seeking answers: I just figured out how to install Heroku without Brew or using npm. Use the command below (it is in Heroku's instructions page):
curl https://cli-assets.heroku.com/install.sh | sh
I am desperately trying to install Openflipper...
At the first time I tried to install OpenFlipper-Free like so https://www.graphics.rwth-aachen.de/media/openflipper_static/Daily-Builds/Doc/Free/Developer/buildingOpenFlipper.html. When I run make, I got this error.
I looked through the logs(it's saying 5.9.5 is too high but I printed the used version underneath and it's actually too low) and documentation and I found that my QT5.9.5 was too old. I need at least 5.11.0.
So I installed Qt5.12.0 like so: https://unix.stackexchange.com/questions/481063/ubuntu-18-04-1-lts-x64-how-to-update-qt-5-10-from-qt-5-9-5
Now OpenFlipper compiled successfully. But when I run it and try to load a file, it crashs with this output
:
I also tried to install older versions of Openflipper, but they also failed to compile, because Qt5.9.5 is too high for those versions.
I checked my Qt installations with qmake -v and qtchooser -print-env and it all looked fine.
I also looked through the Openflipper gitlab repo to find some advices but I couldn't find anything.
So now I am somehow stuck and I don't know what I do wrong.
I don't know why but I updated Ubuntu to 20.04 and now ObenFlipper works.
I have downloaded and installed R.
I see it here in Applications folder (I am on a Mac with Yosemite):
Fine. I can launch R.app and indeed, yes, I am running the version I want, which is 3.2.2:
So far so good. I can even open up RStudio and see that I am indeed running 3.2.2!
So after all this, I simply go to my terminal, type
r
and turns out I am running 3.1.1!
I understand the old user of my work computer probably had installed this older version.
So here's what I'm wondering:
If I just installed R.app correctly, WHY is this old version still living on my computer, and how do I get rid of it?
If this is some sort of $PATH thing, WHY doesn't the most obvious location for an app, the Applications folder, get checked for the existence of R?
Thanks.
UPDATE
Turns out the old version of R has been installed by homebrew.
Typing which r in your terminal will give you where the shell thinks R is. Then, you need only uninstall it from that location.
Since we've determined it's homebrew, all you need to do now is brew unlink r; rm -Rf /usr/local/Cellar/r/3.1.1 and you should be golden after you rehash in your shell.
It worked because you installed it using homebrew. To remove it from the system, you must first unlink it and then remove it from the system.
I haven't been able to find the help I need on (on dummie level) for installing a new dictionary (danish) in emacs. To be honest I somewhat confused about ispell vs aspell. When typing "M-x ispell-buffer" a spelling control starts using english as default. I can change directory typing "M-x-ispell-change-dictionary" it suggest "dansk" but I get an error saying that the file /.../aspell/dict/danish" can not be opened for reading. I can deduct that the dictionary is not installed - but I cannot seem to finde a guide (step by step) on how to do this.
And then I have a bonus question. I have managed to install flyspell (or is that actually 'installing' as I have just addet the .el file to my emacs load path and loaded in my .emacs file?). This seem to work (wauw), and as I understand it flyspell is using the same dictionaries as ispell/aspell hence solving my probleme above would enable me to use flyspell in danish?
Any help is appreciated.
/Kira
If you are on Ubuntu or Debian system you can install the Danish aspell package from the commandline with
sudo apt-get install aspell-da