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

Command line tools not working #11

Open
naikymen opened this issue Jul 30, 2018 · 8 comments
Open

Command line tools not working #11

naikymen opened this issue Jul 30, 2018 · 8 comments

Comments

@naikymen
Copy link

naikymen commented Jul 30, 2018

Hello
Here I found notes on how to use the commandline tools.
https://github.com/rlabduke/MolProbity/blob/master/doc/command_line_tools.txt

After following the instructions in the README untill step 2, the "executables" in MolProbity/cmdline/ do not work.
I am trying to use MolProbity in a Docker container. PHP needed to be installed, and I downloaded version 7.2, but other errors appeared afterwards:

PHP Warning: include_once(/home/MolProbity/config/config.php): failed to open stream: No such file or directory in /home/MolProbity/lib/core.php on line 24

PHP Warning: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time in /home/MolProbity/lib/sessions.php on line 129 PHP Warning: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time in /home/MolProbity/lib/sessions.php on line 130 PHP Warning: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time in /home/MolProbity/lib/sessions.php on line 133 PHP Warning: session_name(): Cannot change session name when headers already sent in /home/MolProbity/lib/sessions.php on line 136 PHP Warning: session_set_save_handler(): Cannot change save handler when headers already sent in /home/MolProbity/lib/sessions.php on line 138 Illegal session ID: ''

A list of requirements and clear instructions is missing in the documentation. I know nothing about PHP.
How can i get the command-line tools working?

Best,
N

@saijananiganesan
Copy link

Is PHP a requirement for running command line tools? If so, this should be stated in the Readme file.

@a-r-j
Copy link

a-r-j commented Apr 27, 2020

Hi, did you figure out a solution to this? I'm running into the same error.

@prisant prisant closed this as completed Apr 29, 2020
@prisant prisant reopened this Apr 29, 2020
@prisant
Copy link
Collaborator

prisant commented Apr 29, 2020

(i) MolProbity code uses PHP 5.x and has not been updated to PHP 7.x. (In most Linux distributions it is possible to install the older PHP revision. (ii) Support has not yet been extended to installs in Docker containers.

@prisant
Copy link
Collaborator

prisant commented Apr 29, 2020

Also the commandline tools are being actively worked at the present time and therefore may be not stable in the near future

@naikymen
Copy link
Author

naikymen commented Apr 29, 2020

Hi! thank you for responding.

Please state these requirements in the readme file or elsewhere in the documentation. Otherwise significant user time might be lost.

I imagine this is also a concern for the developers, since citations can sometimes be important. For instance, MolProbity CLI tools were left out of the project I was working on because of this issue.

@balasrini32
Copy link

Has this been fixed?
I run into the same error as well.

@prisant I would be very grateful if you could update us

@chrissciwilliams
Copy link
Collaborator

I believe we have finally fixed this issue. Various problems with header creation have been resolved. MolProbity, including commandline tools, should now work on current PHP.

All of the fixes were in the molprobity code, not cctbx or other dependencies. So if your MolProbity installation is recent, you can update by:

  1. delete the molprobity directory found at the same level as build, conda_base, and modules
  2. git clone https://github.com/rlabduke/MolProbity.git molprobity
  3. cd molprobity
  4. run setup.sh

Of course, it is always safest to start a fresh installation and get the latest cctbx code, too.

If you find a cmdline tool that still does not work, please let me know which one.

Thank you for your patience,
-Christopher Williams
---Richardson Lab, Duke University

Repository owner deleted a comment from prisant Dec 20, 2021
@balasrini32
Copy link

Thank you very much Christopher!
It works for me with php 5.6 on conda - via https://anaconda.org/pwwang/php (With versions past 7.4 it still lands into errors with the curly braces etc)

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

No branches or pull requests

6 participants