GithubHelp home page GithubHelp logo

Installtion failed about federated HOT 5 CLOSED

lwmonster avatar lwmonster commented on June 11, 2024 1
Installtion failed

from federated.

Comments (5)

Neisser avatar Neisser commented on June 11, 2024

Im trying to install and in getting similar issues, i have tried different python versions and different tensorflow-federated versions.

OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Windows 11 Home
Python package versions (e.g., TensorFlow Federated, TensorFlow):
tensorflow:
TensorFlow Federated 0.48.0, 0.20.0
Python version: 3.9, 3.10, 3.12
Bazel version (if building from source): None
CUDA/cuDNN version: None

trying python 3.8.3 installed the package but give me this error:

import tensorflow_federated as tff
print(tff.federated_computation(lambda: 'Hello, World!')())


RuntimeError Traceback (most recent call last)
in
1 import tensorflow_federated as tff
----> 2 print(tff.federated_computation(lambda: 'Hello, World!')())

c:\Python38\lib\site-packages\tensorflow_federated\python\core\impl\utils\function_utils.py in call(self, *args, **kwargs)
519 context = self._context_stack.current
520 arg = pack_args(self._type_signature.parameter, args, kwargs, context)
--> 521 return context.invoke(self, arg)
522
523 def hash(self):

c:\Python38\lib\site-packages\retrying.py in wrapped_f(*args, **kw)
54 @six.wraps(f)
55 def wrapped_f(*args, **kw):
---> 56 return Retrying(*dargs, **dkw).call(f, *args, **kw)
57
58 return wrapped_f

c:\Python38\lib\site-packages\retrying.py in call(self, fn, *args, **kwargs)
255
256 if not self.should_reject(attempt):
--> 257 return attempt.get(self._wrap_exception)
258
...
--> 554 raise RuntimeError(
555 'Cannot run the event loop while another loop is running')
556

RuntimeError: Cannot run the event loop while another loop is running

from federated.

Neisser avatar Neisser commented on June 11, 2024

@lwmonster did you find a way to install it?

from federated.

michaelreneer avatar michaelreneer commented on June 11, 2024

@Neisser

When you say install. Do you mean pip install tensorflow-federated or do you mean use TFF? I see from the logs you shared that you are getting a RuntimeError, so I am going to assume you mean after you pip install tensorflow-federated. However, you also said your OS was Win 10, which is surprising to me because I would have thought that you would have gotten an error trying to pip install tensorflow-federated on Windows. Note that TFF does not release a package for this OS, see https://pypi.org/project/tensorflow-federated/.

Can you clarify the OS you are trying to run on.

from federated.

Neisser avatar Neisser commented on June 11, 2024

hi @michaelreneer the OS im trying to run is Windows 11 Home

from federated.

michaelreneer avatar michaelreneer commented on June 11, 2024

Currently, TFF does not produce a package that will work on this platform.

I see, then I believe I know what has happened. We did not initially have the package configured correctly to restrict the platform the package would work on. So I imagine you are pulling in an older version of TFF when pip installing on Windows (i.e. the newest version that pip thinks is compatible with Windows). Which you can see that you are using a version of TFF that is quite old. However, this package was not intended to work on Windows.

TensorFlow Federated 0.48.0, 0.20.0

You will need to try and build TFF from source on Windows to use TFF on this platform.

from federated.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.