Re: [MacPorts] #54469: problem using python 3.6 in Sierra 10.12.5/Xcode 8.3.3

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [MacPorts] #54469: problem using python 3.6 in Sierra 10.12.5/Xcode 8.3.3

Kurt Pfeifle via macports-users

> Le 12 juil. 2017 à 17:19, MacPorts <[hidden email]> a écrit :
>
> #54469: problem using python 3.6 in Sierra 10.12.5/Xcode 8.3.3
> ------------------------+----------------------------
>  Reporter:  lpagani91  |      Owner:  jyrkiwahlstedt
>      Type:  defect     |     Status:  closed
>  Priority:  Normal     |  Milestone:
> Component:  ports      |    Version:  2.4.1
> Resolution:  invalid    |   Keywords:
>      Port:  python36   |
> ------------------------+----------------------------
>
> Comment (by mf2k):
>
> To clarify, your Xcode command line tools are out of date. Did you follow
> the wiki:Migration Instructions?

Sort of…

My XCode info window says I have 8.3.3
When I run softwareupdate :

Lorenzo>softwareupdate --list
Software Update Tool

Finding available software
No new software available.

it finds nothing to update. So my CLT should be uptodate. I don’t understand why python3.6 is finding an older version.





> --
> Ticket URL: <https://trac.macports.org/ticket/54469#comment:4>
> MacPorts <https://www.macports.org/>
> Ports system for macOS

"S'il n'y a pas de solution, c'est qu'il n'y a pas de problème" (devise Shadok)

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [MacPorts] #54469: problem using python 3.6 in Sierra 10.12.5/Xcode 8.3.3

mf2k

On Jul 12, 2017, at 9:40 AM, pagani laurent via macports-users <[hidden email]> wrote:


Le 12 juil. 2017 à 17:19, MacPorts <[hidden email]> a écrit :

#54469: problem using python 3.6 in Sierra 10.12.5/Xcode 8.3.3
------------------------+----------------------------
Reporter:  lpagani91  |      Owner:  jyrkiwahlstedt
    Type:  defect     |     Status:  closed
Priority:  Normal     |  Milestone:
Component:  ports      |    Version:  2.4.1
Resolution:  invalid    |   Keywords:
    Port:  python36   |
------------------------+----------------------------

Comment (by mf2k):

To clarify, your Xcode command line tools are out of date. Did you follow
the wiki:Migration Instructions?

Sort of…

My XCode info window says I have 8.3.3
When I run softwareupdate :

Lorenzo>softwareupdate --list
Software Update Tool

Finding available software
No new software available.

it finds nothing to update. So my CLT should be uptodate. I don’t understand why python3.6 is finding an older version.

Maybe it was built with the old command line tools then. Can you try rebuilding it?

sudo port -f uninstall python36
sudo port install python36


-Frank

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [MacPorts] #54469: problem using python 3.6 in Sierra 10.12.5/Xcode 8.3.3

Kurt Pfeifle via macports-users

Le 12 juil. 2017 à 17:44, <[hidden email]> <[hidden email]> a écrit :


On Jul 12, 2017, at 9:40 AM, pagani laurent via macports-users <[hidden email]> wrote:


Le 12 juil. 2017 à 17:19, MacPorts <[hidden email]> a écrit :

#54469: problem using python 3.6 in Sierra 10.12.5/Xcode 8.3.3
------------------------+----------------------------
Reporter:  lpagani91  |      Owner:  jyrkiwahlstedt
    Type:  defect     |     Status:  closed
Priority:  Normal     |  Milestone:
Component:  ports      |    Version:  2.4.1
Resolution:  invalid    |   Keywords:
    Port:  python36   |
------------------------+----------------------------

Comment (by mf2k):

To clarify, your Xcode command line tools are out of date. Did you follow
the wiki:Migration Instructions?

Sort of…

My XCode info window says I have 8.3.3
When I run softwareupdate :

Lorenzo>softwareupdate --list
Software Update Tool

Finding available software
No new software available.

it finds nothing to update. So my CLT should be uptodate. I don’t understand why python3.6 is finding an older version.

Maybe it was built with the old command line tools then. Can you try rebuilding it?

sudo port -f uninstall python36
sudo port install python36

That is exactly what I did just before I posted the failure message.

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [MacPorts] #54469: problem using python 3.6 in Sierra 10.12.5/Xcode 8.3.3

mf2k

On Jul 12, 2017, at 9:47 AM, pagani laurent <[hidden email]> wrote:


Le 12 juil. 2017 à 17:44, <[hidden email]> <[hidden email]> a écrit :


On Jul 12, 2017, at 9:40 AM, pagani laurent via macports-users <[hidden email]> wrote:


Le 12 juil. 2017 à 17:19, MacPorts <[hidden email]> a écrit :

#54469: problem using python 3.6 in Sierra 10.12.5/Xcode 8.3.3
------------------------+----------------------------
Reporter:  lpagani91  |      Owner:  jyrkiwahlstedt
    Type:  defect     |     Status:  closed
Priority:  Normal     |  Milestone:
Component:  ports      |    Version:  2.4.1
Resolution:  invalid    |   Keywords:
    Port:  python36   |
------------------------+----------------------------

Comment (by mf2k):

To clarify, your Xcode command line tools are out of date. Did you follow
the wiki:Migration Instructions?

Sort of…

My XCode info window says I have 8.3.3
When I run softwareupdate :

Lorenzo>softwareupdate --list
Software Update Tool

Finding available software
No new software available.

it finds nothing to update. So my CLT should be uptodate. I don’t understand why python3.6 is finding an older version.

Maybe it was built with the old command line tools then. Can you try rebuilding it?

sudo port -f uninstall python36
sudo port install python36

That is exactly what I did just before I posted the failure message.

I see from the other thread that you rebuilt python35, so you also rebuilt python36 then?

What is the output of this?

echo -en "=== $(/usr/bin/xcodebuild -version |head -n1) ===\n * '''Xcode''': $(/usr/bin/xcodebuild -version |tail -1)\n$(test -x /usr/bin/gcc-3.3 && echo " * '''gcc-3.3''': $(/usr/bin/gcc-3.3 --version 2>/dev/null |head -1)\n")$(test -x /usr/bin/gcc-4.0 && echo " * '''gcc-4.0''': $(/usr/bin/gcc-4.0 --version 2>/dev/null |head -1)\n")$(test -x /usr/bin/gcc-4.2 && echo " * '''gcc-4.2''': $(/usr/bin/gcc-4.2 --version 2>/dev/null |head -1)\n")$((test -x /usr/bin/llvm-gcc-4.2 || test -x /Developer/usr/bin/llvm-gcc-4.2) && echo " * '''llvm-gcc''': $((/usr/bin/llvm-gcc --version 2>/dev/null || /Developer/usr/bin/llvm-gcc --version 2>/dev/null) |head -1)\n")$((test -x /usr/bin/clang || test -x /Developer/usr/bin/clang) && echo " * '''clang''': $((test -x /usr/bin/clang && /usr/bin/clang --version 2>&1 || /Developer/usr/bin/clang --version 2>&1) |head -1)\n")" |tee /dev/tty |pbcopy


-Frank


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [MacPorts] #54469: problem using python 3.6 in Sierra 10.12.5/Xcode 8.3.3

Kurt Pfeifle via macports-users

Le 12 juil. 2017 à 17:52, <[hidden email]> <[hidden email]> a écrit :


On Jul 12, 2017, at 9:47 AM, pagani laurent <[hidden email]> wrote:


Le 12 juil. 2017 à 17:44, <[hidden email]> <[hidden email]> a écrit :


On Jul 12, 2017, at 9:40 AM, pagani laurent via macports-users <[hidden email]> wrote:


Le 12 juil. 2017 à 17:19, MacPorts <[hidden email]> a écrit :

#54469: problem using python 3.6 in Sierra 10.12.5/Xcode 8.3.3
------------------------+----------------------------
Reporter:  lpagani91  |      Owner:  jyrkiwahlstedt
    Type:  defect     |     Status:  closed
Priority:  Normal     |  Milestone:
Component:  ports      |    Version:  2.4.1
Resolution:  invalid    |   Keywords:
    Port:  python36   |
------------------------+----------------------------

Comment (by mf2k):

To clarify, your Xcode command line tools are out of date. Did you follow
the wiki:Migration Instructions?

Sort of…

My XCode info window says I have 8.3.3
When I run softwareupdate :

Lorenzo>softwareupdate --list
Software Update Tool

Finding available software
No new software available.

it finds nothing to update. So my CLT should be uptodate. I don’t understand why python3.6 is finding an older version.

Maybe it was built with the old command line tools then. Can you try rebuilding it?

sudo port -f uninstall python36
sudo port install python36

That is exactly what I did just before I posted the failure message.

I see from the other thread that you rebuilt python35, so you also rebuilt python36 then?

Yes! 3.5 was pretending being 3.5.3 package but execution was showing 3.5.2. After successful uninstall/reinstall I tried the same trick with 3.6 but with no success.


What is the output of this?

echo -en "=== $(/usr/bin/xcodebuild -version |head -n1) ===\n * '''Xcode''': $(/usr/bin/xcodebuild -version |tail -1)\n$(test -x /usr/bin/gcc-3.3 && echo " * '''gcc-3.3''': $(/usr/bin/gcc-3.3 --version 2>/dev/null |head -1)\n")$(test -x /usr/bin/gcc-4.0 && echo " * '''gcc-4.0''': $(/usr/bin/gcc-4.0 --version 2>/dev/null |head -1)\n")$(test -x /usr/bin/gcc-4.2 && echo " * '''gcc-4.2''': $(/usr/bin/gcc-4.2 --version 2>/dev/null |head -1)\n")$((test -x /usr/bin/llvm-gcc-4.2 || test -x /Developer/usr/bin/llvm-gcc-4.2) && echo " * '''llvm-gcc''': $((/usr/bin/llvm-gcc --version 2>/dev/null || /Developer/usr/bin/llvm-gcc --version 2>/dev/null) |head -1)\n")$((test -x /usr/bin/clang || test -x /Developer/usr/bin/clang) && echo " * '''clang''': $((test -x /usr/bin/clang && /usr/bin/clang --version 2>&1 || /Developer/usr/bin/clang --version 2>&1) |head -1)\n")" |tee /dev/tty |pbcopy

Waouh! Under tcsh, it failed, under bash :

=== Xcode 8.3.3 ===
 * '''Xcode''': Build version 8E3004b
 * '''clang''': Apple LLVM version 8.1.0 (clang-802.0.42)

Laurent





-Frank



"S'il n'y a pas de solution, c'est qu'il n'y a pas de problème" (devise Shadok)

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [MacPorts] #54469: problem using python 3.6 in Sierra 10.12.5/Xcode 8.3.3

Rainer Müller-4
In reply to this post by Kurt Pfeifle via macports-users
On 2017-07-12 17:40, pagani laurent via macports-users wrote:

> My XCode info window says I have 8.3.3
> When I run softwareupdate :
>
> Lorenzo>softwareupdate --list
> Software Update Tool
>
> Finding available software
> No new software available.
>
> it finds nothing to update. So my CLT should be uptodate. I don’t understand why python3.6 is finding an older version.

Did you install CLT at all?
Try to trigger an installation with 'xcode-select --install'.

Rainer
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [MacPorts] #54469: problem using python 3.6 in Sierra 10.12.5/Xcode 8.3.3

mf2k
In reply to this post by Kurt Pfeifle via macports-users

On Jul 12, 2017, at 9:56 AM, pagani laurent <[hidden email]> wrote:


Le 12 juil. 2017 à 17:52, <[hidden email]> <[hidden email]> a écrit :


On Jul 12, 2017, at 9:47 AM, pagani laurent <[hidden email]> wrote:


Le 12 juil. 2017 à 17:44, <[hidden email]> <[hidden email]> a écrit :


On Jul 12, 2017, at 9:40 AM, pagani laurent via macports-users <[hidden email]> wrote:


Le 12 juil. 2017 à 17:19, MacPorts <[hidden email]> a écrit :

#54469: problem using python 3.6 in Sierra 10.12.5/Xcode 8.3.3
------------------------+----------------------------
Reporter:  lpagani91  |      Owner:  jyrkiwahlstedt
    Type:  defect     |     Status:  closed
Priority:  Normal     |  Milestone:
Component:  ports      |    Version:  2.4.1
Resolution:  invalid    |   Keywords:
    Port:  python36   |
------------------------+----------------------------

Comment (by mf2k):

To clarify, your Xcode command line tools are out of date. Did you follow
the wiki:Migration Instructions?

Sort of…

My XCode info window says I have 8.3.3
When I run softwareupdate :

Lorenzo>softwareupdate --list
Software Update Tool

Finding available software
No new software available.

it finds nothing to update. So my CLT should be uptodate. I don’t understand why python3.6 is finding an older version.

Maybe it was built with the old command line tools then. Can you try rebuilding it?

sudo port -f uninstall python36
sudo port install python36

That is exactly what I did just before I posted the failure message.

I see from the other thread that you rebuilt python35, so you also rebuilt python36 then?

Yes! 3.5 was pretending being 3.5.3 package but execution was showing 3.5.2. After successful uninstall/reinstall I tried the same trick with 3.6 but with no success.


What is the output of this?

echo -en "=== $(/usr/bin/xcodebuild -version |head -n1) ===\n * '''Xcode''': $(/usr/bin/xcodebuild -version |tail -1)\n$(test -x /usr/bin/gcc-3.3 && echo " * '''gcc-3.3''': $(/usr/bin/gcc-3.3 --version 2>/dev/null |head -1)\n")$(test -x /usr/bin/gcc-4.0 && echo " * '''gcc-4.0''': $(/usr/bin/gcc-4.0 --version 2>/dev/null |head -1)\n")$(test -x /usr/bin/gcc-4.2 && echo " * '''gcc-4.2''': $(/usr/bin/gcc-4.2 --version 2>/dev/null |head -1)\n")$((test -x /usr/bin/llvm-gcc-4.2 || test -x /Developer/usr/bin/llvm-gcc-4.2) && echo " * '''llvm-gcc''': $((/usr/bin/llvm-gcc --version 2>/dev/null || /Developer/usr/bin/llvm-gcc --version 2>/dev/null) |head -1)\n")$((test -x /usr/bin/clang || test -x /Developer/usr/bin/clang) && echo " * '''clang''': $((test -x /usr/bin/clang && /usr/bin/clang --version 2>&1 || /Developer/usr/bin/clang --version 2>&1) |head -1)\n")" |tee /dev/tty |pbcopy

Waouh! Under tcsh, it failed, under bash :

=== Xcode 8.3.3 ===
 * '''Xcode''': Build version 8E3004b
 * '''clang''': Apple LLVM version 8.1.0 (clang-802.0.42)

That looks good. So now when you launch python3.6, what is the output?



Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [MacPorts] #54469: problem using python 3.6 in Sierra 10.12.5/Xcode 8.3.3

Kurt Pfeifle via macports-users

Le 12 juil. 2017 à 18:00, <[hidden email]> <[hidden email]> a écrit :


On Jul 12, 2017, at 9:56 AM, pagani laurent <[hidden email]> wrote:


Le 12 juil. 2017 à 17:52, <[hidden email]> <[hidden email]> a écrit :


On Jul 12, 2017, at 9:47 AM, pagani laurent <[hidden email]> wrote:


Le 12 juil. 2017 à 17:44, <[hidden email]> <[hidden email]> a écrit :


On Jul 12, 2017, at 9:40 AM, pagani laurent via macports-users <[hidden email]> wrote:


Le 12 juil. 2017 à 17:19, MacPorts <[hidden email]> a écrit :

#54469: problem using python 3.6 in Sierra 10.12.5/Xcode 8.3.3
------------------------+----------------------------
Reporter:  lpagani91  |      Owner:  jyrkiwahlstedt
    Type:  defect     |     Status:  closed
Priority:  Normal     |  Milestone:
Component:  ports      |    Version:  2.4.1
Resolution:  invalid    |   Keywords:
    Port:  python36   |
------------------------+----------------------------

Comment (by mf2k):

To clarify, your Xcode command line tools are out of date. Did you follow
the wiki:Migration Instructions?

Sort of…

My XCode info window says I have 8.3.3
When I run softwareupdate :

Lorenzo>softwareupdate --list
Software Update Tool

Finding available software
No new software available.

it finds nothing to update. So my CLT should be uptodate. I don’t understand why python3.6 is finding an older version.

Maybe it was built with the old command line tools then. Can you try rebuilding it?

sudo port -f uninstall python36
sudo port install python36

That is exactly what I did just before I posted the failure message.

I see from the other thread that you rebuilt python35, so you also rebuilt python36 then?

Yes! 3.5 was pretending being 3.5.3 package but execution was showing 3.5.2. After successful uninstall/reinstall I tried the same trick with 3.6 but with no success.


What is the output of this?

echo -en "=== $(/usr/bin/xcodebuild -version |head -n1) ===\n * '''Xcode''': $(/usr/bin/xcodebuild -version |tail -1)\n$(test -x /usr/bin/gcc-3.3 && echo " * '''gcc-3.3''': $(/usr/bin/gcc-3.3 --version 2>/dev/null |head -1)\n")$(test -x /usr/bin/gcc-4.0 && echo " * '''gcc-4.0''': $(/usr/bin/gcc-4.0 --version 2>/dev/null |head -1)\n")$(test -x /usr/bin/gcc-4.2 && echo " * '''gcc-4.2''': $(/usr/bin/gcc-4.2 --version 2>/dev/null |head -1)\n")$((test -x /usr/bin/llvm-gcc-4.2 || test -x /Developer/usr/bin/llvm-gcc-4.2) && echo " * '''llvm-gcc''': $((/usr/bin/llvm-gcc --version 2>/dev/null || /Developer/usr/bin/llvm-gcc --version 2>/dev/null) |head -1)\n")$((test -x /usr/bin/clang || test -x /Developer/usr/bin/clang) && echo " * '''clang''': $((test -x /usr/bin/clang && /usr/bin/clang --version 2>&1 || /Developer/usr/bin/clang --version 2>&1) |head -1)\n")" |tee /dev/tty |pbcopy

Waouh! Under tcsh, it failed, under bash :

=== Xcode 8.3.3 ===
 * '''Xcode''': Build version 8E3004b
 * '''clang''': Apple LLVM version 8.1.0 (clang-802.0.42)

That looks good. So now when you launch python3.6, what is the output?

The same as before. I even tried to uninstall and reinstall again python3.6 but the result is the same. Even a ”print” command makes it crash.
Perhaps I should reboot after the last Xcode (partial) update : when I opened it the first time after upgrading to 8.3.3, it asked me to install 3 or 4 S/W to run but I have not rebooted since it was not asked but that does not sound very rational…






"S'il n'y a pas de solution, c'est qu'il n'y a pas de problème" (devise Shadok)

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [MacPorts] #54469: problem using python 3.6 in Sierra 10.12.5/Xcode 8.3.3

mf2k

On Jul 12, 2017, at 12:32 PM, pagani laurent <[hidden email]> wrote:


Le 12 juil. 2017 à 18:00, <[hidden email]> <[hidden email]> a écrit :


On Jul 12, 2017, at 9:56 AM, pagani laurent <[hidden email]> wrote:


Le 12 juil. 2017 à 17:52, <[hidden email]> <[hidden email]> a écrit :


On Jul 12, 2017, at 9:47 AM, pagani laurent <[hidden email]> wrote:


Le 12 juil. 2017 à 17:44, <[hidden email]> <[hidden email]> a écrit :


On Jul 12, 2017, at 9:40 AM, pagani laurent via macports-users <[hidden email]> wrote:


Le 12 juil. 2017 à 17:19, MacPorts <[hidden email]> a écrit :

#54469: problem using python 3.6 in Sierra 10.12.5/Xcode 8.3.3
------------------------+----------------------------
Reporter:  lpagani91  |      Owner:  jyrkiwahlstedt
    Type:  defect     |     Status:  closed
Priority:  Normal     |  Milestone:
Component:  ports      |    Version:  2.4.1
Resolution:  invalid    |   Keywords:
    Port:  python36   |
------------------------+----------------------------

Comment (by mf2k):

To clarify, your Xcode command line tools are out of date. Did you follow
the wiki:Migration Instructions?

Sort of…

My XCode info window says I have 8.3.3
When I run softwareupdate :

Lorenzo>softwareupdate --list
Software Update Tool

Finding available software
No new software available.

it finds nothing to update. So my CLT should be uptodate. I don’t understand why python3.6 is finding an older version.

Maybe it was built with the old command line tools then. Can you try rebuilding it?

sudo port -f uninstall python36
sudo port install python36

That is exactly what I did just before I posted the failure message.

I see from the other thread that you rebuilt python35, so you also rebuilt python36 then?

Yes! 3.5 was pretending being 3.5.3 package but execution was showing 3.5.2. After successful uninstall/reinstall I tried the same trick with 3.6 but with no success.


What is the output of this?

echo -en "=== $(/usr/bin/xcodebuild -version |head -n1) ===\n * '''Xcode''': $(/usr/bin/xcodebuild -version |tail -1)\n$(test -x /usr/bin/gcc-3.3 && echo " * '''gcc-3.3''': $(/usr/bin/gcc-3.3 --version 2>/dev/null |head -1)\n")$(test -x /usr/bin/gcc-4.0 && echo " * '''gcc-4.0''': $(/usr/bin/gcc-4.0 --version 2>/dev/null |head -1)\n")$(test -x /usr/bin/gcc-4.2 && echo " * '''gcc-4.2''': $(/usr/bin/gcc-4.2 --version 2>/dev/null |head -1)\n")$((test -x /usr/bin/llvm-gcc-4.2 || test -x /Developer/usr/bin/llvm-gcc-4.2) && echo " * '''llvm-gcc''': $((/usr/bin/llvm-gcc --version 2>/dev/null || /Developer/usr/bin/llvm-gcc --version 2>/dev/null) |head -1)\n")$((test -x /usr/bin/clang || test -x /Developer/usr/bin/clang) && echo " * '''clang''': $((test -x /usr/bin/clang && /usr/bin/clang --version 2>&1 || /Developer/usr/bin/clang --version 2>&1) |head -1)\n")" |tee /dev/tty |pbcopy

Waouh! Under tcsh, it failed, under bash :

=== Xcode 8.3.3 ===
 * '''Xcode''': Build version 8E3004b
 * '''clang''': Apple LLVM version 8.1.0 (clang-802.0.42)

That looks good. So now when you launch python3.6, what is the output?

The same as before. I even tried to uninstall and reinstall again python3.6 but the result is the same. Even a ”print” command makes it crash.
Perhaps I should reboot after the last Xcode (partial) update : when I opened it the first time after upgrading to 8.3.3, it asked me to install 3 or 4 S/W to run but I have not rebooted since it was not asked but that does not sound very rational…

It is worth a try. 





Loading...