Python Forum
Thread Rating:
  • 1 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
IOError: [Errno 21]
#1
Hi,

Why does this error cause? What should I do?

Output:
[echo] Running script [exec] Warning: Could not import lru_cache [exec] Loading transformation from directory: /Users/apple/Downloads/workspace/t2/backend/generated/transformation [exec] Loading rule: HTree2Node [exec] Ramifying directory: /Users/apple/Downloads/workspace/t2/backend/generated/transformation/ [exec] Finished PyRamify [exec] ================================== [exec] Traceback (most recent call last): [exec] File "toplevel.py", line 53, in <module> [exec] test.test_correct(args) [exec] File "/Users/apple/Downloads/SyVOLT-master-2 copy/util/test_script_base.py", line 56, in test_correct [exec] self.subclasses_dict, self.superclasses_dict = get_sub_and_super_classes(self.inputMM, self.outputMM) [exec] File "/Users/apple/Downloads/SyVOLT-master-2 copy/util/test_script_utils.py", line 81, in get_sub_and_super_classes [exec] inMM = EcoreUtils(inputMM) [exec] File "/Users/apple/Downloads/SyVOLT-master-2 copy/util/ecore_utils.py", line 26, in __init__ [exec] self.xmldoc = minidom.parse(xmlfileName) [exec] File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/dom/minidom.py", line 1918, in parse [exec] return expatbuilder.parse(file) [exec] File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/dom/expatbuilder.py", line 922, in parse [exec] fp = open(file, 'rb') [exec] IOError: [Errno 21] Is a directory: '/Users/apple/Downloads/workspace/t2/backend/generated/' [exec] Result: 1
Reply
#2
im assuming based on the error that it is suppose to be a path to a file not a directory
Recommended Tutorials:
Reply
#3
(May-31-2017, 01:06 PM)metulburr Wrote: im assuming based on the error that it is suppose to be a path to a file not a directory
Thanks for your reply. This link contains the related files. What should I do?
Reply
#4
what is the ultimate goal you trying to achieve?
did you want to copy the files on this page?
Reply
#5
(May-31-2017, 03:29 PM)Larz60+ Wrote: what is the ultimate goal you trying to achieve?
did you want to copy the files on this page?
I want to run that tool for the purpose of verification. It generates some python,etc. files.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  getting error "exec_proc.stdin.write(b'yes\n') IOError: [Errno 32] Broken pipe" Birju_Barot 0 2,967 Jul-23-2019, 11:50 AM
Last Post: Birju_Barot

Forum Jump:

User Panel Messages

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