Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wann_train.py error #11

Open
yachenkang opened this issue Nov 14, 2019 · 8 comments
Open

wann_train.py error #11

yachenkang opened this issue Nov 14, 2019 · 8 comments

Comments

@yachenkang
Copy link

runfile('D:/Desktop/evolution/code/WANN/wann_train.py', wdir='D:/Desktop/evolution/code/WANN')
['mpirun', '-np', '9', 'C:\Users\administered\Anaconda3\pythonw.exe', 'D:/Desktop/evolution/code/WANN/wann_train.py']
Traceback (most recent call last):

File "", line 1, in
runfile('D:/Desktop/evolution/code/WANN/wann_train.py', wdir='D:/Desktop/evolution/code/WANN')

File "C:\Users\administered\Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 827, in runfile
execfile(filename, namespace)

File "C:\Users\administered\Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 110, in execfile
exec(compile(f.read(), filename, 'exec'), namespace)

File "D:/Desktop/evolution/code/WANN/wann_train.py", line 283, in
if "parent" == mpi_fork(args.num_worker+1): os._exit(0)

File "D:/Desktop/evolution/code/WANN/wann_train.py", line 233, in mpi_fork
subprocess.check_call(["mpirun", "-np", str(n), sys.executable] +['-u']+ sys.argv, env=env)

File "C:\Users\administered\Anaconda3\lib\subprocess.py", line 306, in check_call
retcode = call(*popenargs, **kwargs)

File "C:\Users\administered\Anaconda3\lib\subprocess.py", line 287, in call
with Popen(*popenargs, **kwargs) as p:

File "C:\Users\administered\Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 143, in init
super(SubprocessPopen, self).init(*args, **kwargs)

File "C:\Users\administered\Anaconda3\lib\subprocess.py", line 729, in init
restore_signals, start_new_session)

File "C:\Users\administered\Anaconda3\lib\subprocess.py", line 1017, in _execute_child
startupinfo)

FileNotFoundError: [WinError 2] The system cannot find the file specified

@yachenkang
Copy link
Author

It seems like there is something goes wrong with the mpi4py, but i'm already use the version==3.0. This error happened in win10 system.

@MANXIU
Copy link

MANXIU commented Nov 14, 2019

replace File "D:/Desktop/evolution/code/WANN/wann_train.py", line 233, in mpi_fork
subprocess.check_call(["mpirun", "-np", str(n), sys.executable] +['-u']+ sys.argv, env=env)
with File "D:/Desktop/evolution/code/WANN/wann_train.py", line 233, in mpi_fork
subprocess.check_call(["mpiexec", "-n", str(n), sys.executable] +['-u']+ sys.argv, env=env)

@yachenkang
Copy link
Author

There's no longer an error! Thanks!

@yachenkang
Copy link
Author

replace File "D:/Desktop/evolution/code/WANN/wann_train.py", line 233, in mpi_fork
subprocess.check_call(["mpirun", "-np", str(n), sys.executable] +['-u']+ sys.argv, env=env)
with File "D:/Desktop/evolution/code/WANN/wann_train.py", line 233, in mpi_fork
subprocess.check_call(["mpiexec", "-n", str(n), sys.executable] +['-u']+ sys.argv, env=env)

There's another problem. Now that the program just stack in line 233 and can not get through.

@MANXIU
Copy link

MANXIU commented Nov 14, 2019

not stack ,its just begin to calculate the model,that,s how the code works

@yachenkang
Copy link
Author

So I can only wait until it ends? How long should it takes? Is there a progress bar?

@yachenkang
Copy link
Author

yachenkang commented Nov 14, 2019

Oh, I found out where the problem is. I used to use the spyder to run the file directly. When I run in the terminal, the program runs normally. Thank you for your help!

@jli113
Copy link

jli113 commented Nov 28, 2019

I have the same error when running on windows, but it works when running on ubuntu.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants