Python Forum
How to resolve my problem in Pycharm?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to resolve my problem in Pycharm?
#1
Hi,

I'm using Pycharm to classify images of Clothing based on the following link:

https://colab.research.google.com/github...hing.ipynb

when I run the code in Colab, there is no problem. I have installed all required packages for running
the code in Pycharm. However, Pycharm produces an input/output error for line 12 below (there is no GPU on my desktop):

1 import tensorflow as tf
2
3 # Import TensorFlow Datasets
4 import tensorflow_datasets as tfds
5 tfds.disable_progress_bar()
6
7 # Helper libraries
8 import math
9 import numpy as np
10 import matplotlib.pyplot as plt
11
12 dataset, metadata = tfds.load('fashion_mnist', as_supervised=True, with_info=True)
13 train_dataset, test_dataset = dataset['train'], dataset['test']

Traceback (most recent call last):
File "H:/PyCharm_Projects1/J1/P1.py", line 12, in <module>
dataset, metadata = tfds.load('fashion_mnist', as_supervised=True, with_info=True)
File "H:\J1\lib\site-packages\tensorflow_datasets\core\load.py", line 327, in load
dbuilder.download_and_prepare(**download_and_prepare_kwargs)
File "H:\J1\lib\site-packages\tensorflow_datasets\core\dataset_builder.py", line 494, in download_and_prepare
self.info.update_data_dir(self._data_dir)
File "J:\Python 3_8_8\lib\contextlib.py", line 120, in __exit__
next(self.gen)
File "H:\J1\lib\site-packages\tensorflow_datasets\core\utils\py_utils.py", line 325, in incomplete_dir
tf.io.gfile.rename(tmp_dir, dirname)
File "H:\J1\lib\site-packages\tensorflow\python\lib\io\file_io.py", line 620, in rename_v2
_pywrap_file_io.RenameFile(
tensorflow.python.framework.errors_impl.UnknownError: Failed to rename: ~\tensorflow_datasets\fashion_mnist\3.0.1.incompleteDE8LGI to: ~\tensorflow_datasets\fashion_mnist\3.0.1 : Access is denied.
; Input/output error

Process finished with exit code 1

How can I resolve this problem so that I get the Colab's results in Pycharm?
Thank you very much for your sincere help and attention.

Bijan
Larz60+ write Sep-26-2022, 06:38 PM:
Please post all code, output and errors (it it's entirety) between their respective tags. Refer to BBCode help topic on how to post. Use the "Preview Post" button to make sure the code is presented as you expect before hitting the "Post Reply/Thread" button.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [split] How to resolve version conflicts in Python? atonalwilson 1 1,005 May-04-2023, 09:02 AM
Last Post: buran
  How to resolve version conflicts in Python? taeefnajib 0 936 Apr-27-2023, 08:37 PM
Last Post: taeefnajib
  Facing problem with Pycharm - Not getting the expected output amortal03 1 865 Sep-09-2022, 05:44 PM
Last Post: Yoriz
  Solving equation equal to zero: How to resolve the syntax error? alexfrol86 3 1,987 Feb-21-2022, 08:58 AM
Last Post: deanhystad
  win32com — How to resolve “AttributeError: xlUp” for Excel files? JaneTan 2 4,251 Aug-18-2021, 05:27 AM
Last Post: snippsat
  How to resolve Index Error in my code? codify110 6 3,053 May-22-2021, 11:04 AM
Last Post: supuflounder
  Threading or pycharm pydev problem Fidgety 2 2,571 Apr-04-2021, 03:28 PM
Last Post: ndc85430
  Idle and pycharm problem noithatgooccho 1 2,345 Jan-06-2021, 10:49 AM
Last Post: Larz60+
  Idle and pycharm problem gr3yali3n 3 2,352 Sep-05-2020, 03:28 AM
Last Post: gr3yali3n
  How to resolve numpy ValueError: dtype.descr Py_veeran 0 1,852 Aug-18-2020, 06:46 PM
Last Post: Py_veeran

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020