AlelyaniT / pynocle

Automatically exported from code.google.com/p/pynocle
0 stars 0 forks source link

Access 5 Error #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. running test_init on a selected file.

What is the expected output? What do you see instead?
error

What version of the product are you using? On what operating system?
win 7, 32bit

Please provide any additional information below.
Traceback (most recent call last):
  File "C:\Users\shawn.kirsch\Desktop\pynocle\test_shawn.py", line 10, in <module>
    m = pynocle.Monocle(outputdir = 'exampleoutput' , files_and_folders = 'C:\trunk\RGS_Media\Libraries\Media_Software_Library\Scripts\Development_Branch\MT_Validator\mt_validator.py')
  File "C:\Users\shawn.kirsch\Desktop\pynocle\..\pynocle\__init__.py", line 197, in __init__
    self.filenames = utils.find_all(files_and_folders)
  File "C:\Users\shawn.kirsch\Desktop\pynocle\..\pynocle\utils.py", line 93, in find_all
    fa = _FindAll(files_and_folders, pattern)
  File "C:\Users\shawn.kirsch\Desktop\pynocle\..\pynocle\utils.py", line 68, in __init__
    self.findall(files_and_folders)
  File "C:\Users\shawn.kirsch\Desktop\pynocle\..\pynocle\utils.py", line 87, in findall
    self.findall(paths)
  File "C:\Users\shawn.kirsch\Desktop\pynocle\..\pynocle\utils.py", line 86, in findall
    paths = map(lambda x: os.path.join(d, x), os.listdir(d))
WindowsError: [Error 5] Access is denied: '\\Documents and Settings/*.*'
Process terminated with an exit code of 1

Original issue reported on code.google.com by Shawny2...@gmail.com on 26 Sep 2011 at 4:07

GoogleCodeExporter commented 9 years ago
Any information you can give to help me repro would be much appreciated.  I've 
run it at work and home without this problem.  I'll add in some logging but I 
seem to hve enough info from this report to be very confused...

Original comment by rob.gala...@gmail.com on 26 Sep 2011 at 4:23

GoogleCodeExporter commented 9 years ago
I'm going to add more extensive tests for the 'utils' module tonight so 
hopefully I can repro and fix your issue.

Original comment by rob.gala...@gmail.com on 26 Sep 2011 at 4:29

GoogleCodeExporter commented 9 years ago
it seems like anytime I add the param: files_and_folders it creates this crash.

Original comment by Shawny2...@gmail.com on 26 Sep 2011 at 5:10

GoogleCodeExporter commented 9 years ago
digging into it a little more.

Original comment by Shawny2...@gmail.com on 26 Sep 2011 at 5:34

GoogleCodeExporter commented 9 years ago
new image

Original comment by Shawny2...@gmail.com on 26 Sep 2011 at 5:38

Attachments:

GoogleCodeExporter commented 9 years ago
stupid mistake in the file_and_folders var.  Changed to 
r'C:\Users\shawn.kirsch\Desktop\pynocle' but still same issue.

Original comment by Shawny2...@gmail.com on 26 Sep 2011 at 9:15

GoogleCodeExporter commented 9 years ago
Alright I'm going to do some more testing after I finish the packaging, I'll 
let you know.

Original comment by rob.gala...@gmail.com on 27 Sep 2011 at 12:46

GoogleCodeExporter commented 9 years ago
I've added a few fixes and improvements to that find_all function, try it again 
from head revision and see if it clears it up.

Original comment by rob.gala...@gmail.com on 27 Sep 2011 at 2:27

GoogleCodeExporter commented 9 years ago

Original comment by rob.gala...@gmail.com on 27 Sep 2011 at 2:28

GoogleCodeExporter commented 9 years ago
i'll check it in the morning.

Original comment by Shawny2...@gmail.com on 27 Sep 2011 at 2:41

GoogleCodeExporter commented 9 years ago

Original comment by rob.gala...@gmail.com on 27 Sep 2011 at 2:50

GoogleCodeExporter commented 9 years ago

Original comment by rob.gala...@gmail.com on 27 Sep 2011 at 2:53

GoogleCodeExporter commented 9 years ago
Hey shawn, duh, this just dawned on me.  You need to pass a collection of 
strings into pynocle.Monocle's files_and_folders arg.  You were passing a 
single string so it was chopping it up.  I'm editing it to automatically 
convert a string to a tuple.  Make sure you're passing a tuple and it will 
work.  I'm closing this out, reopen if it's still busted (and it shouldn't 
happen after next update).

Original comment by rob.gala...@gmail.com on 1 Oct 2011 at 5:10