WinError 2 for openbte pip program












0















I recently got a pip package called openbte (https://pypi.org/project/openbte/) to install on PyCharm after a lot of troubleshooting. However, when I try to run a command it gives me this error:



Traceback (most recent call last):
File "C:UsersturtlPycharmProjectsuntitledvenvScriptsopenbte-script.py", line 11, in <module>
load_entry_point('openbte==0.9.24', 'console_scripts', 'openbte')()
File "C:UsersturtlPycharmProjectsuntitledvenvlibsite-packagesopenbte__main__.py", line 47, in main
Geometry(**vars(args))
File "C:UsersturtlPycharmProjectsuntitledvenvlibsite-packagesopenbtegeometry.py", line 83, in __init__
data = self.compute_mesh_data()
File "C:UsersturtlPycharmProjectsuntitledvenvlibsite-packagesopenbtegeometry.py", line 91, in compute_mesh_data
self.import_mesh()
File "C:UsersturtlPycharmProjectsuntitledvenvlibsite-packagesopenbtegeometry.py", line 448, in import_mesh
a=subprocess.check_output(['gmsh','-' + str(self.dim),'mesh.geo','-o','mesh.msh'])
File "C:UsersturtlAppDataLocalProgramsPythonPython36libsubprocess.py", line 336, in check_output
**kwargs).stdout
File "C:UsersturtlAppDataLocalProgramsPythonPython36libsubprocess.py", line 403, in run
with Popen(*popenargs, **kwargs) as process:
File "C:UsersturtlAppDataLocalProgramsPythonPython36libsubprocess.py", line 709, in __init__
restore_signals, start_new_session)
File "C:UsersturtlAppDataLocalProgramsPythonPython36libsubprocess.py", line 997, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified


Does anyone have any idea what's going wrong? I can find similar questions with this error, but they seem specific to the program. Line 997 seems to just be the startupinfo line of the following code.



    try:
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
# no special security
None, None,
int(not close_fds),
creationflags,
env,
os.fspath(cwd) if cwd is not None else None,
startupinfo)









share|improve this question




















  • 1





    you have to print executable to find out. Looks like you're trying to start gmsh and it's not in the path. Maybe you have to install it ? (gmsh.info)

    – Jean-François Fabre
    Nov 24 '18 at 20:18













  • I've downloaded gmsh. Do you know how I would go about putting it in the path?

    – David N
    Nov 25 '18 at 1:46











  • I think you can google that. Some links: stackoverflow.com/questions/19287379/…

    – Jean-François Fabre
    Nov 25 '18 at 8:11
















0















I recently got a pip package called openbte (https://pypi.org/project/openbte/) to install on PyCharm after a lot of troubleshooting. However, when I try to run a command it gives me this error:



Traceback (most recent call last):
File "C:UsersturtlPycharmProjectsuntitledvenvScriptsopenbte-script.py", line 11, in <module>
load_entry_point('openbte==0.9.24', 'console_scripts', 'openbte')()
File "C:UsersturtlPycharmProjectsuntitledvenvlibsite-packagesopenbte__main__.py", line 47, in main
Geometry(**vars(args))
File "C:UsersturtlPycharmProjectsuntitledvenvlibsite-packagesopenbtegeometry.py", line 83, in __init__
data = self.compute_mesh_data()
File "C:UsersturtlPycharmProjectsuntitledvenvlibsite-packagesopenbtegeometry.py", line 91, in compute_mesh_data
self.import_mesh()
File "C:UsersturtlPycharmProjectsuntitledvenvlibsite-packagesopenbtegeometry.py", line 448, in import_mesh
a=subprocess.check_output(['gmsh','-' + str(self.dim),'mesh.geo','-o','mesh.msh'])
File "C:UsersturtlAppDataLocalProgramsPythonPython36libsubprocess.py", line 336, in check_output
**kwargs).stdout
File "C:UsersturtlAppDataLocalProgramsPythonPython36libsubprocess.py", line 403, in run
with Popen(*popenargs, **kwargs) as process:
File "C:UsersturtlAppDataLocalProgramsPythonPython36libsubprocess.py", line 709, in __init__
restore_signals, start_new_session)
File "C:UsersturtlAppDataLocalProgramsPythonPython36libsubprocess.py", line 997, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified


Does anyone have any idea what's going wrong? I can find similar questions with this error, but they seem specific to the program. Line 997 seems to just be the startupinfo line of the following code.



    try:
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
# no special security
None, None,
int(not close_fds),
creationflags,
env,
os.fspath(cwd) if cwd is not None else None,
startupinfo)









share|improve this question




















  • 1





    you have to print executable to find out. Looks like you're trying to start gmsh and it's not in the path. Maybe you have to install it ? (gmsh.info)

    – Jean-François Fabre
    Nov 24 '18 at 20:18













  • I've downloaded gmsh. Do you know how I would go about putting it in the path?

    – David N
    Nov 25 '18 at 1:46











  • I think you can google that. Some links: stackoverflow.com/questions/19287379/…

    – Jean-François Fabre
    Nov 25 '18 at 8:11














0












0








0








I recently got a pip package called openbte (https://pypi.org/project/openbte/) to install on PyCharm after a lot of troubleshooting. However, when I try to run a command it gives me this error:



Traceback (most recent call last):
File "C:UsersturtlPycharmProjectsuntitledvenvScriptsopenbte-script.py", line 11, in <module>
load_entry_point('openbte==0.9.24', 'console_scripts', 'openbte')()
File "C:UsersturtlPycharmProjectsuntitledvenvlibsite-packagesopenbte__main__.py", line 47, in main
Geometry(**vars(args))
File "C:UsersturtlPycharmProjectsuntitledvenvlibsite-packagesopenbtegeometry.py", line 83, in __init__
data = self.compute_mesh_data()
File "C:UsersturtlPycharmProjectsuntitledvenvlibsite-packagesopenbtegeometry.py", line 91, in compute_mesh_data
self.import_mesh()
File "C:UsersturtlPycharmProjectsuntitledvenvlibsite-packagesopenbtegeometry.py", line 448, in import_mesh
a=subprocess.check_output(['gmsh','-' + str(self.dim),'mesh.geo','-o','mesh.msh'])
File "C:UsersturtlAppDataLocalProgramsPythonPython36libsubprocess.py", line 336, in check_output
**kwargs).stdout
File "C:UsersturtlAppDataLocalProgramsPythonPython36libsubprocess.py", line 403, in run
with Popen(*popenargs, **kwargs) as process:
File "C:UsersturtlAppDataLocalProgramsPythonPython36libsubprocess.py", line 709, in __init__
restore_signals, start_new_session)
File "C:UsersturtlAppDataLocalProgramsPythonPython36libsubprocess.py", line 997, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified


Does anyone have any idea what's going wrong? I can find similar questions with this error, but they seem specific to the program. Line 997 seems to just be the startupinfo line of the following code.



    try:
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
# no special security
None, None,
int(not close_fds),
creationflags,
env,
os.fspath(cwd) if cwd is not None else None,
startupinfo)









share|improve this question
















I recently got a pip package called openbte (https://pypi.org/project/openbte/) to install on PyCharm after a lot of troubleshooting. However, when I try to run a command it gives me this error:



Traceback (most recent call last):
File "C:UsersturtlPycharmProjectsuntitledvenvScriptsopenbte-script.py", line 11, in <module>
load_entry_point('openbte==0.9.24', 'console_scripts', 'openbte')()
File "C:UsersturtlPycharmProjectsuntitledvenvlibsite-packagesopenbte__main__.py", line 47, in main
Geometry(**vars(args))
File "C:UsersturtlPycharmProjectsuntitledvenvlibsite-packagesopenbtegeometry.py", line 83, in __init__
data = self.compute_mesh_data()
File "C:UsersturtlPycharmProjectsuntitledvenvlibsite-packagesopenbtegeometry.py", line 91, in compute_mesh_data
self.import_mesh()
File "C:UsersturtlPycharmProjectsuntitledvenvlibsite-packagesopenbtegeometry.py", line 448, in import_mesh
a=subprocess.check_output(['gmsh','-' + str(self.dim),'mesh.geo','-o','mesh.msh'])
File "C:UsersturtlAppDataLocalProgramsPythonPython36libsubprocess.py", line 336, in check_output
**kwargs).stdout
File "C:UsersturtlAppDataLocalProgramsPythonPython36libsubprocess.py", line 403, in run
with Popen(*popenargs, **kwargs) as process:
File "C:UsersturtlAppDataLocalProgramsPythonPython36libsubprocess.py", line 709, in __init__
restore_signals, start_new_session)
File "C:UsersturtlAppDataLocalProgramsPythonPython36libsubprocess.py", line 997, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified


Does anyone have any idea what's going wrong? I can find similar questions with this error, but they seem specific to the program. Line 997 seems to just be the startupinfo line of the following code.



    try:
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
# no special security
None, None,
int(not close_fds),
creationflags,
env,
os.fspath(cwd) if cwd is not None else None,
startupinfo)






python windows pycharm






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 25 '18 at 13:41









user6910411

34.8k1085107




34.8k1085107










asked Nov 24 '18 at 20:15









David NDavid N

162




162








  • 1





    you have to print executable to find out. Looks like you're trying to start gmsh and it's not in the path. Maybe you have to install it ? (gmsh.info)

    – Jean-François Fabre
    Nov 24 '18 at 20:18













  • I've downloaded gmsh. Do you know how I would go about putting it in the path?

    – David N
    Nov 25 '18 at 1:46











  • I think you can google that. Some links: stackoverflow.com/questions/19287379/…

    – Jean-François Fabre
    Nov 25 '18 at 8:11














  • 1





    you have to print executable to find out. Looks like you're trying to start gmsh and it's not in the path. Maybe you have to install it ? (gmsh.info)

    – Jean-François Fabre
    Nov 24 '18 at 20:18













  • I've downloaded gmsh. Do you know how I would go about putting it in the path?

    – David N
    Nov 25 '18 at 1:46











  • I think you can google that. Some links: stackoverflow.com/questions/19287379/…

    – Jean-François Fabre
    Nov 25 '18 at 8:11








1




1





you have to print executable to find out. Looks like you're trying to start gmsh and it's not in the path. Maybe you have to install it ? (gmsh.info)

– Jean-François Fabre
Nov 24 '18 at 20:18







you have to print executable to find out. Looks like you're trying to start gmsh and it's not in the path. Maybe you have to install it ? (gmsh.info)

– Jean-François Fabre
Nov 24 '18 at 20:18















I've downloaded gmsh. Do you know how I would go about putting it in the path?

– David N
Nov 25 '18 at 1:46





I've downloaded gmsh. Do you know how I would go about putting it in the path?

– David N
Nov 25 '18 at 1:46













I think you can google that. Some links: stackoverflow.com/questions/19287379/…

– Jean-François Fabre
Nov 25 '18 at 8:11





I think you can google that. Some links: stackoverflow.com/questions/19287379/…

– Jean-François Fabre
Nov 25 '18 at 8:11












0






active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53461983%2fwinerror-2-for-openbte-pip-program%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53461983%2fwinerror-2-for-openbte-pip-program%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

To store a contact into the json file from server.js file using a class in NodeJS

Redirect URL with Chrome Remote Debugging Android Devices

Dieringhausen