FrozenTear7 / poe-trading-bot

Trading bot for Path of Exile
MIT License
20 stars 10 forks source link

AttributeError: 'NoneType' object has no attribute 'group' #4

Open SabretWoW opened 1 year ago

SabretWoW commented 1 year ago

I attempted setup for a few hours, but I couldn't get it to work. After fighting through errors, I encountered this one:

AttributeError: 'NoneType' object has no attribute 'group'

As far as I can see, everything is good, and my coordinates match the defaults (it's apparently set up for 1920x1080 by default), but I keep getting that error.

What does it mean? If it's something I can fix, I'm more than happy to attempt a PR, but if it's something simple I'm overlooking, I'd appreciate some help debugging.

Thank you, and I hope to use this awesome app soon!

irigyano commented 1 year ago

Hello, it seems like a problem on regex, could you provide more detail on how to reproduce this problem? Assuming its about regex I think it happens when you receive trade whisper?

SabretWoW commented 1 year ago

Ahh, I was unclear.

This message happens upon starting the bot and seeing the initial bot start message in the terminal log. The bot never starts.

I’ve set up everything correctly as far as I can see, and I followed your directions for install & configuration. It looked like most of the defaults were set at 1920x1080, so I didn’t touch much.

What more can I provide to help? :)

On Tue, Mar 28, 2023 at 5:19 PM Aaron Hsieh @.***> wrote:

Hello, it seems like a problem on regex, could you provide more detail on how to reproduce this problem? Assuming its about regex I think it happens when you receive trade whisper?

— Reply to this email directly, view it on GitHub https://github.com/FrozenTear7/poe-trading-bot/issues/4#issuecomment-1487771767, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAL2Q23ZW53SNFJ2JPFZOD3W6N5YTANCNFSM6AAAAAAV32RUSY . You are receiving this because you authored the thread.Message ID: @.***>

--

Kyle

irigyano commented 1 year ago

I just created a fresh python venv and cloned the repo, didn't encounter the problem, so I'm not really sure. I'm guessing the error happens when the bot tried to get stash state, if there's no data regex would cause problems.

Follow the steps see if there's more hint I can help with:

  1. Make sure coordination in constants.py matching with your resolution.
  2. Once you exercute the main.py, you should switch the window back to the game(otherwise the coordination would be offset).
  3. If the coordination is correct, first thing the bot will do is to click the STASH_COORDINATES in constants.py to open the stash. (So you need to find a reliable spot in your hideout to make sure there's no error in this step, usually would be at the corner).
  4. If you successfully open the stash, the bot should start scanning and setting the price.

I'm assuming the problem happened at step 3 or step 4, let me know if you have/need more info, thanks!