alcemirfernandes / pynguin

Automatically exported from code.google.com/p/pynguin
GNU General Public License v3.0
0 stars 0 forks source link

WindowsError: [Error 183] Cannot create a file when that file already exists #48

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run "python pynguin" from Windows cmd.
2. Wait for about 30 seconds.
3. I get an error saying, "Traceback (most recent call last):
  File "C:\Python27\lib\pynguin\mw.py", line 609, in autosave
    os.rename(fpsrc, fpdst)
WindowsError: [Error 183] Cannot create a file when that file already exists"

What is the expected output? What do you see instead?
I don't know what to expect. This is my first time using this to learn how to 
program.
Also, when I click Settings > Preferences or Help > About from the files menu, 
nothing happens.

What version of the product are you using? On what operating system?
pynguin-0.11.zip on Python 2.7. Windows XP.

Please provide any additional information below.
I installed python 2.7, PyQt-Py2.7-x86-gpl-4.8.5-1.exe, 
setuptools-0.6c11.win32-py2.7.exe followed by Pygments-1.4-py2.7.egg prior to 
installing pynguin. I installed pynguin by entering "python pynguin" in the 
Windows cmd.

Original issue reported on code.google.com by dogstoev...@gmail.com on 17 Sep 2011 at 1:37

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks for the report. I do not use windows, so sometimes these issues come up. 
It's hard for me to test, but if you are willing to work with me, we can fix it 
up.

I notice now in the docs for os.rename that windows behaves differently from 
unix when the destination file already exists. I will have to write a function 
to handle that correctly.

Do you have mercurial installed? If so, that will make testing much easier. I 
can push in a possible fix and you can pull and try it out.

I believe that the Preferences and About dialogs not coming up are a different 
problem, although it's likely also due to differences between windows and unix. 
Could you open a separate issue to keep track of that one?

Thanks!

Original comment by miss...@hotmail.com on 17 Sep 2011 at 1:53

GoogleCodeExporter commented 9 years ago
This issue was closed by revision 6581ef0c903d.

Original comment by miss...@hotmail.com on 17 Sep 2011 at 6:48

GoogleCodeExporter commented 9 years ago
I think that did it. 
I installed TortoiseHG, set c:\Python27 as repository, synchronized and updated 
with https://code.google.com/p/pynguin/ , and had the program going for a while 
plus examples without the error.

Original comment by dogstoev...@gmail.com on 18 Sep 2011 at 12:38