I'm trying to run a program using PyTermGUI, but I'm getting the following error:
AttributeError: module 'signal' has no attribute 'SIGWINCH'
I found this github issue for another TUI library for python, which says that Windows has no signal.SIGWINCH. I don't really know what signal.SIGWINCH is, but I'm wondering, is there any alternative or way to swap it out? Preferably without having to edit the module code. Thanks for any help in advance!
Sigwinch is a signal for window resizing. You can not really swap it with anything.
Related
I am new in PIC design and I want to make a simple GDSII design following this script:
https://github.com/BYUCamachoLab/simphony/blob/master/examples/layout_aware.py
which uses gdsfactory and simphony libraries but I consistently encounter this error when I am building a cell:
AttributeError: 'gdstk.Cell' object has no attribute 'get_polygons'
This problem appears when I try to call the grating coupler or the waveguides as a component. On the other hand, the Ybranch (splitters) work just fine.
I have downloaded all the latest versions of gdstk, gdsfactory and simphony but cannot make it work.
Do you know how to overcome this issue? What am I missing?
Thanks!
Solved. In case anybody finds in the same situation, the problem was with the gdstk library. For whatever reason, the version installed could not be changed and it remained always in 7.0.
By reinstalling Anaconda, the gdstk latest version could be installed without issues, and from there the program worked.
help function
Hi,
I'm new to python, but have been following a tutorial. I'm trying to use the help() module but I get an error message. i just can't figure it out. Does someone have a clue to my problem or what I'm doing wrong?
help function is not necessary to install, so something is wrong with your python installation.
I am a newbie to python and i am trying to learn online. I tried importing matplotlib on python 3.6 but i keep getting this error:
problem in matplotlib - AttributeError: module 'numbers' has no attribute 'Integral'.
I am using Anaconda. and i have installed the matplotlib library too. I have no idea what is going on. Please help.
As you told us in your comment, your file is named numbers.py. This file is probably the problem, as it hides the numbers.py file used by matplotlib. Your numbers.py file does not provide the Integral attribute, thus the error message.
Solution: Rename your file.
I've been reading through the internet for an answer and I cannot find anything! So I'm hoping you can help me with this problem. Finally, I've successfully installed it, but now I can not run ANY function and it's getting very annoying. I'll do something as simple as:
import pyautogui
pyautogui.onScreen(0, 2)
And boom! Error, I try every function on their "Cheat Sheet" and the same error!
AttributeError: CGDisplayPixelsWide
I've searched through the module, I've searched through the internet, and now I'm going to you! Please help me, I was really excited to use the functions this module offers.
PS - I'm on macOS Sierra
Trying to import a class into my Python code from another .py file I've written and included in the same sub-directory, however I'm receiving the error:
ModuleNotFoundError: No module named 'main.S_DES_Functions'; 'main' is not a package
Please find below images of the layout of my Python project.
I'm hoping this is just a really silly mistake I'm making, so if anyone can please advise what I'm doing wrong that'd be great :)
Thanks for the suggestions, I tried them however was still receiving the same error. But I managed to find a work around, similar to what is listed in this other Stack Overflow question - Unresolved reference issue in PyCharm
I basically made a new directory for my classes and set it as the directory as a "Source" for the project, which then allowed me to import it and use the classes without any issues.