Giter Club home page Giter Club logo

switchsendtopc's People

Contributors

lokno avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

switchsendtopc's Issues

Old versions of Pillow don't work

I forgot to file this one the other day, but, there's a minimum required version of Pillow needed, so I think just checking for it isn't enough. I couldn't figure out the exact version, but, I had 9.0.1 and it gave me this error:

Traceback (most recent call last):
  File "/home/phi/Source/SwitchSendToPC/switch_send_to_pc.py", line 38, in <module>
    from PIL import ImageTk
ImportError: cannot import name 'ImageTk' from 'PIL' (/usr/lib/python3/dist-packages/PIL/__init__.py)

I suppose just doing a try-catch on this line (from PIL import ImageTk) and asking the user to pip install Pillow --upgrade would work, since that's what solved it for me.

`bitmap "icon.ico" not defined` on Linux

I managed to adapt the install command for Linux:

sudo pyinstaller -F --add-data="icon.ico:." --windowed --icon icon.ico ./switch_send_to_pc.py

Unfortunately pyinstaller gives a warning:

337 WARNING: Ignoring icon; supported only on Windows and macOS!

And when I try to run the command I get this error:

nmcli tool, version 1.36.6
Traceback (most recent call last):
  File "/home/phi/Source/SwitchSendToPC/switch_send_to_pc.py", line 394, in <module>
    live_feed = ConnectSwitchWifi(root)
  File "/home/phi/Source/SwitchSendToPC/switch_send_to_pc.py", line 71, in __init__
    root.iconbitmap(get_resource_path("icon.ico"))
  File "/usr/lib/python3.10/tkinter/__init__.py", line 2109, in wm_iconbitmap
    return self.tk.call('wm', 'iconbitmap', self._w, bitmap)
_tkinter.TclError: bitmap "icon.ico" not defined

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.