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
windows install(really rookie) #338
Comments
Did you download the built release and copied the files to right place ? ViZDoom requires some binaries to function, and building them on Windows is tedious, hence it is easier to use pre-built binaries on the releases page. |
You need to place the binary files under |
HI Miffyli i'm extremely thankful for ur kind and time. |
In that case I think the only way is to copy binaries of ViZDoom in
I have not installed ViZDoom under on Windows and under Anaconda, but judging by the instructions it is same as with non-conda install. |
hi Miffyli thank u for ur time. |
Hmm interesting. Can you paste here what happens if you do this: import vizdoom
print(dir(vizdoom)) |
Ah yes. You have "vizdoom.py" file in your project folder, and importing "vizdoom" tries to import that Python file. Remove |
i got this error thank u for ur response |
Hello @KnightOf, |
hi @mwydmuch thank u ,sincerely. |
Everything that is required is already included in zip archive. Please check if your Anaconda 3 is 3.5 or 3.6 Python based. |
hello @mwydmuch game = DoomGame() shoot = [0,0,1] episodes = 10 and it come out this (vizdoom) D:#Git\Python>python test.py OS: Windows NT (NT 10.0) Build 17134 D_DoomInit: Static RNGseed 2147483647 set. what does it mean. |
In current version, In case of some problem with attributes, see current version of basic.py example and Types.md. |
hi im try to use vizdoom on my computer
os:windows10
i've install vizdoom in D:\Users\user\Anaconda3\Lib\site-packages\vizdoom
and my basic.py is in D:\Users\user\Anaconda3\Lib\site-packages\vizdoom\examples
use vscode to run this
from vizdoom import *
import random, time
game = DoomGame()
game.load_config("../config/basic.cfg")
game.init()
shoot = [0,0,1]
left = [1,0,0]
right = [0,1,0]
episodes = 10
for i in range(episodes):
game.new_episode()
while not game.is_episode_finished():
state = game.get_state()
img = state.image_buffer
misc = state.game_variables
action = random.choice([shoot, left, right]) # A random agent
reward = game.make_action(action)
time.sleep(0.02) # Just to make it slower
print("Total reward: " + str(game.get_total_reward()))
and got this
D:#Git\Python>python vizdoom.py
Traceback (most recent call last):
File "vizdoom.py", line 1, in
from vizdoom import *
File "D:#Git\Python\vizdoom.py", line 4, in
game = DoomGame()
NameError: name 'DoomGame' is not defined
im not sure what kind of problem am i running to
since i dont really understand the installing step
so any problem is possible to make by me,
im very sorry for such unclear question,and ive been searching for solution for a long time
and i still cant figure it out.
if i miss any information for my question,please let me know.
thank you for your apply.
oh ! i can run vizdoom.exe,dont know would that help?
The text was updated successfully, but these errors were encountered: