<div dir="ltr"><div><div><div>Hello Andy,<br><br></div>I have added the print statements:<br> print "cwd: "+cwd<br></div> print "datpath: "+datpath<br> print "tempdir: "+tempdir<br><br>
</div><div>
after each respective variable is created and also <br></div><br>'print tempdir' before 'pngproc = subprocess.Popen(pngcmd, stdout=subprocess.PIPE, cwd=tempdir)'<br><div><br><br></div><div>Attached is a script 'rivet-mkhtml_error.log' of the error as before. <br>
<br>I see from this output that 'tmpdir' is in my '/tmp/cembree' directory but all the files here have full rwx privileges for the owner (but none for group or others). The 'cembree' directory in '/tmp' also has full rwx privilages for the owner but none else.<br>
<br><br></div><div>Regards,<br>Cameron Embree<br></div><div><br><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jul 10, 2014 at 7:00 PM, Andy Buckley <span dir="ltr"><<a href="mailto:andy.buckley@cern.ch" target="_blank">andy.buckley@cern.ch</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Cameron,<br>
<br>
Thanks for that. The permission problem isn't with subprocess.py itself<br>
(that's a library source file, not an executable script), but with how<br>
it is trying to call a subprocess:<br>
<br>
File "/afs/<a href="http://cern.ch/user/c/cembree/public/progs/bin/make-plots" target="_blank">cern.ch/user/c/cembree/public/progs/bin/make-plots</a>", line<br>
2212, in mkpng<br>
pngproc = subprocess.Popen(pngcmd, stdout=subprocess.PIPE, cwd=tempdir)<br>
<br>
Can you try to add "print tempdir" on the line before this, i.e. insert<br>
it on line 2212 (coincidentally equal to the proton PDG code!) of your<br>
make-plots? That way you can see what working directory the mkpng<br>
function is trying to use... I suspect it is not in a helpful place, for<br>
some reason.<br>
<br>
Thanks again,<br>
Andy<br>
<div><div><br>
<br>
<br>
On 10/07/14 13:48, Cameron Embree wrote:<br>
> Hello Andy,<br>
><br>
>> please make sure to reply-all to keep the whole Rivet<br>
>> developer list involved.<br>
><br>
> Sorry, I will do that.<br>
><br>
>> Very hard to tell from that amount of information: can you send a more<br>
>> complete log message? For example, make sure that the patched make-plots<br>
>> file is executable, that you are writing to a directory that you have<br>
>> write-permissions on, etc.<br>
><br>
> I have attached a log file of the following events to show:<br>
> - the ‘make-plots’ is updated and executable<br>
> - my writing output directory has write-permission<br>
> - the regular error output from ‘rivet-mkhtml'<br>
> - the verbose output from ‘rivet-mkhtml'<br>
><br>
> The verbose output of ‘rivet-mkhtml’ is quite long, sorry! From this<br>
> verbose<br>
> output I see:<br>
><br>
> OSError: [Errno 13] Permission denied<br>
><br>
> generated from a local Python file '/usr/lib64/python2.6/subprocess.py'<br>
> on my<br>
> machine. Again, I am running a relatively fresh install of SLC6.<br>
><br>
> I ensured that ‘subprocess.py’ is executable by everyone (it was not<br>
> before)<br>
> but the same errors are still generated.<br>
><br>
><br>
> Regards,<br>
> Cameron Embree<br>
><br>
><br>
><br>
><br>
</div></div>> On Jul 9, 2014, at 6:23 PM, Andy Buckley <<a href="mailto:andy.buckley@cern.ch" target="_blank">andy.buckley@cern.ch</a><br>
<div>> <mailto:<a href="mailto:andy.buckley@cern.ch" target="_blank">andy.buckley@cern.ch</a>>> wrote:<br>
><br>
>> On 09/07/14 16:04, Cameron Embree wrote:<br>
>>> Hello Andy,<br>
>><br>
</div>>> Hi Cameron -- please make sure to reply-all to keep the whole Rivet<br>
>> developer list involved.<br>
>><br>
<div>>>> The change you suggested worked for finding my latex, thank you!<br>
>><br>
>> Good!<br>
>><br>
>>> I now, however, get an error:<br>
>>><br>
>>> Error: [Errno 13] Permission denied<br>
>>><br>
>>> after each attempt to plot something. Do you think this is coming from my<br>
>>> Python? I ensured that each file to be plotted had rwx privileges for<br>
>>> all<br>
>>> user groups, but this did not seem to help.<br>
>><br>
</div><div>>> Very hard to tell from that amount of information: can you send a more<br>
>> complete log message? For example, make sure that the patched make-plots<br>
>> file is executable, that you are writing to a directory that you have<br>
>> write-permissions on, etc.<br>
>><br>
</div><div><div>>> Cheers,<br>
>> Andy<br>
>><br>
>><br>
>><br>
>>> On Jul 8, 2014, at 8:39 PM, Andy Buckley <<a href="mailto:andy.buckley@cern.ch" target="_blank">andy.buckley@cern.ch</a><br>
>>> <mailto:<a href="mailto:andy.buckley@cern.ch" target="_blank">andy.buckley@cern.ch</a>><br>
>>> <mailto:<a href="mailto:andy.buckley@cern.ch" target="_blank">andy.buckley@cern.ch</a>>> wrote:<br>
>>><br>
>>>> On 25/06/14 13:25, Cameron Embree wrote:<br>
>>>>> Hello,<br>
>>>>><br>
>>>>> I am trying to perform a ‘rivet-mkhtml’ on a YODA file and I get the<br>
>>>>> following error:<br>
>>>>><br>
>>>>> ERROR: required program ‘latex’ could not be found. Exiting…<br>
>>>>><br>
>>>>> However, latex is in my $PATH under ‘/usr/bin’ and is found when I<br>
>>>>> perform a ‘which latex’, providing the following:<br>
>>>>><br>
>>>>> /user/bin/latex<br>
>>>>><br>
>>>>> I am running on a computer at CERN running SLC6 and am not sure if<br>
>>>>> there is an explicit way to point Rivet/YODA at my latex (perhaps<br>
>>>>> during the YODA installation process?). Should I perhaps install some<br>
>>>>> local version of latex instead of the one built into SLC6?<br>
>>>><br>
>>>> Hi Cameron,<br>
>>>><br>
>>>> Sorry for the delayed response. That is strange -- the script should be<br>
>>>> finding your LaTeX installation.<br>
>>>><br>
>>>> I wonder if this is actually related to another bug report that we had<br>
>>>> in the last week, about make-plots (the script in Rivet that actually<br>
>>>> does the plotting) using constructs that require Python 2.7. If your<br>
>>>> environment is using an earlier Python, e.g. 2.6, then maybe try<br>
>>>> applying this small patch to bin/make-plots:<br>
>>>><br>
>>>> <a href="https://rivet.hepforge.org/hg/rivet/rev/a8c29394d2ba" target="_blank">https://rivet.hepforge.org/hg/rivet/rev/a8c29394d2ba</a><br>
>>>><br>
>>>> Let us know how that goes, and we'll try to get it solved.<br>
>>>><br>
>>>> Cheers,<br>
>>>> Andy<br>
>>>><br>
>>>> --<br>
>>>> Dr Andy Buckley, Royal Society University Research Fellow<br>
>>>> Particle Physics Expt Group, University of Glasgow / PH Dept, CERN<br>
>>><br>
>><br>
>><br>
>> --<br>
>> Dr Andy Buckley, Royal Society University Research Fellow<br>
>> Particle Physics Expt Group, University of Glasgow / PH Dept, CERN<br>
><br>
<br>
<br>
--<br>
Dr Andy Buckley, Royal Society University Research Fellow<br>
Particle Physics Expt Group, University of Glasgow / PH Dept, CERN<br>
</div></div></blockquote></div><br></div></div>