Skip to content
New issue

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

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

Already on GitHub? # to your account

Fatal: No such file or directory; did you install phantomjs? - resolved now #922

Closed
TJ-888 opened this issue Jan 31, 2021 · 9 comments
Closed
Assignees
Labels

Comments

@TJ-888
Copy link

TJ-888 commented Jan 31, 2021

Getting that phantomjs error when trying to run the samples flow tag. Has followed the suggestion mentioned on the following link also but still got that error:

#601

@kensoh
Copy link
Member

kensoh commented Jan 31, 2021

Hi @TJ-888 the issue #601 deals with macOS security policy. The error message you seen above is more of the PhantomJS component not found. For TagUI, I package all the required components into a zip file so that you can unzip and run.

Can you try downloading using the steps here instead from the GitHub homepage Code -> Download zip link? (that one only downloads TagUI source code without any of the components required for it to run).

https://tagui.readthedocs.io/en/latest/setup.html

If that still does not work, can you try on your personal laptop to see if it helps? Some company IT anti-virus policy may accidentally mistake PhantomJS as some unrecognised app and blocks it from running as if the file is missing. Let me know how it goes!

@kensoh kensoh changed the title ERROR - Fatal: No such file or directory; did you install phantomjs? ERROR - Fatal: No such file or directory; did you install phantomjs? - check setup steps Jan 31, 2021
@kensoh kensoh added the query label Jan 31, 2021
@kensoh kensoh changed the title ERROR - Fatal: No such file or directory; did you install phantomjs? - check setup steps Fatal: No such file or directory; did you install phantomjs? - check setup steps Jan 31, 2021
@kensoh
Copy link
Member

kensoh commented Jan 31, 2021

More context on the train of thoughts at this video - https://www.youtube.com/watch?v=D9sjpSHLD3Q

@TJ-888
Copy link
Author

TJ-888 commented Jan 31, 2021

Hi @kensoh ,
Thanks for the quick reply. I should have given you more context about my environment for this issue:

  1. It is on my personal Mac book actually, still on High Sierra though
  2. I did follow the steps mentioned in the github and not just downloading the code as you said:
    https://tagui.readthedocs.io/en/latest/setup.html
  3. I could see the phantomjs package as part of the tagui package
  4. When I searched around for this issue, I came across issue PhantomJS error after upgrading to macOS Catalina - see solution here #601 that mentioned about Mac didn't trust to open any application unless we are ok with it. I meant for the following steps:

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

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

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.

Hence, I thought that I should have given a try and see if it could fix my issue but it didn't.

FYI, I did try to uninstall and reinstall again today but I still get the same error.
Any other thoughts?

Thanks,

@kensoh
Copy link
Member

kensoh commented Feb 1, 2021

Hi @TJ-888, thanks for sharing these details! I haven't come across such a situation reported by other users.

Can I check with you if you have some time at 3pm Singapore time this Thursday? There's a weekly Live Q&A session where we could look deeper into what's going on in your Mac environment. I can't think of any possible cause and there also isn't any log that I could get from you now because TagUI didn't even got started.

Here's the link to the Zoom meeting invite - #914 (comment)

Copying my team-mate @ruthtxh

@kensoh kensoh changed the title Fatal: No such file or directory; did you install phantomjs? - check setup steps Fatal: No such file or directory; did you install phantomjs? - pending live checks Feb 1, 2021
@lookang
Copy link
Contributor

lookang commented Feb 1, 2021

I managed to install and run tagUI on a MacOS
https://weelookang.blogspot.com/2020/12/managed-to-get-tagui-work-on-mac.html
please check tagUI is on your desktop, i tried to copy to another folder and it didn't work.

@TJ-888
Copy link
Author

TJ-888 commented Feb 2, 2021

Hi @kensoh , thanks for the reply and offer to have live session. However, the time difference could be a challenge for me :). Let me try the suggestion from lookang first. I will keep you posted about the result.

@kensoh
Copy link
Member

kensoh commented Feb 2, 2021

Sure @TJ-888, in the meantime, can you tell us where you unzip the tagui folder? I don't think this could have any impact why PhantomJS cannot be found, but checking just in case it is some unusual folder which no other users have tried before.

@TJ-888
Copy link
Author

TJ-888 commented Feb 3, 2021

Hi @kensoh , finally, I was able to manage and resolve it. I looked at the notes from @lookang too and redid the installation.
What puzzled me is I think I did the same steps before unless I missed something.
In any case, I was able to pass the phantom.js error but got the Library error.

I did manage to overcome this also after disabling the SIP and then install openssl and do the link as follow:

  1. brew install rbenv/tap/openssl@1.0
  2. ln -sfn /usr/local/Cellar/openssl@1.0/1.0.2t /usr/local/opt/openssl

Thanks for the support and thanks to @lookang also!

@kensoh
Copy link
Member

kensoh commented Feb 3, 2021

That's interesting, thanks @TJ-888 for sharing the update!

PS - pardon these rough edges..

@kensoh kensoh changed the title Fatal: No such file or directory; did you install phantomjs? - pending live checks Fatal: No such file or directory; did you install phantomjs? - resolved now Feb 3, 2021
@kensoh kensoh closed this as completed Feb 18, 2021
@kensoh kensoh self-assigned this Mar 22, 2021
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants