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

RPA Python not working in MacOS Monterey - PHP removed, install PHP this way #335

Closed
684efs3 opened this issue Dec 7, 2021 · 3 comments
Closed
Labels

Comments

@684efs3
Copy link

684efs3 commented Dec 7, 2021

I just upgraded to MacOS Monterey and my previous RPA Python code no longer works. I am using RPA to open a website and now I get this:

I am using a Jupyter notebook.

import rpa as r

r.init(visual_automation = True)
r.url('https://www.yahoo.com')
r.close()

[RPA][ERROR] - following happens when starting TagUI...


[RPA][ERROR] - use init() before using url()
[RPA][ERROR] - use init() before using close()
False
@kensoh
Copy link
Member

kensoh commented Dec 9, 2021

Hi @684efs3, thanks for reporting this!

I'm seeing reports of this issue, due to the new macOS version removing PHP -
https://www.techgenyz.com/2021/06/18/macos-12-monterey-update-built-in-php/

Solution for now is to install PHP manually, unless this can be automated (I don't think so, need password to run homebrew) or co-packaged. Below will install Homebrew package manager, then install PHP which is required to run the rpa package.

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install php

Try the above to see if that works. I'm using Mac as well but am still keeping it at Catalina version so I can't replicate.

@kensoh kensoh added the bug label Dec 9, 2021
@kensoh kensoh changed the title RPA Python not working in MacOS Monterey Dec 9, 2021
@kensoh kensoh changed the title RPA Python not working in MacOS Monterey - PHP has been removed, try this to install PHP Dec 9, 2021
@kensoh kensoh changed the title RPA Python not working in MacOS Monterey - PHP is removed, try this to install PHP Dec 9, 2021
@684efs3
Copy link
Author

684efs3 commented Dec 12, 2021

Fixed - thank you very much!

@684efs3 684efs3 closed this as completed Dec 12, 2021
@kensoh kensoh reopened this Jan 11, 2022
@kensoh kensoh changed the title RPA Python not working in MacOS Monterey - PHP has been removed, install PHP this way Jan 11, 2022
@kensoh
Copy link
Member

kensoh commented Jan 19, 2022

Adding a note that upstream TagUI has a fix for newer PHP (eg v8.1.1) which has some problem with the code used to process datatables and object repositories. However, this is not needed here because for the Python package, those blocks of code are never executed (no concept of datatables or object repositories here).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2 participants