Skip to content

ImportError: cannot import name bayesflow #10811

Closed

Description

**I am trying to use the command:
cell = tf.contrib.rnn.BasicLSTMCell(state_size, state_is_tuple=True)

However, it keeps telling me: ImportError: cannot import name bayesflow **. Detail is shown as below:

ImportError Traceback (most recent call last)
in ()
4 labels_series = [tf.reshape(x, [batch_size,1]) for x in labels_series]
5 # Forward passes
----> 6 cell = tf.contrib.rnn.BasicLSTMCell(state_size)
7 states_series, current_state = tf.contrib.rnn(cell, inputs_series, init_state)
8

//anaconda/lib/python2.7/site-packages/tensorflow/python/util/lazy_loader.pyc in getattr(self, item)
51
52 def getattr(self, item):
---> 53 module = self._load()
54 return getattr(module, item)
55

//anaconda/lib/python2.7/site-packages/tensorflow/python/util/lazy_loader.pyc in _load(self)
40 def _load(self):
41 # Import the target module and insert it into the parent's namespace
---> 42 module = importlib.import_module(self.name)
43 self._parent_module_globals[self._local_name] = module
44

//anaconda/lib/python2.7/importlib/init.pyc in import_module(name, package)
35 level += 1
36 name = _resolve_name(name[level:], package, level)
---> 37 import(name)
38 return sys.modules[name]

//anaconda/lib/python2.7/site-packages/tensorflow/contrib/init.py in ()
20
21 # Add projects here, they will show up under tf.contrib.
---> 22 from tensorflow.contrib import bayesflow
23 from tensorflow.contrib import cloud
24 from tensorflow.contrib import compiler

ImportError: cannot import name bayesflow

Anybody know how to fix it? Much appreciated in advance!

Xin

Activity

  1. tatatodd commented on Jun 20, 2017

    @tatatodd
    Contributor

    Please resubmit and pay attention to the issue template (https://github.com/tensorflow/tensorflow/issues/new) . Please provide all the information it asks (e.g. TF version, etc). Thank you.

  2. added
    stat:awaiting response
    on Jun 20, 2017
  3. pbamotra commented on Jul 10, 2017

    @pbamotra

    Update dask
    conda update dask

  4. Faur commented on Aug 18, 2017

    @Faur

    Fixed it for me

  5. tensorflowbutler commented on Oct 10, 2017

    @tensorflowbutler
    Member

    This issue is automatically closed due to lack of activity. Please re-open if this is still an issue for you. Thanks!

  6. thanhnguyentang commented on Apr 9, 2018

    @thanhnguyentang

    @pbamotra That does not work for me.

  7. added 6 commits that reference this issue on Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    stat:awaiting response

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions