question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AttributeError: 'SACTrainingParameters' object has no attribute 'thrift_spec'

See original GitHub issue

Hi,

I successfully installed via the docker instructions, but when trying to install locally I get the error below when running the test step. I’ve got a custom tensorflow build that works with Cuda 10.0/CudaNN 7.4 running on the host, so that may be a factor, but seems unlikely. The installation instructions say to set JAVA_HOME to the parent of the python dir. I don’t have Java installed there, so that might also be a factor. In my case this is /home/jxstanford/.pyenv

System information

OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Ubuntu 18.04 TensorFlow installed from (source or binary): source TensorFlow version: r1.12 and master (7561099fb65c18bd091751b60fc45550fc5d4805) Python version: Python 3.6.3 :: Anaconda, Inc. Installed using virtualenv? pip? conda?: pyenv CUDA/cuDNN version: 10.0 / 7.4 GPU model and memory: GTX 1080ti

jxstanford@ryzen-1080:~/devel/conda-projects/Horizon$ python setup.py test running test running egg_info writing horizon.egg-info/PKG-INFO writing dependency_links to horizon.egg-info/dependency_links.txt writing top-level names to horizon.egg-info/top_level.txt reading manifest file 'horizon.egg-info/SOURCES.txt' writing manifest file 'horizon.egg-info/SOURCES.txt' running build_ext Traceback (most recent call last): File "setup.py", line 27, in <module> dependency_links=[], File "/home/jxstanford/.pyenv/versions/miniconda3-4.3.30/lib/python3.6/distutils/core.py", line 148, in setup dist.run_commands() File "/home/jxstanford/.pyenv/versions/miniconda3-4.3.30/lib/python3.6/distutils/dist.py", line 955, in run_commands self.run_command(cmd) File "/home/jxstanford/.pyenv/versions/miniconda3-4.3.30/lib/python3.6/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/home/jxstanford/.pyenv/versions/miniconda3-4.3.30/lib/python3.6/site-packages/setuptools/command/test.py", line 215, in run self.run_tests() File "/home/jxstanford/.pyenv/versions/miniconda3-4.3.30/lib/python3.6/site-packages/setuptools/command/test.py", line 238, in run_tests **exit_kwarg File "/home/jxstanford/.pyenv/versions/miniconda3-4.3.30/lib/python3.6/unittest/main.py", line 94, in __init__ self.parseArgs(argv) File "/home/jxstanford/.pyenv/versions/miniconda3-4.3.30/lib/python3.6/unittest/main.py", line 124, in parseArgs self._do_discovery([]) File "/home/jxstanford/.pyenv/versions/miniconda3-4.3.30/lib/python3.6/unittest/main.py", line 229, in _do_discovery self.test = loader.discover(self.start, self.pattern, self.top) File "/home/jxstanford/.pyenv/versions/miniconda3-4.3.30/lib/python3.6/unittest/loader.py", line 341, in discover tests = list(self._find_tests(start_dir, pattern)) File "/home/jxstanford/.pyenv/versions/miniconda3-4.3.30/lib/python3.6/unittest/loader.py", line 398, in _find_tests full_path, pattern, namespace) File "/home/jxstanford/.pyenv/versions/miniconda3-4.3.30/lib/python3.6/unittest/loader.py", line 475, in _find_test_path tests = self.loadTestsFromModule(package, pattern=pattern) File "/home/jxstanford/.pyenv/versions/miniconda3-4.3.30/lib/python3.6/site-packages/setuptools/command/test.py", line 43, in loadTestsFromModule tests.append(self.loadTestsFromName(submodule)) File "/home/jxstanford/.pyenv/versions/miniconda3-4.3.30/lib/python3.6/unittest/loader.py", line 190, in loadTestsFromName return self.loadTestsFromModule(obj) File "/home/jxstanford/.pyenv/versions/miniconda3-4.3.30/lib/python3.6/site-packages/setuptools/command/test.py", line 43, in loadTestsFromModule tests.append(self.loadTestsFromName(submodule)) File "/home/jxstanford/.pyenv/versions/miniconda3-4.3.30/lib/python3.6/unittest/loader.py", line 190, in loadTestsFromName return self.loadTestsFromModule(obj) File "/home/jxstanford/.pyenv/versions/miniconda3-4.3.30/lib/python3.6/site-packages/setuptools/command/test.py", line 43, in loadTestsFromModule tests.append(self.loadTestsFromName(submodule)) File "/home/jxstanford/.pyenv/versions/miniconda3-4.3.30/lib/python3.6/unittest/loader.py", line 190, in loadTestsFromName return self.loadTestsFromModule(obj) File "/home/jxstanford/.pyenv/versions/miniconda3-4.3.30/lib/python3.6/site-packages/setuptools/command/test.py", line 43, in loadTestsFromModule tests.append(self.loadTestsFromName(submodule)) File "/home/jxstanford/.pyenv/versions/miniconda3-4.3.30/lib/python3.6/unittest/loader.py", line 153, in loadTestsFromName module = __import__(module_name) File "/home/jxstanford/devel/conda-projects/Horizon/ml/rl/test/gym/open_ai_gym_environment.py", line 8, in <module> from ml.rl.test.gym.gym_predictor import ( File "/home/jxstanford/devel/conda-projects/Horizon/ml/rl/test/gym/gym_predictor.py", line 8, in <module> from ml.rl.training.dqn_trainer import DQNTrainer File "/home/jxstanford/devel/conda-projects/Horizon/ml/rl/training/dqn_trainer.py", line 13, in <module> from ml.rl.preprocessing.normalization import ( File "/home/jxstanford/devel/conda-projects/Horizon/ml/rl/preprocessing/normalization.py", line 12, in <module> from ml.rl.thrift.core.ttypes import NormalizationParameters File "/home/jxstanford/devel/conda-projects/Horizon/ml/rl/thrift/core/ttypes.py", line 2070, in <module> class SACModelParameters(object): File "/home/jxstanford/devel/conda-projects/Horizon/ml/rl/thrift/core/ttypes.py", line 2087, in SACModelParameters }), training=SACTrainingParameters(**{ File "/home/jxstanford/devel/conda-projects/Horizon/ml/rl/thrift/core/ttypes.py", line 1941, in __init__ if q_network_optimizer is self.thrift_spec[2][4]: AttributeError: 'SACTrainingParameters' object has no attribute 'thrift_spec'

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
MisterTeacommented, Nov 16, 2018

I’ve seen that fail before. What OS are you running?

0reactions
MisterTeacommented, Nov 16, 2018

Nevermind, I saw you posted your OS 😛

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why am I getting AttributeError: Object has no attribute? [closed]
Your indentation is goofed, and you've mixed tabs and spaces. Run the script with python -tt to verify.
Read more >
AttributeError: 'MultivariateSample' object has no attribute 'train'
While running the python code that is available in the linkclient-libraries-multivariate , i got the below error in "Run the Application" area.
Read more >
AttributeError: 'NoneType' object has no attribute 'call' on ...
Hello, I'm at a loss to explain why this flow fails and succeeds at the same time… It only consists in triggering a...
Read more >
Python AttributeError — What is it and how do you fix it?
AttributeError : '***' object has no attribute '***'What is an AttributeError in Python? What can you do to fix it? When does it...
Read more >
[Solved] AttributeError: 'module' object has no attribute
Click here to subscribe - https://www.youtube.com/channel/UCeVMnSShP_Iviwkknt83cww▻Instagram ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found