#🔒 Trying to create but keep getting a error

27 messages · Page 1 of 1 (latest)

spiral grove
#

I keep gettingTraceback (most recent call last):
File "c:\Users\strea\Downloads\AutoFishing.py", line 2, in <module>
import pyDirectInput
ModuleNotFoundError: No module named 'pyDirectInput'
PS C:\Users\strea>

weak fableBOT
#

@spiral grove

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

spiral grove
spiral grove
hollow kernel
#

what does py -0 show in your terminal?

spiral grove
#

ahh alright i see, i must have not installed pyDirectInput

hollow kernel
#

yep, thats what the error means

spiral grove
spiral grove
#

Requirement already satisfied: pyDirectInput in c:\users\strea\ (etc) (1.0.4)

hollow kernel
#

!pip pyDirectInput

weak fableBOT
#

Python mouse and keyboard input automation for Windows using Direct Input.

Released on <t:1612304610:D>.

hollow kernel
#

you sure you're not using this for like game cheats or something?

hollow kernel
#

usually packages will have a README that shows you example code of how to use the module

spiral grove
hollow kernel
spiral grove
#

i havent been doing python for long, i do more lua.

hollow kernel
#

you need to import pydirectinput, not pyDirectInput

#

package name is different from import name

spiral grove
#

now it says this i noticed they were in caps

#

ahh okay wasnt updated

weak fableBOT
#
Python help channel closed for inactivity

This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.