Skip to content
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

Linux installation #9

Open
pasha9999 opened this issue Aug 16, 2022 · 3 comments
Open

Linux installation #9

pasha9999 opened this issue Aug 16, 2022 · 3 comments

Comments

@pasha9999
Copy link

Ola, meu amigos! Como vai?

I've tried to install your code onte RedHat Linux 8. All installation steps (through Anaconda) run smooth, but when i tried to start - I got this error message

python Refrapick.py
Traceback (most recent call last):
File "Refrapick.py", line 1851, in
app = Refrapick()
File "Refrapick.py", line 35, in init
self.iconbitmap("%s/images/ico_refrapy.ico"%getcwd())
File "/apps/anaconda3/envs/refrapy/lib/python3.8/tkinter/init.py", line 2080, in wm_iconbitmap
return self.tk.call('wm', 'iconbitmap', self._w, bitmap)
_tkinter.TclError: bitmap "/home/_apps/Refrapy/Refrapy/images/ico_refrapy.ico" not defined

Do you have any idea how to resolve it?

Best regards,
Pavel

@pasha9999
Copy link
Author

Short update.
I've converted icon to *.xbm file using ImageMagic ->

convert images/ico_refrapy.ico images/ico_refrapy.xbm

And change path to file to relative ->

self.iconbitmap("@images/ico_refrapy.xbm")

Now I can start the interface.
cheers,
Pavel

@akpopoola
Copy link

Hi,
This fix worked for me too on Ubuntu 20.04 by changing all the instances of .iconbitmap and using a .xbm file which I converted using ImageMagic. There was an error of "TclError: image "pyimage5" doesn't exist" when I run the code with Spyder. So avoid it if you are on Ubuntu.

@hyperNeo
Copy link

Short update.
I've converted icon to *.xbm file using ImageMagic ->

convert images/ico_refrapy.ico images/ico_refrapy.xbm

And change path to file to relative ->

self.iconbitmap("@images/ico_refrapy.xbm")

Now I can start the interface.
cheers,
Pavel

Omg, thank you so much !!!
This fix worked for me too on Parrot Linux

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants