<div dir="ltr">Hi Alfredo,<div><br></div><div>Have you source that environment file? Or you can logout then login to try to activate that file.</div><div><br></div><div>What you need is: <span style="color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;white-space:pre">PERL5LIB=/data/%PROJECT%/bin/mri/uploadNeuroDB:/data/%PROJECT%/bin/mri/dicom-archive:$PERL5LIB.</span></div><div>So I suppose that my suggested method should work for you, if not, try to check PERL5LIB with "echo $PERL5LIB"</div><div><br></div><div>Good luck.</div><div><br></div><div>Ling Ma</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Mar 30, 2020 at 10:18 PM Morales Pinzon, Alfredo <<a href="mailto:AMORALESPINZON@bwh.harvard.edu">AMORALESPINZON@bwh.harvard.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div style="overflow-wrap: break-word;">
Hi Ling Ma,
<div><br>
</div>
<div>Thank you for the prompt response.</div>
<div><br>
</div>
<div>I already had the statement because I am upgrading from v18.0.0. However I double checked and the .bashrc file has the statement. </div>
<div><br>
</div>
<div>Any other ideas of where to look for?</div>
<div><br>
</div>
<div>Regards,</div>
<div>Alfredo.<br>
<div><br>
<blockquote type="cite">
<div>On Mar 30, 2020, at 9:49 PM, Ling Ma <<a href="mailto:lingyun.ma@mcin.ca" target="_blank">lingyun.ma@mcin.ca</a>> wrote:</div>
<br>
<div>
<p><span style="padding:3px 10px;border-radius:5px;color:rgb(255,255,255);font-weight:bold;display:inline-block;background-color:rgb(255,0,0)"> External Email - Use Caution </span></p>
<div><br>
</div>
<div dir="ltr">Hi Alfredo,
<div><br>
</div>
<div>I believe you need to read the <a href="https://github.com/aces/Loris-MRI/blob/21.0-dev/README.md#5-configure-paths-and-environment" target="_blank">https://github.com/aces/Loris-MRI/blob/21.0-dev/README.md#5-configure-paths-and-environment</a>, which
says:</div>
<div></div>
<div><span style="color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:16px"><br>
</span></div>
<div><span style="color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:16px">"Ensure that /home/lorisadmin/.bashrc includes the statement:</span><br>
</div>
<div>
<p style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:16px">
<code style="box-sizing:border-box;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:13.6px;padding:0.2em 0.4em;margin:0px;background-color:rgba(27,31,35,0.05);border-radius:3px">source /data/$projectname/bin/mri/environment</code></p>
<p style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:16px">
Then source the .bashrc file."</p>
<p style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"">
Regards,<br>
</p>
<p style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"">
Ling Ma</p>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Mon, Mar 30, 2020 at 8:08 PM Morales Pinzon, Alfredo <<a href="mailto:AMORALESPINZON@bwh.harvard.edu" target="_blank">AMORALESPINZON@bwh.harvard.edu</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>Hi Cécile and LorisDev team,
<div><br>
</div>
<div>Indeed, there are some breaking changes so I decided to upgrade to LORIS-MRI v21.0.0. After upgrading I am running the suggested script “ <span style="font-family:Menlo;font-size:11px"><a href="http://cleanup_paths_of_violation_tables.pl/" target="_blank">cleanup_paths_of_violation_tables.pl</a></span>”
before running the deletion script but I get the following error:</div>
<div>
<div><br>
</div>
<div>===</div>
<div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo">
<span style="font-variant-ligatures:no-common-ligatures;color:rgb(86,32,244)"><b>bin/mri/tools</b></span><span style="font-variant-ligatures:no-common-ligatures">$ perl
<a href="http://cleanup_paths_of_violation_tables.pl/" target="_blank">cleanup_paths_of_violation_tables.pl</a> </span></div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo">
<span style="font-variant-ligatures:no-common-ligatures">Can't locate DICOM/DICOM.pm in @INC (you may need to install the DICOM::DICOM module) (@INC contains: /opt/minc/1.9.16/perl /opt/minc/1.9.16/pipeline /data_/ipmsa/loris_data/IPMSA/bin/mri/uploadNeuroDB
/opt/minc/1.9.16/perl /opt/minc/1.9.16/pipeline /data_/ipmsa/loris_data/IPMSA/bin/mri/uploadNeuroDB /opt/minc/1.9.16/perl /opt/minc/1.9.16/pipeline /data_/ipmsa/loris_data/IPMSA/bin/mri/uploadNeuroDB /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.22.1 /usr/local/share/perl/5.22.1
/usr/lib/x86_64-linux-gnu/perl5/5.22 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.22 /usr/share/perl/5.22 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base .) at /data_/ipmsa/loris_data/IPMSA/bin/mri/uploadNeuroDB/NeuroDB/MRI.pm line 47.</span></div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo">
<span style="font-variant-ligatures:no-common-ligatures">BEGIN failed--compilation aborted at /data_/ipmsa/loris_data/IPMSA/bin/mri/uploadNeuroDB/NeuroDB/MRI.pm line 47.</span></div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo">
<span style="font-variant-ligatures:no-common-ligatures">Compilation failed in require at
<a href="http://cleanup_paths_of_violation_tables.pl/" target="_blank">cleanup_paths_of_violation_tables.pl</a> line 9.</span></div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo">
<span style="font-variant-ligatures:no-common-ligatures">BEGIN failed--compilation aborted at
<a href="http://cleanup_paths_of_violation_tables.pl/" target="_blank">cleanup_paths_of_violation_tables.pl</a> line 9.</span></div>
</div>
<div>===</div>
<div><br>
</div>
<div>Any idea how to solve it? I couldn’t find it in the troubleshooting guideline (<a href="https://github.com/aces/Loris-MRI/blob/21.0-dev/docs/AppendixA-Troubleshooting_guideline.md" target="_blank">https://github.com/aces/Loris-MRI/blob/21.0-dev/docs/AppendixA-Troubleshooting_guideline.md</a>)</div>
<div><br>
</div>
<div>Regards,</div>
<div>Alfredo.</div>
<div><br>
<blockquote type="cite">
<div>On Mar 9, 2020, at 11:17 AM, Cecile Madjar <<a href="mailto:cecile.madjar@mcin.ca" target="_blank">cecile.madjar@mcin.ca</a>> wrote:</div>
<br>
<div>
<p><span style="padding:3px 10px;border-radius:5px;color:rgb(255,255,255);font-weight:bold;display:inline-block;background-color:rgb(255,0,0)"> External Email - Use Caution </span></p>
<div><br>
</div>
<div dir="ltr">Hi Alfredo,
<div><br>
</div>
<div>Have you tested your MRI code since you did the upgrade on the LORIS? There might be some SQL changes impacting the LORIS-MRI side as well (conversion of the ranges in mri_protocol and mri_protocol_checks to MIN and MAX columns for example). </div>
<div><br>
</div>
<div>If all works well, you can try downloading and testing the<span style="color:rgb(80,0,80)"> </span><a href="http://delete_imaging_upload.pl/" target="_blank">delete_imaging_upload.pl</a> and it may work as is. </div>
<div><br>
</div>
<div>Let me know how this goes!</div>
<div><br>
</div>
<div>Cécile</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Mon, Mar 9, 2020 at 9:12 AM Morales Pinzon, Alfredo <<a href="mailto:AMORALESPINZON@bwh.harvard.edu" target="_blank">AMORALESPINZON@bwh.harvard.edu</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<div>Dear Loris DevTeam,</div>
<div><br>
</div>
<div>I finally upgraded LORIS to v21.0.0 so that we can delete images using the scripts from LORIS-MRI. Next step would be to upgrade LORIS-MRI to v21.0.0, I am currently running v18.0.0. </div>
<div><br>
</div>
<div>Given that I have made modification to the core of the library (MRI.pm) and created scripts for uploading masks and transformation that are working properly and might be impacted if I upgrade the code, would it be possible to “import” and use
the script <a href="http://delete_imaging_upload.pl/" target="_blank">delete_imaging_upload.pl</a> without upgrading LORIS-MRI?</div>
<div><br>
</div>
<div>Let me know if this is possible. I would prefer to keep the library as it is cause it’s working perfect for us right now.</div>
<div><br>
</div>
<div>Regards,</div>
<div>Alfredo.</div>
<div><br>
<blockquote type="cite">
<div>On Mar 2, 2020, at 12:02 PM, Morales Pinzon, Alfredo <<a href="mailto:AMORALESPINZON@BWH.HARVARD.EDU" target="_blank">AMORALESPINZON@BWH.HARVARD.EDU</a>> wrote:</div>
<br>
<div>
<div>Hi Cécile,
<div><br>
</div>
<div>I finally upgraded LORIS to v21.0.0 so that we can delete images using the scripts from LORIS-MRI. Next step would be to upgrade LORIS-MRI to v21.0.0, <span>I am currently running v18.0.0</span>. </div>
<div><br>
</div>
<div><span>Given that I have made modification to the core of the library (MRI.pm) and created scripts for uploading masks and transformation that are working properly and might be impacted if I upgrade the code, w</span>ould it be possible
to “import” and use the script <a href="http://delete_imaging_upload.pl/" target="_blank">delete_imaging_upload.pl</a> without upgrading LORIS-MRI?</div>
<div><br>
</div>
<div>Let me know if this is possible. I would prefer to keep the library as it is cause it’s working perfect for us right now.</div>
<div><br>
</div>
<div>Regards,</div>
<div>Alfredo.</div>
<div>
<div><br>
<blockquote type="cite">
<div>On Feb 4, 2020, at 11:26 AM, Morales Pinzon, Alfredo <<a href="mailto:AMORALESPINZON@BWH.HARVARD.EDU" target="_blank">AMORALESPINZON@BWH.HARVARD.EDU</a>> wrote:</div>
<br>
<div>
<div>Hi Cécile,
<div><br>
</div>
<div>Thank you for your answer. I will use it once some uploading processes are finished so that I can upgrade LORIS to the its last version where the script is available. I will tell you how it goes.</div>
<div><br>
</div>
<div>Best,</div>
<div>Alfredo.<br>
<div><br>
<blockquote type="cite">
<div>On Feb 4, 2020, at 9:46 AM, Cecile Madjar <<a href="mailto:cecile.madjar@mcin.ca" target="_blank">cecile.madjar@mcin.ca</a>> wrote:</div>
<br>
<div>
<p><span style="padding:3px 10px;border-radius:5px;color:rgb(255,255,255);font-weight:bold;display:inline-block;background-color:rgb(255,0,0)"> External Email - Use Caution </span></p>
<div><br>
</div>
<div dir="ltr">Hi Alfredo,
<div><br>
</div>
<div>Indeed, the <a href="http://delete_imaging_upload.pl/" target="_blank">
delete_imaging_upload.pl</a> script was designed to properly remove imaging dataset without touching the other tables in the database. By defaults, the script will create a backup of the removed dataset (files + MySQL entries) which is always nice to have in
case the delete script was run on a wrong dataset.</div>
<div><br>
</div>
<div>Run "<a href="http://delete_imaging_upload.pl/" target="_blank">delete_imaging_upload.pl</a> -h " to see the list of options that can be used. </div>
<div><br>
</div>
<div>Let me know if you have any questions.</div>
<div><br>
</div>
<div>Cécile</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Mon, Feb 3, 2020 at 6:37 PM Morales Pinzon, Alfredo <<a href="mailto:AMORALESPINZON@bwh.harvard.edu" target="_blank">AMORALESPINZON@bwh.harvard.edu</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt">
<div style="margin:0px;font-size:12pt;font-family:Calibri,Arial,Helvetica,sans-serif">
Hi Cecile,</div>
<div style="margin:0px;font-size:12pt;font-family:Calibri,Arial,Helvetica,sans-serif">
<br>
</div>
<div style="margin:0px;font-size:12pt;font-family:Calibri,Arial,Helvetica,sans-serif">
In IPMSA we need to re-upload a whole study in terms of MRI images. Given that I already created all the centers, users in centers, candidates, and visits (clinical and mri), would it be possible to only remove the MRI images previously uploaded? Looking at
the script <a href="https://github.com/aces/Loris-MRI/blob/9fe2972c15e4ddb5da0914d751f9bdb74bf2d7f8/tools/delete_imaging_upload.pl" title="https://github.com/aces/Loris-MRI/blob/9fe2972c15e4ddb5da0914d751f9bdb74bf2d7f8/tools/delete_imaging_upload.pl" style="margin:0px" target="_blank">delete_imaging_upload.pl</a> it
seems to be possible (I can get all the Tarchive IDs assoicated) but I want to confirm before I move forward. Please let me know if this is possible.</div>
<div style="margin:0px;font-size:12pt;font-family:Calibri,Arial,Helvetica,sans-serif">
<br>
</div>
<div style="margin:0px;font-size:12pt;font-family:Calibri,Arial,Helvetica,sans-serif">
Thank you for all your help.</div>
<div style="margin:0px;font-size:12pt;font-family:Calibri,Arial,Helvetica,sans-serif">
<br>
</div>
<div style="margin:0px;font-size:12pt;font-family:Calibri,Arial,Helvetica,sans-serif">
Regards,</div>
<div style="margin:0px;font-size:12pt;font-family:Calibri,Arial,Helvetica,sans-serif">
Alfredo.</div>
</div>
<div id="gmail-m_-3516021941828923376gmail-m_-7760920740367697378gmail-m_-5224080615048525280gmail-m_557516744926230718Signature">
<div><br>
</div>
</div>
<div><br>
</div>
<p>The information in this e-mail is intended only for the person to whom it is<br>
addressed. If you believe this e-mail was sent to you in error and the e-mail<br>
contains patient information, please contact the Partners Compliance HelpLine at<br>
<a href="http://www.partners.org/complianceline" target="_blank">http://www.partners.org/complianceline</a> . If the e-mail was sent to you in error<br>
but does not contain patient information, please contact the sender and properly<br>
dispose of the e-mail.</p>
</div>
</blockquote>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
_______________________________________________<br>
Loris-dev mailing list<br>
<a href="mailto:Loris-dev@bic.mni.mcgill.ca" target="_blank">Loris-dev@bic.mni.mcgill.ca</a><br>
<a href="https://mailman.bic.mni.mcgill.ca/mailman/listinfo/loris-dev" rel="noreferrer" target="_blank">https://mailman.bic.mni.mcgill.ca/mailman/listinfo/loris-dev</a><br>
</blockquote>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</blockquote></div>