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.
Related
Hey people I need some help with a code I've been working on with an anaconda environment
I am stuck in an error that says "AttributeError: 'MyWindow' object has no attribute 'run'
I know this might be stupid but I am starting out.
Any help or improvements would be greatly appriciated
https://github.com/adamkfwn/leasing.git
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.
Hi I am getting this error when I try to run a command:
Ignoring exception in command greet discord.ext.commands.errors.MissingRequiredArgument: ctx is a required argument that is missing
And when I try to manually pass the context with pass_context=True (I know this is outdated I think)It comes up with:
AttributeError: 'Context' object has no attribute 'send'
I have looked everywhere on various forums and I have found others with the same problem but the answers were always specific to that one user's issue and so were useless to me or were outdated, not using the rewrite. I would really appreciate it if someone could help.
Does anyone know why I am getting this and how I could fix it?
Here is what I think is the useful part of the code:
#client.command()
async def greet(ctx):
await ctx.send("Hello")
Here is the full code: https://pastebin.com/fQc4vE7F
Edit: I am on discord version 1.4.1 in case that might be useful
you should try re-installing discord.py, also make sure to put the following at the top:
from discord.ext import commands
import discord
The problem seemed to be my IDE. I ran my code in repl and it worked perfectly. Repl automatically installed all the modules. So the issue I think is likely to have been either my installations and imports running on pycharm conflicting with eachother or my pycharm version being outdated since I had not updated it in quite some time. PyCharm had been telling me that the version which I was on being outdated had some bugs with pip...
Anyway, in case anyone else has a similar issue I would recommend to try run your code in repl or some other IDE as the issue in this case was not my code but rather the setup. If you are encountering the same issue on a different IDE I would recommend repl as you do not have to install anything to your computer. Repl is entirely on the cloud and will only install and import what is necessary. And you should probably update the IDE which you already have. I hope I could help anyone else with a similar issue as I could find no solutions online, but I hope I could change this.
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
I'm trying to create my first Reddit bot using the praw package. I'm coding in Pydev for Eclipse.
I'm getting an error that I can't figure out how to resolve. When defining an instance of Reddit, I'm using this line of code:
reddit = praw.Reddit('bot1')
That's the format I have seen in a bunch of code examples from a bunch of different sites.
Pydev is giving me the following error message:
Undefined variable from import: Reddit
I can't find any source that shows how to resolve this issue. I'd appreciate some help.
EDIT:
Though the error message remains, I can still run the bot without issues. I don't understand why that would be, and would still like to know if I should try to fix something, but am glad it works.
Have you tried adding praw to the forced builtins? (to force it to be dynamically analyzed through a shell)
See: http://www.pydev.org/manual_101_interpreter.html#PyDevInterpreterConfiguration-ForcedBuiltins for more details on the matter.