Comments (5)
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.
@lwmonster did you find a way to install it?
from federated.
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.
hi @michaelreneer the OS im trying to run is Windows 11 Home
from federated.
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)
- An error went when I ran pip install --upgrade tensorflow-federated HOT 2
- AttributeError: module 'tensorflow._api.v2.nest' has no attribute 'map_struture' HOT 1
- Documentation Issue - build_fed_kmeans HOT 1
- Error installing Tensorflow Federated with Python 3.9 HOT 4
- OperatorNotAllowedInGraphError Traceback (most recent call last)
- TFF using model resnet,the val accuracy has always been a result of random guessing
- AttributeError: module 'numpy' has no attribute '_no_nep50_warning' when importing TensorFlow Federated HOT 6
- Installation failed HOT 10
- Facing error in "Learning Attribute" Please Help. HOT 2
- tff.federated_computation(lambda: 'Hello World!')() stuck/hanging HOT 6
- Stuck at learning_process.initialize() and tff.federated_computation(lambda: 'Hello, World!')() HOT 1
- Security policy for tensorflow federated?
- Colab stuck at learning_process.initialize() HOT 14
- Exploding memory while training federated model on FLAIR Dataset HOT 3
- No GPU utilization when using the cpp execution context HOT 2
- perform cross-silo federated learning by TFF HOT 2
- Keras 3 and TF 16.1 support HOT 13
- Issue with TensorFlow Federated Execution in Remote Environments HOT 10
- Full simulation in docs
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from federated.