classification
Title: devinabox: failure when running make_a_box multiple times
Type: behavior Stage:
Components: Versions:
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: Nosy List: brett.cannon, eric.snow
Priority: normal Keywords:

Created on 2012-07-13 04:49 by eric.snow, last changed 2013-02-01 22:41 by brett.cannon. This issue is now closed.

Messages (4)
msg165354 - (view) Author: Eric Snow (eric.snow) * (Python committer) Date: 2012-07-13 04:49
When running make_a_box.py:

Fetching Mercurial ...
make_a_box.py:197: ResourceWarning: unclosed <socket.socket object, fd=3, family=2, type=1, proto=6>
  file_url = self._download_url()
Traceback (most recent call last):
  File "make_a_box.py", line 323, in <module>
    ins.create()
  File "make_a_box.py", line 219, in create
    self._create_mercurial()
  File "make_a_box.py", line 200, in _create_mercurial
    with open(os.path.join(self.directory, file_name), 'wb') as file:
IsADirectoryError: [Errno 21] Is a directory: 'Mercurial/'

Apparently running it more than once requires that you delete some things first.
msg165355 - (view) Author: Eric Snow (eric.snow) * (Python committer) Date: 2012-07-13 04:49
I'm re-running it from a clean directory one more time just to make sure.
msg165357 - (view) Author: Eric Snow (eric.snow) * (Python committer) Date: 2012-07-13 06:11
I just got the same error with a clean install.  I'll have to poke at it some other time.
msg181128 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2013-02-01 22:41
Since you got this with a clean run and I had dev_in_a_box.py work for me in November I'm closing this.
History
Date User Action Args
2013-02-01 22:41:49brett.cannonsetstatus: open -> closed
resolution: out of date
messages: + msg181128
2012-07-13 06:11:31eric.snowsetmessages: + msg165357
2012-07-13 04:49:41eric.snowsetmessages: + msg165355
2012-07-13 04:49:05eric.snowcreate