Opened 8 years ago

Closed 8 years ago

#49718 closed defect (invalid)

python27: sh: --: No such file or directory

Reported by: malcolm@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: Cc:
Port: python27

Description (last modified by ryandesign (Ryan Carsten Schmidt))

I followed the updating instructions on this page: wiki:Migration

But several reinstallations are failing due to python27, which won't install.

I've done a clean of python27, and then rerun

sudo port install python27

But no joy.

I have attached the log.

Attachments (2)

main.log (19.8 KB) - added by malcolm@… 8 years ago.
main.2.log (35.9 KB) - added by malcolm@… 8 years ago.

Download all attachments as: .zip

Change History (8)

Changed 8 years ago by malcolm@…

Attachment: main.log added

comment:1 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Keywords: python removed
Summary: El Capitan won't install python27python27: sh: --: No such file or directory

The log says:

sh: --: No such file or directory

That's fairly bizarre.

Your log is not from a clean build attempt, so as a first step, please "sudo port clean python27" and then try again, and attach the new main.log if it fails again.

comment:2 in reply to:  1 Changed 8 years ago by malcolm@…

Replying to ryandesign@…:

The log says:

sh: --: No such file or directory

That's fairly bizarre.

Your log is not from a clean build attempt, so as a first step, please "sudo port clean python27" and then try again, and attach the new main.log if it fails again.

Thanks.

Ok, here's the result:

Malcolm-MacBookPro-2013:~ malcolm$ sudo port clean python27
Password:
--->  Cleaning python27
Malcolm-MacBookPro-2013:~ malcolm$ sudo port install python27
--->  Computing dependencies for python27
Warning: Your DNS servers incorrectly claim to know the address of nonexistent hosts. This may cause checksum mismatches for some ports. See this page for more information: <https://trac.macports.org/wiki/MisbehavingServers>
--->  Fetching distfiles for python27
--->  Verifying checksums for python27
--->  Extracting python27
--->  Applying patches to python27
--->  Configuring python27
Error: org.macports.configure for port python27 returned: configure failure: command execution failed
Please see the log file for port python27 for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python27/python27/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port python27 failed
Last edited 8 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

Changed 8 years ago by malcolm@…

Attachment: main.2.log added

comment:3 Changed 8 years ago by malcolm@…

I've also changed my DNS to Google 8.8.8.8, seeing as there was once the message about MisbehavingServers. Then I did a clean and tried again to install python27, but unfortunately this produced exactly the same log as before.

For what it's worth: which sh produces /bin/sh, it's there of course and the No such file or directory is pretty mysterious

comment:4 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)

It's not saying the file sh doesn't exist; it's saying the program sh has determined that the file -- does not exist.

I see the problem now: Your log shows the following configure argument is being used: --enable-framework=<-->/opt/local/Library/Frameworks

What is the value of frameworks_dir in your macports.conf file?

comment:5 Changed 8 years ago by malcolm@…

You spotted it!

That was it! What was presumably once a hidden tab, somehow turned itself into code. I just removed the <--> and it now all works.

Thanks so much. The sun has suddenly come out and driven those storm clouds away...

And I have just seen the magical words

--->  Cleaning python27
--->  Updating database of binaries
--->  Scanning binaries for linking errors
--->  No broken files found.             

Pretend I've just bought you a beer.

Last edited 8 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:6 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: invalid
Status: newclosed

I'm glad that was it!

Note: See TracTickets for help on using tickets.