srounet / Pymem

A python library for windows, providing the needed functions to start working on your own with memory editing.
MIT License
307 stars 44 forks source link

argument 1: <class 'OverflowError'>: int too long to convert #19

Closed kivdev closed 3 years ago

kivdev commented 4 years ago

Python 3.7.2 Pymem==1.0 Windows 7 error Windows 10 no error J4wLHbJBnMs

srounet commented 4 years ago

Hi @kivdev thank you for reporting this issue, I've never heard of it before. seems like it's check_wow64 related. If you're not already on pymem's discord, I suggest you to come over, someone may already had the issue or could come up with a solution.

Unfortunately It's hard to say anything about this issue without more context.

https://discord.gg/xaWNac8

WEGFan commented 4 years ago

I added pymem_object.process_handle &= 0xffffffff after open process and it worked, don't know why

DyXel commented 4 years ago

Any solution for this problem? im experiencing this with a script i made, works fine on Windows 10, doesn't work on Windows 7.

WEGFan commented 4 years ago

Any solution for this problem? im experiencing this with a script i made, works fine on Windows 10, doesn't work on Windows 7.

try this:

p = pymem.Pymem()
p.open_process_from_name("program.exe")
p.process_handle &= 0xffffffff # this line
srounet commented 3 years ago

I'm closing the issue as nobody reported anything similar for a year. Feel free to create a new issue if the problem still occurs with pymem==1.8