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

AttributeError : basic.py failed #365

Open
geonyeong-park opened this issue Jan 20, 2019 · 9 comments
Open

AttributeError : basic.py failed #365

geonyeong-park opened this issue Jan 20, 2019 · 9 comments

Comments

@geonyeong-park
Copy link

geonyeong-park commented Jan 20, 2019

Hi, I am using ubuntu 18.04, conda 4.5.11 with python 3.6.7 and installed most current version of vizdoom by git cloning.
However, when i tried to run basic.py, it returns error such as:

Traceback (most recent call last):
File "/home/geonyoung/ViZDoom/examples/python/basic.py", line 52, in
game.set_objects_info_enabled(True)
AttributeError: 'vizdoom.vizdoom.DoomGame' object has no attribute 'set_objects_info_enabled'

After i skipped this line, 'set_sectors_info_enabled' make exactly same error.

By the way, Thank you for your great supports and projects!

@mwydmuch
Copy link
Collaborator

Hi @ParkGeonYeong, are you sure than you installed the current master version?
After installing using (the version should be 1.1.8):

pip install git+https://github.com/mwydmuch/ViZDoom

The example works fine for me.

@mihahauke
Copy link
Collaborator

I've run into the same error for 1.1.7. It works for 1.1.8. @ParkGeonYeong Can you confirm it is the case for you too?

@blearn-cmu
Copy link

blearn-cmu commented Feb 1, 2019

I have the same problem using Windows 10, conda 4.6.2, python 3.7.2. I used the pre-compiled Windows binaries for release 1.1.7. (ViZDoom-1.1.7-Win-Python37-x86_64.zip).

I also tried python 3.6.8 in another conda environment on the same system, using the appropriate pre-compiled binaries for 1.1.7 (ViZDoom-1.1.7-Win-Python36-x86_64.zip)

When can we expect the 1.1.8 pre-compiled Windows binaries?

@blearn-cmu
Copy link

Oops, sorry this was user error. All I had to do was move to the 1.1.7 tag of the source tree.

$ git checkout tag/1.1.7

@nainglinwai1
Copy link

Hi, I am using ubuntu 18.04, conda 4.5.11 with python 3.6.7 and installed most current version of vizdoom by git cloning.
However, when i tried to run basic.py, it returns error such as:

Traceback (most recent call last):
File "/home/geonyoung/ViZDoom/examples/python/basic.py", line 52, in
game.set_objects_info_enabled(True)
AttributeError: 'vizdoom.vizdoom.DoomGame' object has no attribute 'set_objects_info_enabled'

After i skipped this line, 'set_sectors_info_enabled' make exactly same error.

By the way, Thank you for your great supports and projects!

is the error solved

@SCKnife
Copy link

SCKnife commented Jul 14, 2019

I have some problems ,please help me!Iet me give you a brief account of how I built it:
First,I downloaded the windows binaries 1.1.7Python 3.7 (64-bit), and copy it to the
C:\ProgramData\Anaconda3\envs\py1\Lib\site-packages,so I can successfully import vizdoom.
Second,I clone the vizdoom from the Github to the local,then I open the cmd, move to the file until
examples/python, when I carry out the command of "python basic.py",here are the error:
Traceback (most recent call last):
File "basic.py", line 52, in
game.set_objects_info_enabled(True)
AttributeError: 'vizdoom.vizdoom.DoomGame' object has no attribute 'set_objects_info_enabled'
So what should I do?Please help me!Thank you!

@takkiraz
Copy link

Set_objects_info_enabled is only available in version 1.1.8.
So you have to build it yourself or use it on Linux or Mac.

@Tie-1
Copy link

Tie-1 commented Mar 24, 2022

Hi, I am using ubuntu 18.04, conda 4.5.11 with python 3.6.7 and installed most current version of vizdoom by git cloning.
However, when i tried to run basic.py, it returns error such as:

Traceback (most recent call last):
File "/home/geonyoung/ViZDoom/examples/python/basic.py", line 52, in
game.set_objects_info_enabled(True)
AttributeError: 'vizdoom.vizdoom.DoomGame' object has no attribute 'set_objects_info_enabled'

After i skipped this line, 'set_sectors_info_enabled' make exactly same error.
By the way, Thank you for your great supports and projects!

is the error solved

Can you describe it in more detail and how to solve it?

@romulofff
Copy link

romulofff commented Oct 22, 2022

EDIT: Nevermind, I could run adding the solution in #486

Hi, I'm using Ubuntu 20.04, Python 3.8.10 and I have the same error

AttributeError: 'vizdoom.vizdoom.DoomGame' object has no attribute 'set_soft_sound_enabled'

I tried reducing my code to this 4 lines, and still had the same problem:

import vizdoom
game = vizdoom.DoomGame()
game.set_soft_sound_enabled(True)
game.init()

I installed vizdoom first with pip install vizdoom. Then tried pip install git+https://github.com/mwydmuch/ViZDoom and it failed again. Any fix for this?

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

No branches or pull requests

9 participants