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

PhantomJS error after upgrading to macOS Catalina - see solution here #601

Closed
kensoh opened this issue Oct 25, 2019 · 6 comments
Closed
Labels

Comments

@kensoh
Copy link
Member

kensoh commented Oct 25, 2019

After upgrading to macOS Catalina release, users may encounter a popup window saying that phantomjs is an unrecognised application downloaded from the internet. This is because Catalina release implements stricter security and access controls for applications running on macOS.

PS - PhantomJS is the execution engine for TagUI and is a critical component for TagUI to work.


I don't have a screenshot of the popup window anymore because I have fixed this on my laptop, it looks something similar to below image (for Terraform, another popular app that's also affected)
terraform

@kensoh kensoh added the query label Oct 25, 2019
@kensoh kensoh changed the title PhantomJS error after upgrading to macOS Catalina - solution here PhantomJS error after upgrading to macOS Catalina - see solution here Oct 25, 2019
@kensoh
Copy link
Member Author

kensoh commented Oct 25, 2019

  1. From macOS Finder, go to the folder where you unzipped and installed TagUI.

  2. Go to src --> phantomjs --> bin folder. Right-click phantomjs icon and click Open.

  3. If a macOS prompt appears to ask whether to open the application because it is untrusted and downloaded from the internet, click Open to add the app to list of trusted apps.

  4. If you enter a PhantomJS terminal prompt, press Ctrl+C to exit.

  5. Try running TagUI again and the popup warning message should disappear.

kensoh added a commit to tebelorg/TagUI that referenced this issue Oct 30, 2019
…date

see issues aisingapore#598 and aisingapore#601 for details showing how to address the tighter security controls
kensoh added a commit that referenced this issue Oct 30, 2019
see issues #598 and #601 for details showing how to address the tighter security controls
@kensoh
Copy link
Member Author

kensoh commented Oct 30, 2019

Updated to readme with a link to this solution, keeping issue open for time being before closing.

@lajennylove
Copy link

What should I do if I installed phantomjs with homebrew?
$ brew install phantomjs

@kensoh
Copy link
Member Author

kensoh commented Feb 3, 2021

Hi @lajennylove that should be ok. If you follow the setup steps here, the packaged zip will come with PhantomJS and TagUI will use the one that comes with it. https://tagui.readthedocs.io/en/latest/setup.html

You can do the same steps here - #601 (comment)

@komirand
Copy link

komirand commented Apr 1, 2022

so followed above steps from comment 601 and also this part

then run the following:
-MacBook-Pro ~ % ln -sf /Users/kaarlomiranda/Desktop/tagui/src/tagui /usr/local/bin/tagui
-MacBook-Pro ~ % tagui /Users/kaarlomiranda/Desktop/tagui/flows/samples/1_google.tag

what got is /usr/local/bin/tagui: line 300: php: command not found
Unable to open file: /Users/kaarlomiranda/Desktop/tagui/flows/samples/1_google.tag.js

phantomjs://code/bootstrap.js:113 in __die
Unable to load script /Users/kaarlomiranda/Desktop/tagui/flows/samples/1_google.tag.js; check file syntax

phantomjs://code/bootstrap.js:113 in __die
kaarlomiranda@kaarlos-MacBook-Pro ~ % tagui /Users/kaarlomiranda/Desktop/tagui/flows/samples/1_google.tag
/usr/local/bin/tagui: line 300: php: command not found
Unable to open file: /Users/kaarlomiranda/Desktop/tagui/flows/samples/1_google.tag.js

phantomjs://code/bootstrap.js:113 in __die
Unable to load script /Users/kaarlomiranda/Desktop/tagui/flows/samples/1_google.tag.js; check file syntax

phantomjs://code/bootstrap.js:113 in __die

am i missing a step? iv uninstalled php8.1 and installed back php7.1

@komirand
Copy link

komirand commented Apr 2, 2022

i was able to resolve above issue by following these steps from another thread, i can now run the sample flows from the initial installation. But i have to make sure that run this on the machine macos recently updated to monterey using m1 chip.
#1136 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants