Command "install update" interrupted with error: FileExistsError : [Errno 17] File exists:

Bug #1917950 reported by Carli Smith
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MadGraph5_aMC@NLO
Fix Released
Undecided
Unassigned

Bug Description

Hello,

I was trying to install an update for madgraph but it wasn't working and giving me this error:

Command "install update" interrupted with error:
TypeError : cannot use a string pattern on a bytes-like object
Please report this bug on https://bugs.launchpad.net/mg5amcnlo
More information is found in 'MG5_debug'.
Please attach this file to your report.

which I fixed by editing the madgraph_interface.py file. I changed "text = filetext.read()" to "text = filetext.read().decode()" which was a solution I found from another error report. But now when I fun the update again it runs for a second but then gives me this:

Command "install update" interrupted with error:
FileExistsError : [Errno 17] File exists: '/Users/carlisavannah/Desktop/DarkMatterProject/MG5_aMC_v2_8_0/UPDATE_TMP'
Please report this bug on https://bugs.launchpad.net/mg5amcnlo
More information is found in 'MG5_debug'.
Please attach this file to your report.

Not sure what this means so if I could get some help that would be great! Thanks!

Revision history for this message
Carli Smith (csavannah) wrote :
Revision history for this message
Olivier Mattelaer (olivier-mattelaer) wrote : Re: [Bug 1917950] [NEW] Command "install update" interrupted with error: FileExistsError : [Errno 17] File exists:
Download full text (3.1 KiB)

Hi,

You can do a
"rm -rf /Users/carlisavannah/Desktop/DarkMatterProject/MG5_aMC_v2_8_0/UPDATE_TMP"

Then for doing the update, the best from 2.8.0 is to do that when using python2.
if you run
pythonn2.7 ./bin/mg5
and then do the "install update" yous should avoid all those python3 issue.

Cheers,

Olivier

> On 5 Mar 2021, at 22:58, Carli Smith <email address hidden> wrote:
>
> Public bug reported:
>
> Hello,
>
> I was trying to install an update for madgraph but it wasn't working and
> giving me this error:
>
> Command "install update" interrupted with error:
> TypeError : cannot use a string pattern on a bytes-like object
> Please report this bug on https://bugs.launchpad.net/mg5amcnlo
> More information is found in 'MG5_debug'.
> Please attach this file to your report.
>
> which I fixed by editing the madgraph_interface.py file. I changed "text
> = filetext.read()" to "text = filetext.read().decode()" which was a
> solution I found from another error report. But now when I fun the
> update again it runs for a second but then gives me this:
>
> Command "install update" interrupted with error:
> FileExistsError : [Errno 17] File exists: '/Users/carlisavannah/Desktop/DarkMatterProject/MG5_aMC_v2_8_0/UPDATE_TMP'
> Please report this bug on https://bugs.launchpad.net/mg5amcnlo
> More information is found in 'MG5_debug'.
> Please attach this file to your report.
>
> Not sure what this means so if I could get some help that would be
> great! Thanks!
>
> ** Affects: mg5amcnlo
> Importance: Undecided
> Status: New
>
> ** Attachment added: "MG5_debug"
> https://bugs.launchpad.net/bugs/1917950/+attachment/5473641/+files/MG5_debug
>
> --
> You received this bug notification because you are subscribed to
> MadGraph5_aMC@NLO.
> https://bugs.launchpad.net/bugs/1917950
>
> Title:
> Command "install update" interrupted with error: FileExistsError :
> [Errno 17] File exists:
>
> Status in MadGraph5_aMC@NLO:
> New
>
> Bug description:
> Hello,
>
> I was trying to install an update for madgraph but it wasn't working
> and giving me this error:
>
> Command "install update" interrupted with error:
> TypeError : cannot use a string pattern on a bytes-like object
> Please report this bug on https://bugs.launchpad.net/mg5amcnlo
> More information is found in 'MG5_debug'.
> Please attach this file to your report.
>
> which I fixed by editing the madgraph_interface.py file. I changed
> "text = filetext.read()" to "text = filetext.read().decode()" which
> was a solution I found from another error report. But now when I fun
> the update again it runs for a second but then gives me this:
>
> Command "install update" interrupted with error:
> FileExistsError : [Errno 17] File exists: '/Users/carlisavannah/Desktop/DarkMatterProject/MG5_aMC_v2_8_0/UPDATE_TMP'
> Please report this bug on https://bugs.launchpad.net/mg5amcnlo
> More information is found in 'MG5_debug'.
> Please attach this file to your report.
>
> Not sure what this means so if I could get some help that would be
> great! Thanks!
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/mg5amcnlo/+bug/1917950/+subscrip...

Read more...

Revision history for this message
Carli Smith (csavannah) wrote :

So I tried that rm -rf command that you suggested, then after trying to install the update in Python 2 it gave me the same "FileExistsError" as before except the issue was with a different file: MG5_aMC_v2_8_0/Template/LO

So I did the same thing "rm -rf /Users/carlisavannah/Desktop/DarkMatterProject/MG5_aMC_v2_8_0/Template/LO" and going back into Madgraph. However, when going back into it with the command ./bin/mg5_aMC I get this error:

FileNotFoundError: [Errno 2] No such file or directory: '/Users/carlisavannah/Desktop/DarkMatterProject/MG5_aMC_v2_8_0/Template/LO/Source/.make_opts'

I also can't get back into MadGraph using Python 2 either, it says "ImportError: No module named cPickle"

So maybe I accidentally deleted some necessary files, if that's the case I'm not sure how I'd get them back. Maybe I should just uninstall and then reinstall MadGraph and start fresh? Not sure.

Revision history for this message
Olivier Mattelaer (olivier-mattelaer) wrote : Re: [Bug 1917950] Command "install update" interrupted with error: FileExistsError : [Errno 17] File exists:

HI,

Indeed removing Template/LO is not a good idea. and the only solution is to proceed with a fresh installation now.
Sorry for that,

Olivier

> On 6 Mar 2021, at 03:12, Carli Smith <email address hidden> wrote:
>
> So I tried that rm -rf command that you suggested, then after trying to
> install the update in Python 2 it gave me the same "FileExistsError" as
> before except the issue was with a different file:
> MG5_aMC_v2_8_0/Template/LO
>
>
> So I did the same thing "rm -rf /Users/carlisavannah/Desktop/DarkMatterProject/MG5_aMC_v2_8_0/Template/LO" and going back into Madgraph. However, when going back into it with the command ./bin/mg5_aMC I get this error:
>
> FileNotFoundError: [Errno 2] No such file or directory:
> '/Users/carlisavannah/Desktop/DarkMatterProject/MG5_aMC_v2_8_0/Template/LO/Source/.make_opts'
>
> I also can't get back into MadGraph using Python 2 either, it says
> "ImportError: No module named cPickle"
>
> So maybe I accidentally deleted some necessary files, if that's the case
> I'm not sure how I'd get them back. Maybe I should just uninstall and
> then reinstall MadGraph and start fresh? Not sure.
>
>
> ** Attachment added: "MG5_debug"
> https://bugs.launchpad.net/mg5amcnlo/+bug/1917950/+attachment/5473673/+files/MG5_debug
>
> --
> You received this bug notification because you are subscribed to
> MadGraph5_aMC@NLO.
> https://bugs.launchpad.net/bugs/1917950
>
> Title:
> Command "install update" interrupted with error: FileExistsError :
> [Errno 17] File exists:
>
> Status in MadGraph5_aMC@NLO:
> New
>
> Bug description:
> Hello,
>
> I was trying to install an update for madgraph but it wasn't working
> and giving me this error:
>
> Command "install update" interrupted with error:
> TypeError : cannot use a string pattern on a bytes-like object
> Please report this bug on https://bugs.launchpad.net/mg5amcnlo
> More information is found in 'MG5_debug'.
> Please attach this file to your report.
>
> which I fixed by editing the madgraph_interface.py file. I changed
> "text = filetext.read()" to "text = filetext.read().decode()" which
> was a solution I found from another error report. But now when I fun
> the update again it runs for a second but then gives me this:
>
> Command "install update" interrupted with error:
> FileExistsError : [Errno 17] File exists: '/Users/carlisavannah/Desktop/DarkMatterProject/MG5_aMC_v2_8_0/UPDATE_TMP'
> Please report this bug on https://bugs.launchpad.net/mg5amcnlo
> More information is found in 'MG5_debug'.
> Please attach this file to your report.
>
> Not sure what this means so if I could get some help that would be
> great! Thanks!
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/mg5amcnlo/+bug/1917950/+subscriptions

Changed in mg5amcnlo:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.