p1tr installer not recognizing second run

Bug #216852 reported by Michael Otteneder on 2008-04-13
Affects Status Importance Assigned to Milestone
Chris Ortner

Bug Description

When I first started p1tr the installer worked flawlessly. But next time I started P1tr the install started again. Obviously it cant determine correctly if it has already run or not. The second attempt to install p1tr fails with this traceback:
FATAL: Cannot create P1tr directory in your home:
Traceback (most recent call last):
  File "bot.py", line 58, in <module>
  File "bot.py", line 37, in main
  File "/Users/mc/dev/p1tr/lib/helpers.py", line 75, in load_language
    conf_lang = imp.load_source('config', './lib/config.py').language
  File "./lib/config.py", line 45, in <module>
    config_file = install.main()
  File "/Users/mc/dev/p1tr/install.py", line 64, in main
    shutil.copytree(os.getcwd(), target)
  File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/shutil.py", line 110, in copytree
  File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/os.py", line 172, in makedirs
    mkdir(name, mode)
OSError: [Errno 17] File exists: '/Users/mc/.p1tr'[18:30:54] INFO: None

Chris Ortner (c-ortner) wrote :

This is not really a bug, it was rather intended to be a feature. In ~/.p1tr you should have a working P1tr installation. This way of proceeding is most useful for normal users, not developers.
However, this is a bit uncomfortable, so you can, as a workaround, copy ~/.p1tr/bot,conf to your P1tr directory for development.

I will commit a change which enables you to use ~/.p1tr/bot.conf when starting P1tr from your development directory.

Changed in p1tr:
assignee: nobody → c-ortner
importance: Undecided → Medium
milestone: none → beta
status: New → Confirmed
Chris Ortner (c-ortner) wrote :

Fixed in revision 116.

Changed in p1tr:
status: Confirmed → Fix Committed

Thanks for fixing!

On Sun, Apr 13, 2008 at 7:22 PM, Chris Ortner <email address hidden> wrote:
> Fixed in revision 116.
> ** Changed in: p1tr
> Status: Confirmed => Fix Committed
> --
> p1tr installer not recognizing second run
> https://bugs.launchpad.net/bugs/216852
> You received this bug notification because you are a direct subscriber
> of the bug.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers