Coder Social home page Coder Social logo

tkinter dependency about gdspy HOT 5 CLOSED

heitzmann avatar heitzmann commented on September 28, 2024
tkinter dependency

from gdspy.

Comments (5)

heitzmann avatar heitzmann commented on September 28, 2024

@trezitorul When Tkinter is not found, importing gdspy should issue a warning ("[GDSPY] LayoutViewer not available"). I don't see that in your code... have you disabled warnings?

Anyway, Tkinter is part of the python standard library, so I'm not sure it should be listed as a dependency.

from gdspy.

mpinihin avatar mpinihin commented on September 28, 2024

Hello,
I have this same problem, I've been using gdspy on my windows computer with python 3 with no problems, but I just installed the gdspy module on my laptop running ubuntu using pip and I get the same error message as OP.

from gdspy.

heitzmann avatar heitzmann commented on September 28, 2024

It seems i'm wrong about tkinter being parto of the standard library: https://docs.python.org/3/library/tkinter.html

Still there should be a warning message if tkinter is not foud: "[GDSPY] LayoutViewer not available"
Do you see this warning @mpinihin?

from gdspy.

mpinihin avatar mpinihin commented on September 28, 2024

I was not getting that warning message. On my windows computer I installed python though the Anaconda distribution and it seems like tkinter was included there, but on my laptop python 3.6.3 came standard with ubuntu 17.10 and tkinter was not included. I fixed the problem by using sudo apt-get install python3-tk

from gdspy.

heitzmann avatar heitzmann commented on September 28, 2024

I've added Tkinter as an optional dependency. I believe this fixes the issue, but feel free to reopen it if you think there's anything else.

from gdspy.

Related Issues (20)

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.