public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* bash 127 errors  after upgrade and other install errors
@ 2020-01-13  0:27 Henry Goss
  2020-01-13  2:27 ` Takashi Yano
  0 siblings, 1 reply; 5+ messages in thread
From: Henry Goss @ 2020-01-13  0:27 UTC (permalink / raw)
  To: cygwin

Hello,

I seem to be getting numerous bash error code 127 errors after updating

It seems to be happening on things like python and MySQL. The processes just return blank

Ex:

Myql
#returns blank
>

"echo $?"
> 127

Additionally,  old software I've been using for a while now fail (sort of), involving python and selenium and chrome/gecko driver

Two python processes get started , which both appear to be attempting to read from the same pipe (I think?)

Closing one of the processes will let the program continue, closing the other causes the main execution to stop.

127 errors go away with a fresh install, the python/selenium halting issue does not.

Are these related, and is there a fix?


Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10



--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

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

* Re: bash 127 errors  after upgrade and other install errors
  2020-01-13  0:27 bash 127 errors after upgrade and other install errors Henry Goss
@ 2020-01-13  2:27 ` Takashi Yano
       [not found]   ` <CH2PR10MB4214B159F0618FFD1D52D7748C350@CH2PR10MB4214.namprd10.prod.outlook.com>
  0 siblings, 1 reply; 5+ messages in thread
From: Takashi Yano @ 2020-01-13  2:27 UTC (permalink / raw)
  To: cygwin

On Mon, 13 Jan 2020 00:27:37 +0000
Henry Goss wrote:
> I seem to be getting numerous bash error code 127 errors after updating
> 
> It seems to be happening on things like python and MySQL. The processes just return blank
> 
> Ex:
> 
> Myql
> #returns blank
> >
> 
> "echo $?"
> > 127
> 
> Additionally,  old software I've been using for a while now fail (sort of), involving python and selenium and chrome/gecko driver
> 
> Two python processes get started , which both appear to be attempting to read from the same pipe (I think?)
> 
> Closing one of the processes will let the program continue, closing the other causes the main execution to stop.
> 
> 127 errors go away with a fresh install, the python/selenium halting issue does not.
> 
> Are these related, and is there a fix?

Could you please provide the steps to reproduce the problem?

-- 
Takashi Yano <takashi.yano@nifty.ne.jp>

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

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

* Re: bash 127 errors  after upgrade and other install errors
       [not found]   ` <CH2PR10MB4214B159F0618FFD1D52D7748C350@CH2PR10MB4214.namprd10.prod.outlook.com>
@ 2020-01-13  5:51     ` Takashi Yano
  2020-01-13  5:59       ` Henry Goss
  0 siblings, 1 reply; 5+ messages in thread
From: Takashi Yano @ 2020-01-13  5:51 UTC (permalink / raw)
  To: cygwin; +Cc: Henry Goss

On Mon, 13 Jan 2020 04:21:58 +0000
Henry Goss wrote:
> Sure, here are the steps to reproduce either. Run on windows 10.
> 
> RE: working installation:
> 1) open setup program. tick python3.6, python3.6 dev tools. Install.
> The new installer doesn't recognize the old version of python. I don't recall the old installation method. But If it was not done with setup, it was done with apt-cyg
> 
> When I install, setup attempts the following:
> Uninstall python3-setuptools 34.3.2-1 (automatically added)
> Install crypto-policies 20190218-1 (automatically added)
> Install libcrypt2 4.4.4-1 (automatically added)
> Install libgdbm6 1.18.1-1 (automatically added)
> Install libgdbm_compat4 1.18.1-1 (automatically added)
> Install libnsl2 1.2.0-1 (automatically added)
> Install libssl1.1 1.1.1d-1 (automatically added)
> Install libtirpc-common 1.1.4-1 (automatically added)
> Install libtirpc3 1.1.4-1 (automatically added)
> Install python-pip-wheel 19.2.3-1 (automatically added)
> Install python-setuptools-wheel 41.2.0-1 (automatically added)
> Install python36 3.6.9-1
> Install python36-devel 3.6.9-1
> Install python36-setuptools 41.2.0-1 (automatically added)
>  
> This breaks python.
> 
> At some point, you an uninstall, reinstall, etc and get python working. However it will still lead to the problem with python and selenium below
> 
> 
> MYSQL
> Uninstall mysql 10.1.30-1 (automatically added)
> Uninstall openssl-devel 1.0.2o-1 (automatically added)
> Install crypto-policies 20190218-1 (automatically added)
> Install libgdbm6 1.18.1-1 (automatically added)
> Install libgdbm_compat4 1.18.1-1 (automatically added)
> Install libmariadb-devel 3.0.9-1 (automatically added)
> Install libmariadb3 3.0.9-1 (automatically added)
> Install libssl-devel 1.1.1d-1 (automatically added)
> Install libssl1.1 1.1.1d-1 (automatically added)
> Install mariadb-common 3.0.9-1 (automatically added)
> Install mysql 10.3.14-1
> Install mysql-devel 10.3.14-1
> 
> This breaks mysql.
> 
> 2) steps to reproduce python selenium.
> - Run set, select emacs, python 3.5,6 or 7 and associated dev tools.
> - install.
> - from prompt:
> 	- python -m ensurepip --default-pip
> 	-pip3.6 install selenium
> 	"
> 		pip3.6 freeze
> 	 	selenium==3.141.0
> 	 	urllib3==1.25.7
> 	"
> 	Sample python test code.
> 	from selenium import webdriver
> 
> 	EXE_PATH = r'/cygdrive/c/webdriver/chromedriver.exe';
> 	#driver = webdriver.Chrome(executable_path=EXE_PATH)
> 
> 	#driver = webdriver.Chrome(executable_path=EXE_PATH, service_args=["--verbose", "--log-path=run.log"])
> 	driver = webdriver.Chrome(service_args=["--verbose", "--log-path=run.log"])
> 	driver.get('https://google.com')
> - at this point, the program will hang. It looks like its waiting to connect to chromedriver. 
>  running task manager on windows 10, will yield two python3.x processes. This may be expected behavior, I presume its opened with a fork and the child process socket is not closed. Closing the child causes the main to run, cutting the main breaks execution. This appears to be a problem with any python 3.x installation I have done.
> 
> Cancelling via ctrl-c yields the following:
> Traceback (most recent call last):
>   File "test.py", line 20, in <module>
>     driver = webdriver.Chrome()
>   File "/usr/lib/python3.6/site-packages/selenium/webdriver/chrome/webdriver.py", line 73, in __init__
>     self.service.start()
>   File "/usr/lib/python3.6/site-packages/selenium/webdriver/common/service.py", line 76, in start
>     stdin=PIPE)
>   File "/usr/lib/python3.6/subprocess.py", line 729, in __init__
>     restore_signals, start_new_session)
>   File "/usr/lib/python3.6/subprocess.py", line 1318, in _execute_child
>     part = os.read(errpipe_read, 50000)
> KeyboardInterrupt

Thanks for the report.

I could not reproduce the problem 1).

As for the problem 2), it seems to be the same problem with
https://www.cygwin.com/ml/cygwin/2020-01/msg00093.html.

I already submitted a patch for that issue:
https://www.cygwin.com/ml/cygwin-patches/2020-q1/msg00010.html.

I confirmed the problem 2) is fixed with this patch.

Please wait for the new cygwin release.

-- 
Takashi Yano <takashi.yano@nifty.ne.jp>

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

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

* Re: bash 127 errors  after upgrade and other install errors
  2020-01-13  5:51     ` Takashi Yano
@ 2020-01-13  5:59       ` Henry Goss
  2020-01-16 10:50         ` Andrey Repin
  0 siblings, 1 reply; 5+ messages in thread
From: Henry Goss @ 2020-01-13  5:59 UTC (permalink / raw)
  To: Takashi Yano, cygwin

Thanks. Thought I was going nuts.


In the case of 1) I’ll see if I can narrow down the process to reproduce.

Worst case I can do a reinstall and solve it.

Get Outlook for iOS<https://aka.ms/o0ukef>
________________________________
From: Takashi Yano <takashi.yano@nifty.ne.jp>
Sent: Sunday, January 12, 2020 9:51:21 PM
To: cygwin@cygwin.com <cygwin@cygwin.com>
Cc: Henry Goss <sin_vraal@hotmail.com>
Subject: Re: bash 127 errors after upgrade and other install errors

On Mon, 13 Jan 2020 04:21:58 +0000
Henry Goss wrote:
> Sure, here are the steps to reproduce either. Run on windows 10.
>
> RE: working installation:
> 1) open setup program. tick python3.6, python3.6 dev tools. Install.
> The new installer doesn't recognize the old version of python. I don't recall the old installation method. But If it was not done with setup, it was done with apt-cyg
>
> When I install, setup attempts the following:
> Uninstall python3-setuptools 34.3.2-1 (automatically added)
> Install crypto-policies 20190218-1 (automatically added)
> Install libcrypt2 4.4.4-1 (automatically added)
> Install libgdbm6 1.18.1-1 (automatically added)
> Install libgdbm_compat4 1.18.1-1 (automatically added)
> Install libnsl2 1.2.0-1 (automatically added)
> Install libssl1.1 1.1.1d-1 (automatically added)
> Install libtirpc-common 1.1.4-1 (automatically added)
> Install libtirpc3 1.1.4-1 (automatically added)
> Install python-pip-wheel 19.2.3-1 (automatically added)
> Install python-setuptools-wheel 41.2.0-1 (automatically added)
> Install python36 3.6.9-1
> Install python36-devel 3.6.9-1
> Install python36-setuptools 41.2.0-1 (automatically added)
>
> This breaks python.
>
> At some point, you an uninstall, reinstall, etc and get python working. However it will still lead to the problem with python and selenium below
>
>
> MYSQL
> Uninstall mysql 10.1.30-1 (automatically added)
> Uninstall openssl-devel 1.0.2o-1 (automatically added)
> Install crypto-policies 20190218-1 (automatically added)
> Install libgdbm6 1.18.1-1 (automatically added)
> Install libgdbm_compat4 1.18.1-1 (automatically added)
> Install libmariadb-devel 3.0.9-1 (automatically added)
> Install libmariadb3 3.0.9-1 (automatically added)
> Install libssl-devel 1.1.1d-1 (automatically added)
> Install libssl1.1 1.1.1d-1 (automatically added)
> Install mariadb-common 3.0.9-1 (automatically added)
> Install mysql 10.3.14-1
> Install mysql-devel 10.3.14-1
>
> This breaks mysql.
>
> 2) steps to reproduce python selenium.
> - Run set, select emacs, python 3.5,6 or 7 and associated dev tools.
> - install.
> - from prompt:
>        - python -m ensurepip --default-pip
>        -pip3.6 install selenium
>        "
>                pip3.6 freeze
>          selenium==3.141.0
>          urllib3==1.25.7
>        "
>        Sample python test code.
>        from selenium import webdriver
>
>        EXE_PATH = r'/cygdrive/c/webdriver/chromedriver.exe';
>        #driver = webdriver.Chrome(executable_path=EXE_PATH)
>
>        #driver = webdriver.Chrome(executable_path=EXE_PATH, service_args=["--verbose", "--log-path=run.log"])
>        driver = webdriver.Chrome(service_args=["--verbose", "--log-path=run.log"])
>        driver.get('https://google.com')
> - at this point, the program will hang. It looks like its waiting to connect to chromedriver.
>  running task manager on windows 10, will yield two python3.x processes. This may be expected behavior, I presume its opened with a fork and the child process socket is not closed. Closing the child causes the main to run, cutting the main breaks execution. This appears to be a problem with any python 3.x installation I have done.
>
> Cancelling via ctrl-c yields the following:
> Traceback (most recent call last):
>   File "test.py", line 20, in <module>
>     driver = webdriver.Chrome()
>   File "/usr/lib/python3.6/site-packages/selenium/webdriver/chrome/webdriver.py", line 73, in __init__
>     self.service.start()
>   File "/usr/lib/python3.6/site-packages/selenium/webdriver/common/service.py", line 76, in start
>     stdin=PIPE)
>   File "/usr/lib/python3.6/subprocess.py", line 729, in __init__
>     restore_signals, start_new_session)
>   File "/usr/lib/python3.6/subprocess.py", line 1318, in _execute_child
>     part = os.read(errpipe_read, 50000)
> KeyboardInterrupt

Thanks for the report.

I could not reproduce the problem 1).

As for the problem 2), it seems to be the same problem with
https://www.cygwin.com/ml/cygwin/2020-01/msg00093.html.

I already submitted a patch for that issue:
https://www.cygwin.com/ml/cygwin-patches/2020-q1/msg00010.html.

I confirmed the problem 2) is fixed with this patch.

Please wait for the new cygwin release.

--
Takashi Yano <takashi.yano@nifty.ne.jp>

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

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

* Re: bash 127 errors  after upgrade and other install errors
  2020-01-13  5:59       ` Henry Goss
@ 2020-01-16 10:50         ` Andrey Repin
  0 siblings, 0 replies; 5+ messages in thread
From: Andrey Repin @ 2020-01-16 10:50 UTC (permalink / raw)
  To: Henry Goss, cygwin

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=windows-1252, Size: 752 bytes --]

Greetings, Henry Goss!

> Thanks. Thought I was going nuts.


> In the case of 1) I’ll see if I can narrow down the process to reproduce.

> Worst case I can do a reinstall and solve it.

For empty output and sudden death of the apps, the possible cause is an
injected third party library. AKA "BLODA".

https://cygwin.com/faq/faq.html#faq.using.bloda

P.S.
Please no top-posting in this list.


-- 
With best regards,
Andrey Repin
Thursday, January 16, 2020 13:30:02

Sorry for my terrible english...\x03B‹KCB”\x1c›Ø›\x19[H\x1c™\^[ܝ\x1cΈ\b\b\b\b\b\b\x1a\x1d\x1d\x1c\x0e‹ËØÞYÝÚ[‹˜ÛÛKÜ\x1c›Ø›\x19[\Ëš\x1d^[[\x03B‘TNˆ\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\x1a\x1d\x1d\x1c\x0e‹ËØÞYÝÚ[‹˜ÛÛKÙ˜\KÃB‘^[ØÝ[Y[\x18]\x1a[ÛŽˆ\b\b\b\b\b\b\b\b\x1a\x1d\x1d\x1c\x0e‹ËØÞYÝÚ[‹˜ÛÛKÙ^[ØÜËš\x1d^[[\x03B•[œÝXœØÜšX™H\x1a[™›Îˆ\b\b\b\b\b\x1a\x1d\x1d\x1c\x0e‹ËØÞYÝÚ[‹˜ÛÛKÛ[\vÈÝ[œÝXœØÜšX™K\Ú[\^[\x19CBƒB

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

end of thread, other threads:[~2020-01-16 10:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-13  0:27 bash 127 errors after upgrade and other install errors Henry Goss
2020-01-13  2:27 ` Takashi Yano
     [not found]   ` <CH2PR10MB4214B159F0618FFD1D52D7748C350@CH2PR10MB4214.namprd10.prod.outlook.com>
2020-01-13  5:51     ` Takashi Yano
2020-01-13  5:59       ` Henry Goss
2020-01-16 10:50         ` Andrey Repin

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).