Error while executing federated learning text generation tutorial in Colab

user8421958

I am trying to follow this tutorial on federated learning TensorFlow and when executing this line I get an error:

train_data, test_data = tff.simulation.datasets.shakespeare.load_data()

The error:

    Downloading shakespeare.sqlite.lzma:  79%|███████▉  | 1048576/1329828 [00:00<00:00, 12187174.26it/s]
---------------------------------------------------------------------------
NotFoundError                             Traceback (most recent call last)
<ipython-input-12-f8f1fc62c096> in <module>()
----> 1 train_data, test_data = tff.simulation.datasets.shakespeare.load_data()

4 frames
/usr/local/lib/python3.6/dist-packages/tensorflow/python/lib/io/file_io.py in _prewrite_check(self)
     86                                            "File isn't open for writing")
     87       self._writable_file = _pywrap_file_io.WritableFile(
---> 88           compat.path_to_bytes(self.__name), compat.as_bytes(self.__mode))
     89 
     90   def _prepare_value(self, val):

NotFoundError: /root/.tff/shakespeare.sqlite; No such file or directory

enter image description here

Zachary Garrett

This is a problem with the current tensorflow-federated-nightly pip package. It should be fixed by https://github.com/tensorflow/federated/pull/1162.

In the mean time, try changing the pip install in the first cell to use the tensorflow-federated package instead of the nightly package. Example:

!pip install --quiet --upgrade tensorflow_federated
!pip install --quiet --upgrade nest_asyncio

import nest_asyncio
nest_asyncio.apply()

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

while executing below code it showing error

From Dev

Error while executing django sphinx

From Dev

Getting error while Executing Package

From Dev

error while executing lua script for redis server

From Dev

Getting error while executing getwritabledatabase() in android

From Dev

An error occured while executing doInBackground() in AsyncTask

From Dev

Error while executing os.getcwd()?

From Dev

ANDROID: An error occured while executing doInBackground

From Dev

error while executing `VBoxManage` (vagrant/ virtualbox)

From Dev

Error while executing binary file

From Dev

Runtime Exception : An error occured while executing doInBackground()

From Dev

SQL Error while executing query

From Dev

Java Heap Space error while executing Mapreduce

From Dev

Error while executing with subprocess

From Dev

Error while importing Kaggle dataset on Colab

From Dev

Error while executing stored procedure

From Dev

Getting error while Executing Package

From Dev

error while executing mysqli fetch

From Dev

Error in Eval() while executing javascript

From Dev

Error occurred while executing query

From Dev

Syntax error in python while executing

From Dev

Error while executing buildear in UNIX

From Dev

Error while executing an if statement in R

From Dev

Error while executing batch file

From Dev

Adding a loading text while an AJAX function is executing

From Dev

Error in Procedure while executing the procedure

From Dev

error while executing insert triggers

From Dev

Error while executing nodejs

From Dev

antlr 4.7 error while ast generation