Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Setting Up In MacOS #29

Closed
ahmetutku opened this issue Apr 22, 2023 · 4 comments
Closed

Bug: Setting Up In MacOS #29

ahmetutku opened this issue Apr 22, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@ahmetutku
Copy link

Hello,
I was trying to set up everything in MacOS. I removed "pywin32==306" from the requirements.txt file instead of the readme file since it is not compatible with my Mac. However, I have been getting errors (as seen in the images attached).
Screen Shot 2023-04-21 at 19 25 05
Screen Shot 2023-04-21 at 19 25 22

@0dm
Copy link
Collaborator

0dm commented Apr 22, 2023

Hi @ahmetutku,

I also had to remove the pywin32 requirement on MacOS. I recommend removing your files and trying again, with these exact steps (from the README):

 git clone https://github.com/MLDSAI/puterbot.git
 cd puterbot
 python3.10 -m venv .venv
 source .venv/bin/activate
 pip install wheel

nano requirements.txt // (or use vim lol)
remove the line "pywin32==306"
ctrl+x => y

pip install -r requirements.txt
pip install -e .
alembic upgrade head

check if it works via python3.10 -m pytest
if so, you should be fine to run python puterbot/record.py "test"

I also suggest doing a very brief recording, just click around a few times and type a word. Longer recordings tend to cause more issues on my end.

@abrichr
Copy link
Member

abrichr commented Apr 22, 2023

Thank you @ahmetutku and @0dm !

I also had to remove the pywin32 requirement on MacOS. I

Fixed in #31

Longer recordings tend to cause more issues on my end.

Thank you for flagging, there is an open issue here: #5

However, I have been getting errors (as seen in the images attached).

@ahmetutku in the future please copy and paste instead of taking a screenshot of text.

It appears you are using the standard pynput from https://github.com/moses-palmer/pynput and not our custom version from https://github.com/abrichr/pynput. The latter is specified in the requirements.txt. Please stash your changes with git stash, try again, and let us know if this fixes your issue! 🙏

@abrichr abrichr added the bug Something isn't working label Apr 23, 2023
@abrichr abrichr changed the title Setting Up In MacOS Bug: Setting Up In MacOS May 3, 2023
@abrichr
Copy link
Member

abrichr commented May 3, 2023

@ahmetutku can we close this?

@ahmetutku
Copy link
Author

@abrichr Yup, problem solved! Thank you.

@abrichr abrichr closed this as completed May 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants