public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* scons v4.3.0-1 outputs nothing on cygwin v2. 3.1
@ 2022-05-13 15:45 Martin Ortuno
  2022-05-13 16:51 ` William Deegan
  0 siblings, 1 reply; 14+ messages in thread
From: Martin Ortuno @ 2022-05-13 15:45 UTC (permalink / raw)
  To: cygwin

Hi everyone,
On one project we are using cygwin v2.3.1 for 32 bits as a building
environment... We are integrating a library that is built scons, I tried to
run scons v4.3.0-1 but when I prompt scons on the command line.
Scons -v outputs nothing...

I would appreciate your support in this matters...
Thank you,
Martin

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: scons v4.3.0-1 outputs nothing on cygwin v2. 3.1
  2022-05-13 15:45 scons v4.3.0-1 outputs nothing on cygwin v2. 3.1 Martin Ortuno
@ 2022-05-13 16:51 ` William Deegan
  2022-05-13 20:30   ` Martin Ortuno
  0 siblings, 1 reply; 14+ messages in thread
From: William Deegan @ 2022-05-13 16:51 UTC (permalink / raw)
  To: Martin Ortuno; +Cc: Cygwin List

Are you sure you're running scons from cygwin?
Which version of python do you have installed?

On Fri, May 13, 2022 at 8:46 AM Martin Ortuno <
martinortunogonzalez@gmail.com> wrote:

> Hi everyone,
> On one project we are using cygwin v2.3.1 for 32 bits as a building
> environment... We are integrating a library that is built scons, I tried to
> run scons v4.3.0-1 but when I prompt scons on the command line.
> Scons -v outputs nothing...
>
> I would appreciate your support in this matters...
> Thank you,
> Martin
>
> --
> Problem reports:      https://cygwin.com/problems.html
> FAQ:                  https://cygwin.com/faq/
> Documentation:        https://cygwin.com/docs.html
> Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple
>

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: scons v4.3.0-1 outputs nothing on cygwin v2. 3.1
  2022-05-13 16:51 ` William Deegan
@ 2022-05-13 20:30   ` Martin Ortuno
  2022-05-13 20:41     ` Martin Ortuno
  0 siblings, 1 reply; 14+ messages in thread
From: Martin Ortuno @ 2022-05-13 20:30 UTC (permalink / raw)
  To: William Deegan; +Cc: Cygwin List

On the cygwin envuronment i have both python 2.7.10 and python 3.4.3, the
one which is by default is python 2...
Pretty sure that's the reason why is not working, i think we need python
3.9 for scons...
The problem now is that i cannot install successfully python 3.9. I tried
with the setup-x86, just updating python3... However after that python3
stops working...
I'd appreciate any advice or support...
Thanks,
Martin

El vie., 13 de mayo de 2022 11:51 a. m., William Deegan <bdbaddog@gmail.com>
escribió:

> Are you sure you're running scons from cygwin?
> Which version of python do you have installed?
>
> On Fri, May 13, 2022 at 8:46 AM Martin Ortuno <
> martinortunogonzalez@gmail.com> wrote:
>
>> Hi everyone,
>> On one project we are using cygwin v2.3.1 for 32 bits as a building
>> environment... We are integrating a library that is built scons, I tried
>> to
>> run scons v4.3.0-1 but when I prompt scons on the command line.
>> Scons -v outputs nothing...
>>
>> I would appreciate your support in this matters...
>> Thank you,
>> Martin
>>
>> --
>> Problem reports:      https://cygwin.com/problems.html
>> FAQ:                  https://cygwin.com/faq/
>> Documentation:        https://cygwin.com/docs.html
>> Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple
>>
>

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: scons v4.3.0-1 outputs nothing on cygwin v2. 3.1
  2022-05-13 20:30   ` Martin Ortuno
@ 2022-05-13 20:41     ` Martin Ortuno
  2022-05-13 22:12       ` William Deegan
  0 siblings, 1 reply; 14+ messages in thread
From: Martin Ortuno @ 2022-05-13 20:41 UTC (permalink / raw)
  To: William Deegan; +Cc: Cygwin List

Actually i tried to open python3.9 from windows directly  and then the
application crashes saying:
"The procedure entry point __locale_ctype_ptr could not be located in the
dynamic link library
C:\Path\toCygwin\bin\libpython3.9.dll"

Thanks again...
Martin

El vie., 13 de mayo de 2022 3:30 p. m., Martin Ortuno <
martinortunogonzalez@gmail.com> escribió:

> On the cygwin envuronment i have both python 2.7.10 and python 3.4.3, the
> one which is by default is python 2...
> Pretty sure that's the reason why is not working, i think we need python
> 3.9 for scons...
> The problem now is that i cannot install successfully python 3.9. I tried
> with the setup-x86, just updating python3... However after that python3
> stops working...
> I'd appreciate any advice or support...
> Thanks,
> Martin
>
> El vie., 13 de mayo de 2022 11:51 a. m., William Deegan <
> bdbaddog@gmail.com> escribió:
>
>> Are you sure you're running scons from cygwin?
>> Which version of python do you have installed?
>>
>> On Fri, May 13, 2022 at 8:46 AM Martin Ortuno <
>> martinortunogonzalez@gmail.com> wrote:
>>
>>> Hi everyone,
>>> On one project we are using cygwin v2.3.1 for 32 bits as a building
>>> environment... We are integrating a library that is built scons, I tried
>>> to
>>> run scons v4.3.0-1 but when I prompt scons on the command line.
>>> Scons -v outputs nothing...
>>>
>>> I would appreciate your support in this matters...
>>> Thank you,
>>> Martin
>>>
>>> --
>>> Problem reports:      https://cygwin.com/problems.html
>>> FAQ:                  https://cygwin.com/faq/
>>> Documentation:        https://cygwin.com/docs.html
>>> Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple
>>>
>>

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: scons v4.3.0-1 outputs nothing on cygwin v2. 3.1
  2022-05-13 20:41     ` Martin Ortuno
@ 2022-05-13 22:12       ` William Deegan
  2022-05-13 22:16         ` Martin Ortuno
  0 siblings, 1 reply; 14+ messages in thread
From: William Deegan @ 2022-05-13 22:12 UTC (permalink / raw)
  To: Martin Ortuno; +Cc: Cygwin List

vi `which scons`
and see which python it's trying to use.
(from within your cygwin shell)

Very surprised you get no output.

On Fri, May 13, 2022 at 1:41 PM Martin Ortuno <
martinortunogonzalez@gmail.com> wrote:

> Actually i tried to open python3.9 from windows directly  and then the
> application crashes saying:
> "The procedure entry point __locale_ctype_ptr could not be located in the
> dynamic link library
> C:\Path\toCygwin\bin\libpython3.9.dll"
>
> Thanks again...
> Martin
>
> El vie., 13 de mayo de 2022 3:30 p. m., Martin Ortuno <
> martinortunogonzalez@gmail.com> escribió:
>
>> On the cygwin envuronment i have both python 2.7.10 and python 3.4.3, the
>> one which is by default is python 2...
>> Pretty sure that's the reason why is not working, i think we need python
>> 3.9 for scons...
>> The problem now is that i cannot install successfully python 3.9. I tried
>> with the setup-x86, just updating python3... However after that python3
>> stops working...
>> I'd appreciate any advice or support...
>> Thanks,
>> Martin
>>
>> El vie., 13 de mayo de 2022 11:51 a. m., William Deegan <
>> bdbaddog@gmail.com> escribió:
>>
>>> Are you sure you're running scons from cygwin?
>>> Which version of python do you have installed?
>>>
>>> On Fri, May 13, 2022 at 8:46 AM Martin Ortuno <
>>> martinortunogonzalez@gmail.com> wrote:
>>>
>>>> Hi everyone,
>>>> On one project we are using cygwin v2.3.1 for 32 bits as a building
>>>> environment... We are integrating a library that is built scons, I
>>>> tried to
>>>> run scons v4.3.0-1 but when I prompt scons on the command line.
>>>> Scons -v outputs nothing...
>>>>
>>>> I would appreciate your support in this matters...
>>>> Thank you,
>>>> Martin
>>>>
>>>> --
>>>> Problem reports:      https://cygwin.com/problems.html
>>>> FAQ:                  https://cygwin.com/faq/
>>>> Documentation:        https://cygwin.com/docs.html
>>>> Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple
>>>>
>>>

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: scons v4.3.0-1 outputs nothing on cygwin v2. 3.1
  2022-05-13 22:12       ` William Deegan
@ 2022-05-13 22:16         ` Martin Ortuno
  2022-05-13 22:46           ` Brian Inglis
  0 siblings, 1 reply; 14+ messages in thread
From: Martin Ortuno @ 2022-05-13 22:16 UTC (permalink / raw)
  To: William Deegan; +Cc: Cygwin List

I am prompting which scons:
Output:
/bin/scons/
Thanks,
Martin

El vie., 13 de mayo de 2022 5:12 p. m., William Deegan <bdbaddog@gmail.com>
escribió:

> vi `which scons`
> and see which python it's trying to use.
> (from within your cygwin shell)
>
> Very surprised you get no output.
>
> On Fri, May 13, 2022 at 1:41 PM Martin Ortuno <
> martinortunogonzalez@gmail.com> wrote:
>
>> Actually i tried to open python3.9 from windows directly  and then the
>> application crashes saying:
>> "The procedure entry point __locale_ctype_ptr could not be located in the
>> dynamic link library
>> C:\Path\toCygwin\bin\libpython3.9.dll"
>>
>> Thanks again...
>> Martin
>>
>> El vie., 13 de mayo de 2022 3:30 p. m., Martin Ortuno <
>> martinortunogonzalez@gmail.com> escribió:
>>
>>> On the cygwin envuronment i have both python 2.7.10 and python 3.4.3,
>>> the one which is by default is python 2...
>>> Pretty sure that's the reason why is not working, i think we need python
>>> 3.9 for scons...
>>> The problem now is that i cannot install successfully python 3.9. I
>>> tried with the setup-x86, just updating python3... However after that
>>> python3 stops working...
>>> I'd appreciate any advice or support...
>>> Thanks,
>>> Martin
>>>
>>> El vie., 13 de mayo de 2022 11:51 a. m., William Deegan <
>>> bdbaddog@gmail.com> escribió:
>>>
>>>> Are you sure you're running scons from cygwin?
>>>> Which version of python do you have installed?
>>>>
>>>> On Fri, May 13, 2022 at 8:46 AM Martin Ortuno <
>>>> martinortunogonzalez@gmail.com> wrote:
>>>>
>>>>> Hi everyone,
>>>>> On one project we are using cygwin v2.3.1 for 32 bits as a building
>>>>> environment... We are integrating a library that is built scons, I
>>>>> tried to
>>>>> run scons v4.3.0-1 but when I prompt scons on the command line.
>>>>> Scons -v outputs nothing...
>>>>>
>>>>> I would appreciate your support in this matters...
>>>>> Thank you,
>>>>> Martin
>>>>>
>>>>> --
>>>>> Problem reports:      https://cygwin.com/problems.html
>>>>> FAQ:                  https://cygwin.com/faq/
>>>>> Documentation:        https://cygwin.com/docs.html
>>>>> Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple
>>>>>
>>>>

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: scons v4.3.0-1 outputs nothing on cygwin v2. 3.1
  2022-05-13 22:16         ` Martin Ortuno
@ 2022-05-13 22:46           ` Brian Inglis
  2022-05-15 17:10             ` Martin Ortuno
  0 siblings, 1 reply; 14+ messages in thread
From: Brian Inglis @ 2022-05-13 22:46 UTC (permalink / raw)
  To: cygwin

On 2022-05-13 16:16, Martin Ortuno wrote:
> El vie., 13 de mayo de 2022 5:12 p. m., William Deegan escribió:
>> On Fri, May 13, 2022 at 1:41 PM Martin Ortuno wrote:
>>> El vie., 13 de mayo de 2022 3:30 p. m., Martin Ortuno escribió:
>>>> El vie., 13 de mayo de 2022 11:51 a. m., William Deegan escribió:
 >>>>> On Fri, May 13, 2022 at 8:46 AM Martin Ortuno wrote:>>>>>> On one 
project we are using cygwin v2.3.1 for 32 bits as a
 >>>>>> building environment... We are integrating a library that
 >>>>>> is built scons, I tried to run scons v4.3.0-1 but when I
 >>>>>> prompt scons on the command line.
 >>>>>> Scons -v outputs nothing...
 >>>>>> I would appreciate your support in this matters...

>>>>> Are you sure you're running scons from cygwin?
>>>>> Which version of python do you have installed?

>>>> On the cygwin envuronment i have both python 2.7.10 and python 3.4.3,
>>>> the one which is by default is python 2...
>>>> Pretty sure that's the reason why is not working, i think we need python
>>>> 3.9 for scons...
>>>> The problem now is that i cannot install successfully python 3.9. I
>>>> tried with the setup-x86, just updating python3... However after that
>>>> python3 stops working...
>>>> I'd appreciate any advice or support...

>>> Actually i tried to open python3.9 from windows directly  and then the
>>> application crashes saying:
>>> "The procedure entry point __locale_ctype_ptr could not be located in the
>>> dynamic link library
>>> C:\Path\toCygwin\bin\libpython3.9.dll"

>> vi `which scons`
>> and see which python it's trying to use.
>> (from within your cygwin shell)
>> Very surprised you get no output.

 > I am prompting which scons:
 > Output:
 > /bin/scons/

That output makes no sense!
Please paste actual commands and outputs from terminal.

Might be more useful running:

	$ ls -glo /usr/bin/python
	lrwxrwxrwx 1 24 Feb 17  2021 /usr/bin/python -> /etc/alternatives/python
	$ alternatives --display python
	python - status is auto.
	 link currently points to /usr/bin/python3.9
	/usr/bin/python2.7 - priority 27
	/usr/bin/python3.8 - priority 38
	/usr/bin/python3.7 - priority 37
	/usr/bin/python3.6 - priority 36
	/usr/bin/python3.9 - priority 39
	Current `best' version is /usr/bin/python3.9.
	$ cygcheck -c scons
	Cygwin Package Information
	Package              Version        Status
	scons                ...            OK
	$ head -n1 /usr/bin/scons
	#!/usr/bin/python...

-- 
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

This email may be disturbing to some readers as it contains
too much technical detail. Reader discretion is advised.
[Data in binary units and prefixes, physical quantities in SI.]

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: scons v4.3.0-1 outputs nothing on cygwin v2. 3.1
  2022-05-13 22:46           ` Brian Inglis
@ 2022-05-15 17:10             ` Martin Ortuno
  2022-05-15 20:43               ` Brian Inglis
  0 siblings, 1 reply; 14+ messages in thread
From: Martin Ortuno @ 2022-05-15 17:10 UTC (permalink / raw)
  To: Cygwin List

Hi all,
Here the information you requested:

$ ls -glo /usr/bin/python

lrwxrwxrwx 1 13 Jun  3  2015 /usr/bin/python -> python2.7.exe



$ alternatives --display python

python - status is auto.

link currently points to /usr/bin/python3.9

/usr/bin/python3.9 - priority 39

Current `best' version is /usr/bin/python3.9.



$ cygcheck -c scons

Cygwin Package Information

Package              Version        Status

scons                4.3.0-1        OK



$ head -n1 /usr/bin/scons

#!/usr/bin/python3.9.exe

Thank you for your support...

Martin

El vie., 13 de mayo de 2022 5:47 p. m., Brian Inglis <
Brian.Inglis@systematicsw.ab.ca> escribió:

> On 2022-05-13 16:16, Martin Ortuno wrote:
> > El vie., 13 de mayo de 2022 5:12 p. m., William Deegan escribió:
> >> On Fri, May 13, 2022 at 1:41 PM Martin Ortuno wrote:
> >>> El vie., 13 de mayo de 2022 3:30 p. m., Martin Ortuno escribió:
> >>>> El vie., 13 de mayo de 2022 11:51 a. m., William Deegan escribió:
>  >>>>> On Fri, May 13, 2022 at 8:46 AM Martin Ortuno wrote:>>>>>> On one
> project we are using cygwin v2.3.1 for 32 bits as a
>  >>>>>> building environment... We are integrating a library that
>  >>>>>> is built scons, I tried to run scons v4.3.0-1 but when I
>  >>>>>> prompt scons on the command line.
>  >>>>>> Scons -v outputs nothing...
>  >>>>>> I would appreciate your support in this matters...
>
> >>>>> Are you sure you're running scons from cygwin?
> >>>>> Which version of python do you have installed?
>
> >>>> On the cygwin envuronment i have both python 2.7.10 and python 3.4.3,
> >>>> the one which is by default is python 2...
> >>>> Pretty sure that's the reason why is not working, i think we need
> python
> >>>> 3.9 for scons...
> >>>> The problem now is that i cannot install successfully python 3.9. I
> >>>> tried with the setup-x86, just updating python3... However after that
> >>>> python3 stops working...
> >>>> I'd appreciate any advice or support...
>
> >>> Actually i tried to open python3.9 from windows directly  and then the
> >>> application crashes saying:
> >>> "The procedure entry point __locale_ctype_ptr could not be located in
> the
> >>> dynamic link library
> >>> C:\Path\toCygwin\bin\libpython3.9.dll"
>
> >> vi `which scons`
> >> and see which python it's trying to use.
> >> (from within your cygwin shell)
> >> Very surprised you get no output.
>
>  > I am prompting which scons:
>  > Output:
>  > /bin/scons/
>
> That output makes no sense!
> Please paste actual commands and outputs from terminal.
>
> Might be more useful running:
>
>         $ ls -glo /usr/bin/python
>         lrwxrwxrwx 1 24 Feb 17  2021 /usr/bin/python ->
> /etc/alternatives/python
>         $ alternatives --display python
>         python - status is auto.
>          link currently points to /usr/bin/python3.9
>         /usr/bin/python2.7 - priority 27
>         /usr/bin/python3.8 - priority 38
>         /usr/bin/python3.7 - priority 37
>         /usr/bin/python3.6 - priority 36
>         /usr/bin/python3.9 - priority 39
>         Current `best' version is /usr/bin/python3.9.
>         $ cygcheck -c scons
>         Cygwin Package Information
>         Package              Version        Status
>         scons                ...            OK
>         $ head -n1 /usr/bin/scons
>         #!/usr/bin/python...
>
> --
> Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada
>
> This email may be disturbing to some readers as it contains
> too much technical detail. Reader discretion is advised.
> [Data in binary units and prefixes, physical quantities in SI.]
>
> --
> Problem reports:      https://cygwin.com/problems.html
> FAQ:                  https://cygwin.com/faq/
> Documentation:        https://cygwin.com/docs.html
> Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple
>

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: scons v4.3.0-1 outputs nothing on cygwin v2. 3.1
  2022-05-15 17:10             ` Martin Ortuno
@ 2022-05-15 20:43               ` Brian Inglis
  2022-05-15 22:03                 ` Martin Ortuno
  2022-05-15 23:37                 ` Doug Henderson
  0 siblings, 2 replies; 14+ messages in thread
From: Brian Inglis @ 2022-05-15 20:43 UTC (permalink / raw)
  To: cygwin

On 2022-05-15 11:10, Martin Ortuno wrote:
> Here the information you requested:
> $ ls -glo /usr/bin/python
> lrwxrwxrwx 1 13 Jun  3  2015 /usr/bin/python -> python2.7.exe
> $ alternatives --display python
> python - status is auto.
> link currently points to /usr/bin/python3.9
> /usr/bin/python3.9 - priority 39
> Current `best' version is /usr/bin/python3.9.

That makes no sense, your system is messed up:

"link currently points to /usr/bin/python3.9"

implies "/usr/bin/python -> python3.9"

but you have "/usr/bin/python -> python2.7.exe"!

To try to fix that, please try running:

	$ alternatives --verbose --auto python

and please report the output and where the links now go.


> El vie., 13 de mayo de 2022 5:47 p. m., Brian Inglis <
> Brian.Inglis@systematicsw.ab.ca> escribió:
> 
>> On 2022-05-13 16:16, Martin Ortuno wrote:
>>> El vie., 13 de mayo de 2022 5:12 p. m., William Deegan escribió:
>>>> On Fri, May 13, 2022 at 1:41 PM Martin Ortuno wrote:
>>>>> El vie., 13 de mayo de 2022 3:30 p. m., Martin Ortuno escribió:
>>>>>> El vie., 13 de mayo de 2022 11:51 a. m., William Deegan escribió:
>>   >>>>> On Fri, May 13, 2022 at 8:46 AM Martin Ortuno wrote:>>>>>> On one
>> project we are using cygwin v2.3.1 for 32 bits as a
>>   >>>>>> building environment... We are integrating a library that
>>   >>>>>> is built scons, I tried to run scons v4.3.0-1 but when I
>>   >>>>>> prompt scons on the command line.
>>   >>>>>> Scons -v outputs nothing...
>>   >>>>>> I would appreciate your support in this matters...
>>
>>>>>>> Are you sure you're running scons from cygwin?
>>>>>>> Which version of python do you have installed?
>>
>>>>>> On the cygwin envuronment i have both python 2.7.10 and python 3.4.3,
>>>>>> the one which is by default is python 2...
>>>>>> Pretty sure that's the reason why is not working, i think we need
>> python
>>>>>> 3.9 for scons...
>>>>>> The problem now is that i cannot install successfully python 3.9. I
>>>>>> tried with the setup-x86, just updating python3... However after that
>>>>>> python3 stops working...
>>>>>> I'd appreciate any advice or support...
>>
>>>>> Actually i tried to open python3.9 from windows directly  and then the
>>>>> application crashes saying:
>>>>> "The procedure entry point __locale_ctype_ptr could not be located in
>> the
>>>>> dynamic link library
>>>>> C:\Path\toCygwin\bin\libpython3.9.dll"
>>
>>>> vi `which scons`
>>>> and see which python it's trying to use.
>>>> (from within your cygwin shell)
>>>> Very surprised you get no output.
>>
>>   > I am prompting which scons:
>>   > Output:
>>   > /bin/scons/
>>
>> That output makes no sense!
>> Please paste actual commands and outputs from terminal.
>>
>> Might be more useful running:
>>
>>          $ ls -glo /usr/bin/python
>>          lrwxrwxrwx 1 24 Feb 17  2021 /usr/bin/python ->
>> /etc/alternatives/python
>>          $ alternatives --display python
>>          python - status is auto.
>>           link currently points to /usr/bin/python3.9
>>          /usr/bin/python2.7 - priority 27
>>          /usr/bin/python3.8 - priority 38
>>          /usr/bin/python3.7 - priority 37
>>          /usr/bin/python3.6 - priority 36
>>          /usr/bin/python3.9 - priority 39
>>          Current `best' version is /usr/bin/python3.9.
>>          $ cygcheck -c scons
>>          Cygwin Package Information
>>          Package              Version        Status
>>          scons                ...            OK
>>          $ head -n1 /usr/bin/scons
>>          #!/usr/bin/python...

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: scons v4.3.0-1 outputs nothing on cygwin v2. 3.1
  2022-05-15 20:43               ` Brian Inglis
@ 2022-05-15 22:03                 ` Martin Ortuno
  2022-05-16  0:57                   ` Ken Brown
  2022-05-15 23:37                 ` Doug Henderson
  1 sibling, 1 reply; 14+ messages in thread
From: Martin Ortuno @ 2022-05-15 22:03 UTC (permalink / raw)
  To: Cygwin List

Hi,
It would seem that it changed nothing...

$ alternatives --verbose --auto python

reading /var/lib/alternatives/python



$ ls -glo /usr/bin/python

lrwxrwxrwx 1 13 Jun  3  2015 /usr/bin/python -> python2.7.exe



$ alternatives --display python

python - status is auto.

link currently points to /usr/bin/python3.9

/usr/bin/python3.9 - priority 39

Current `best' version is /usr/bin/python3.9.


Martin

El dom., 15 de mayo de 2022 3:44 p. m., Brian Inglis <
Brian.Inglis@systematicsw.ab.ca> escribió:

> On 2022-05-15 11:10, Martin Ortuno wrote:
> > Here the information you requested:
> > $ ls -glo /usr/bin/python
> > lrwxrwxrwx 1 13 Jun  3  2015 /usr/bin/python -> python2.7.exe
> > $ alternatives --display python
> > python - status is auto.
> > link currently points to /usr/bin/python3.9
> > /usr/bin/python3.9 - priority 39
> > Current `best' version is /usr/bin/python3.9.
>
> That makes no sense, your system is messed up:
>
> "link currently points to /usr/bin/python3.9"
>
> implies "/usr/bin/python -> python3.9"
>
> but you have "/usr/bin/python -> python2.7.exe"!
>
> To try to fix that, please try running:
>
>         $ alternatives --verbose --auto python
>
> and please report the output and where the links now go.
>
>
> > El vie., 13 de mayo de 2022 5:47 p. m., Brian Inglis <
> > Brian.Inglis@systematicsw.ab.ca> escribió:
> >
> >> On 2022-05-13 16:16, Martin Ortuno wrote:
> >>> El vie., 13 de mayo de 2022 5:12 p. m., William Deegan escribió:
> >>>> On Fri, May 13, 2022 at 1:41 PM Martin Ortuno wrote:
> >>>>> El vie., 13 de mayo de 2022 3:30 p. m., Martin Ortuno escribió:
> >>>>>> El vie., 13 de mayo de 2022 11:51 a. m., William Deegan escribió:
> >>   >>>>> On Fri, May 13, 2022 at 8:46 AM Martin Ortuno wrote:>>>>>> On
> one
> >> project we are using cygwin v2.3.1 for 32 bits as a
> >>   >>>>>> building environment... We are integrating a library that
> >>   >>>>>> is built scons, I tried to run scons v4.3.0-1 but when I
> >>   >>>>>> prompt scons on the command line.
> >>   >>>>>> Scons -v outputs nothing...
> >>   >>>>>> I would appreciate your support in this matters...
> >>
> >>>>>>> Are you sure you're running scons from cygwin?
> >>>>>>> Which version of python do you have installed?
> >>
> >>>>>> On the cygwin envuronment i have both python 2.7.10 and python
> 3.4.3,
> >>>>>> the one which is by default is python 2...
> >>>>>> Pretty sure that's the reason why is not working, i think we need
> >> python
> >>>>>> 3.9 for scons...
> >>>>>> The problem now is that i cannot install successfully python 3.9. I
> >>>>>> tried with the setup-x86, just updating python3... However after
> that
> >>>>>> python3 stops working...
> >>>>>> I'd appreciate any advice or support...
> >>
> >>>>> Actually i tried to open python3.9 from windows directly  and then
> the
> >>>>> application crashes saying:
> >>>>> "The procedure entry point __locale_ctype_ptr could not be located in
> >> the
> >>>>> dynamic link library
> >>>>> C:\Path\toCygwin\bin\libpython3.9.dll"
> >>
> >>>> vi `which scons`
> >>>> and see which python it's trying to use.
> >>>> (from within your cygwin shell)
> >>>> Very surprised you get no output.
> >>
> >>   > I am prompting which scons:
> >>   > Output:
> >>   > /bin/scons/
> >>
> >> That output makes no sense!
> >> Please paste actual commands and outputs from terminal.
> >>
> >> Might be more useful running:
> >>
> >>          $ ls -glo /usr/bin/python
> >>          lrwxrwxrwx 1 24 Feb 17  2021 /usr/bin/python ->
> >> /etc/alternatives/python
> >>          $ alternatives --display python
> >>          python - status is auto.
> >>           link currently points to /usr/bin/python3.9
> >>          /usr/bin/python2.7 - priority 27
> >>          /usr/bin/python3.8 - priority 38
> >>          /usr/bin/python3.7 - priority 37
> >>          /usr/bin/python3.6 - priority 36
> >>          /usr/bin/python3.9 - priority 39
> >>          Current `best' version is /usr/bin/python3.9.
> >>          $ cygcheck -c scons
> >>          Cygwin Package Information
> >>          Package              Version        Status
> >>          scons                ...            OK
> >>          $ head -n1 /usr/bin/scons
> >>          #!/usr/bin/python...
>
> --
> Problem reports:      https://cygwin.com/problems.html
> FAQ:                  https://cygwin.com/faq/
> Documentation:        https://cygwin.com/docs.html
> Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple
>

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: scons v4.3.0-1 outputs nothing on cygwin v2. 3.1
  2022-05-15 20:43               ` Brian Inglis
  2022-05-15 22:03                 ` Martin Ortuno
@ 2022-05-15 23:37                 ` Doug Henderson
  1 sibling, 0 replies; 14+ messages in thread
From: Doug Henderson @ 2022-05-15 23:37 UTC (permalink / raw)
  To: cygwin

Please show us the results of the following two commands:

$ which -a alternatives

$ ls -glo $( which -a alternatives )

Please note that /usr/sbin/alternatives must be executed in an
elevated shell. The folder containing it is not normally included in
the path for a non-elevated shell. It is considered to be a command
used by the administrator rather than the user.

The easiest way to do this is to right click on the "Cygwin Terminal"
icon on the desktop or a shortcut to it in the start menu and click on
Run as administrator.

Then execute

$ /usr/sbin/alternatives --verbose --auto python

If you see this message "failed to replace
/var/lib/alternatives/python with /var/lib/alternatives/python.new:
Permission denied", you are not running in an elevated shell.

If you see this message "link points to no alternative -- setting mode
to manual", please run this command

$ /usr/sbin/alternatives --test --auto python

which will show which link is missing, as there will be a blank line
after the link name instead of a priority. This may not be a serious
problem, but I am investigating why it occurs.

BTW, this is the output on my system:
$ /usr/sbin/alternatives --display python
python - status is manual.
 link currently points to /usr/bin/python3.9.exe
/usr/bin/python2.7 - priority 27
/usr/bin/python3.8 - priority 38
/usr/bin/python3.6 - priority 36
/usr/bin/python3.7 - priority 37
/usr/bin/python3.9 - priority 39
Current `best' version is /usr/bin/python3.9.

With this setup, using "python" runs "version 3.9", "python2" runs
"version 2.7", "python3.x" runs the corresponding "version 3.x".
"python3" gives "-bash: python3: command not found".


HTH
Doug (alternatives maintainer)


On Sun, May 15, 2022 at 2:44 PM Brian Inglis
<Brian.Inglis@systematicsw.ab.ca> wrote:
>
> On 2022-05-15 11:10, Martin Ortuno wrote:
> > Here the information you requested:
> > $ ls -glo /usr/bin/python
> > lrwxrwxrwx 1 13 Jun  3  2015 /usr/bin/python -> python2.7.exe


> > $ alternatives --display python
> > python - status is auto.
> > link currently points to /usr/bin/python3.9
> > /usr/bin/python3.9 - priority 39
> > Current `best' version is /usr/bin/python3.9.

This is the expected display when you have only python3.9 installed. - Doug

>
> That makes no sense, your system is messed up:
>
> "link currently points to /usr/bin/python3.9"
>
> implies "/usr/bin/python -> python3.9"
>
> but you have "/usr/bin/python -> python2.7.exe"!
>
> To try to fix that, please try running:
>
>         $ alternatives --verbose --auto python
>
> and please report the output and where the links now go.
>
>
> > El vie., 13 de mayo de 2022 5:47 p. m., Brian Inglis <
> > Brian.Inglis@systematicsw.ab.ca> escribió:
> >
> >> On 2022-05-13 16:16, Martin Ortuno wrote:
> >>> El vie., 13 de mayo de 2022 5:12 p. m., William Deegan escribió:
> >>>> On Fri, May 13, 2022 at 1:41 PM Martin Ortuno wrote:
> >>>>> El vie., 13 de mayo de 2022 3:30 p. m., Martin Ortuno escribió:
> >>>>>> El vie., 13 de mayo de 2022 11:51 a. m., William Deegan escribió:
> >>   >>>>> On Fri, May 13, 2022 at 8:46 AM Martin Ortuno wrote:>>>>>> On one
> >> project we are using cygwin v2.3.1 for 32 bits as a
> >>   >>>>>> building environment... We are integrating a library that
> >>   >>>>>> is built scons, I tried to run scons v4.3.0-1 but when I
> >>   >>>>>> prompt scons on the command line.
> >>   >>>>>> Scons -v outputs nothing...
> >>   >>>>>> I would appreciate your support in this matters...
> >>
> >>>>>>> Are you sure you're running scons from cygwin?
> >>>>>>> Which version of python do you have installed?
> >>
> >>>>>> On the cygwin envuronment i have both python 2.7.10 and python 3.4.3,
> >>>>>> the one which is by default is python 2...
> >>>>>> Pretty sure that's the reason why is not working, i think we need
> >> python
> >>>>>> 3.9 for scons...
> >>>>>> The problem now is that i cannot install successfully python 3.9. I
> >>>>>> tried with the setup-x86, just updating python3... However after that
> >>>>>> python3 stops working...
> >>>>>> I'd appreciate any advice or support...
> >>
> >>>>> Actually i tried to open python3.9 from windows directly  and then the
> >>>>> application crashes saying:
> >>>>> "The procedure entry point __locale_ctype_ptr could not be located in
> >> the
> >>>>> dynamic link library
> >>>>> C:\Path\toCygwin\bin\libpython3.9.dll"
> >>
> >>>> vi `which scons`
> >>>> and see which python it's trying to use.
> >>>> (from within your cygwin shell)
> >>>> Very surprised you get no output.
> >>
> >>   > I am prompting which scons:
> >>   > Output:
> >>   > /bin/scons/
> >>
> >> That output makes no sense!
> >> Please paste actual commands and outputs from terminal.
> >>
> >> Might be more useful running:
> >>
> >>          $ ls -glo /usr/bin/python
> >>          lrwxrwxrwx 1 24 Feb 17  2021 /usr/bin/python ->
> >> /etc/alternatives/python
> >>          $ alternatives --display python
> >>          python - status is auto.
> >>           link currently points to /usr/bin/python3.9
> >>          /usr/bin/python2.7 - priority 27
> >>          /usr/bin/python3.8 - priority 38
> >>          /usr/bin/python3.7 - priority 37
> >>          /usr/bin/python3.6 - priority 36
> >>          /usr/bin/python3.9 - priority 39
> >>          Current `best' version is /usr/bin/python3.9.
> >>          $ cygcheck -c scons
> >>          Cygwin Package Information
> >>          Package              Version        Status
> >>          scons                ...            OK
> >>          $ head -n1 /usr/bin/scons
> >>          #!/usr/bin/python...
>
> --
> Problem reports:      https://cygwin.com/problems.html
> FAQ:                  https://cygwin.com/faq/
> Documentation:        https://cygwin.com/docs.html
> Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple



-- 
Doug Henderson, Calgary, Alberta, Canada - from gmail.com

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: scons v4.3.0-1 outputs nothing on cygwin v2. 3.1
  2022-05-15 22:03                 ` Martin Ortuno
@ 2022-05-16  0:57                   ` Ken Brown
  2022-05-16  1:43                     ` Martin Ortuno
  0 siblings, 1 reply; 14+ messages in thread
From: Ken Brown @ 2022-05-16  0:57 UTC (permalink / raw)
  To: cygwin

On 5/15/2022 6:03 PM, Martin Ortuno wrote:
> $ ls -glo /usr/bin/python
> 
> lrwxrwxrwx 1 13 Jun  3  2015 /usr/bin/python -> python2.7.exe

This shows that you have a very old version of python2, going back to before the 
python versions were managed by the alternatives system.

You can't expect to have a working Cygwin installation if you selectively update 
some packages while keeping old versions of others.  I suggest that you update 
to the current release of each package.

Ken

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: scons v4.3.0-1 outputs nothing on cygwin v2. 3.1
  2022-05-16  0:57                   ` Ken Brown
@ 2022-05-16  1:43                     ` Martin Ortuno
  2022-05-16 17:49                       ` William Deegan
  0 siblings, 1 reply; 14+ messages in thread
From: Martin Ortuno @ 2022-05-16  1:43 UTC (permalink / raw)
  To: Ken Brown; +Cc: Cygwin List

Hi everyone,
Here the results...

$ which -a alternatives

/usr/sbin/alternatives



Then..

$ ls -glo $(which -a alternatives)

-rwxrwx---+ 1 18944 Apr  5  2009 /usr/sbin/alternatives



After that I ran…

$ /usr/sbin/alternatives --verbose --auto python

reading /var/lib/alternatives/python



Just to see if that helped I ran:

$ /usr/sbin/alternatives --test --auto python

auto

/usr/bin/python



/usr/bin/python3.9

39

would link /etc/alternatives/python -> /usr/bin/python3.9



Finally I ran:



$ /usr/sbin/alternatives --display python

python - status is auto.

link currently points to /usr/bin/python3.9

/usr/bin/python3.9 - priority 39

Current `best' version is /usr/bin/python3.9.


Thanks,

Martin

El dom., 15 de mayo de 2022 7:59 p. m., Ken Brown <kbrown@cornell.edu>
escribió:

> On 5/15/2022 6:03 PM, Martin Ortuno wrote:
> > $ ls -glo /usr/bin/python
> >
> > lrwxrwxrwx 1 13 Jun  3  2015 /usr/bin/python -> python2.7.exe
>
> This shows that you have a very old version of python2, going back to
> before the
> python versions were managed by the alternatives system.
>
> You can't expect to have a working Cygwin installation if you selectively
> update
> some packages while keeping old versions of others.  I suggest that you
> update
> to the current release of each package.
>
> Ken
>
> --
> Problem reports:      https://cygwin.com/problems.html
> FAQ:                  https://cygwin.com/faq/
> Documentation:        https://cygwin.com/docs.html
> Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple
>

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: scons v4.3.0-1 outputs nothing on cygwin v2. 3.1
  2022-05-16  1:43                     ` Martin Ortuno
@ 2022-05-16 17:49                       ` William Deegan
  0 siblings, 0 replies; 14+ messages in thread
From: William Deegan @ 2022-05-16 17:49 UTC (permalink / raw)
  To: Martin Ortuno; +Cc: Ken Brown, Cygwin List

save this as SConstruct.simple

print("I'm in a SConstruct")

Then run
scons -f SConstruct.simple

Do you get any output?





On Sun, May 15, 2022 at 6:44 PM Martin Ortuno <
martinortunogonzalez@gmail.com> wrote:

> Hi everyone,
> Here the results...
>
> $ which -a alternatives
>
> /usr/sbin/alternatives
>
>
>
> Then..
>
> $ ls -glo $(which -a alternatives)
>
> -rwxrwx---+ 1 18944 Apr  5  2009 /usr/sbin/alternatives
>
>
>
> After that I ran…
>
> $ /usr/sbin/alternatives --verbose --auto python
>
> reading /var/lib/alternatives/python
>
>
>
> Just to see if that helped I ran:
>
> $ /usr/sbin/alternatives --test --auto python
>
> auto
>
> /usr/bin/python
>
>
>
> /usr/bin/python3.9
>
> 39
>
> would link /etc/alternatives/python -> /usr/bin/python3.9
>
>
>
> Finally I ran:
>
>
>
> $ /usr/sbin/alternatives --display python
>
> python - status is auto.
>
> link currently points to /usr/bin/python3.9
>
> /usr/bin/python3.9 - priority 39
>
> Current `best' version is /usr/bin/python3.9.
>
>
> Thanks,
>
> Martin
>
> El dom., 15 de mayo de 2022 7:59 p. m., Ken Brown <kbrown@cornell.edu>
> escribió:
>
> > On 5/15/2022 6:03 PM, Martin Ortuno wrote:
> > > $ ls -glo /usr/bin/python
> > >
> > > lrwxrwxrwx 1 13 Jun  3  2015 /usr/bin/python -> python2.7.exe
> >
> > This shows that you have a very old version of python2, going back to
> > before the
> > python versions were managed by the alternatives system.
> >
> > You can't expect to have a working Cygwin installation if you selectively
> > update
> > some packages while keeping old versions of others.  I suggest that you
> > update
> > to the current release of each package.
> >
> > Ken
> >
> > --
> > Problem reports:      https://cygwin.com/problems.html
> > FAQ:                  https://cygwin.com/faq/
> > Documentation:        https://cygwin.com/docs.html
> > Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple
> >
>
> --
> Problem reports:      https://cygwin.com/problems.html
> FAQ:                  https://cygwin.com/faq/
> Documentation:        https://cygwin.com/docs.html
> Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple
>

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2022-05-16 17:49 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-13 15:45 scons v4.3.0-1 outputs nothing on cygwin v2. 3.1 Martin Ortuno
2022-05-13 16:51 ` William Deegan
2022-05-13 20:30   ` Martin Ortuno
2022-05-13 20:41     ` Martin Ortuno
2022-05-13 22:12       ` William Deegan
2022-05-13 22:16         ` Martin Ortuno
2022-05-13 22:46           ` Brian Inglis
2022-05-15 17:10             ` Martin Ortuno
2022-05-15 20:43               ` Brian Inglis
2022-05-15 22:03                 ` Martin Ortuno
2022-05-16  0:57                   ` Ken Brown
2022-05-16  1:43                     ` Martin Ortuno
2022-05-16 17:49                       ` William Deegan
2022-05-15 23:37                 ` Doug Henderson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).