spyder-ide / spyder

Official repository for Spyder - The Scientific Python Development Environment
https://www.spyder-ide.org
MIT License
8.2k stars 1.59k forks source link

AttributError: module 'subprocess' has np attribute 'Popen' #8784

Closed ckesanapalli closed 5 years ago

ckesanapalli commented 5 years ago

Description

What steps will reproduce the problem?

I am trying to use subprocess.Popen to run a xfoil.exe file but I am getting this error

Traceback

    self.process_request(request, client_address)
----------------------------------------
WARNING:traitlets:kernel died: 18.01368737220764
WARNING:traitlets:kernel died: 18.005125045776367
WARNING:traitlets:kernel died: 18.008799076080322
WARNING:traitlets:kernel died: 18.015451192855835

Versions

Dependencies

pyflakes >=0.6.0  :  2.1.0 (OK)
pycodestyle >=2.3 :  2.5.0 (OK)
pygments >=2.0    :  2.3.1 (OK)
sphinx >=0.6.6    :  1.8.4 (OK)
rope >=0.9.4      :  0.11.0 (OK)
jedi >=0.9.0      :  0.13.2 (OK)
nbconvert >=4.0   :  5.4.0 (OK)
pandas >=0.13.1   :  0.24.1 (OK)
numpy >=1.7       :  1.15.4 (OK)
sympy >=0.7.3     :  1.3 (OK)
cython >=0.21     :  0.29.4 (OK)
qtconsole >=4.2.0 :  4.4.3 (OK)
IPython >=4.0     :  7.2.0 (OK)
matplotlib >=2.0.0:  3.0.2 (OK)
pylint >=0.25     :  2.2.2 (OK)
ccordoba12 commented 5 years ago

That's because you have a file called subprocess in your current working directory. Simply rename it or remove it to fix this problem.

ckesanapalli commented 5 years ago

I didn't even though of that. Thanks for the clarifying.