Opened 9 years ago

Closed 9 years ago

#28350 closed defect (fixed)

py-pip, py25-pip: won't install due to "file already exists" error

Reported by: brejoc@… Owned by: arthurk@…
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: Cc: shabbyrobe@…, chris.rocco@…, me@…
Port: py-pip, py25-pip

Description

When I try to install py25-pip macports tells me it can't rename '/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py25-pip/work/destroot/opt/local/bin/pip' to '/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py25-pip/work/destroot/opt/local/bin/pip-2.5' because the file would already exist.

This is true, but pip-2.5 is created during the installation process.

The error part from main.log:


:error:destroot Target org.macports.destroot returned: error renaming "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py25-pip/work/destroot/opt/local/bin/pip" to "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py25-pip/work/destroot/opt/local/bin/pip-2.5": file already exists
:debug:destroot Backtrace: error renaming "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py25-pip/work/destroot/opt/local/bin/pip" to "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py25-pip/work/destroot/opt/local/bin/pip-2.5": file already exists
    while executing
"$post $targetname"

Change History (11)

comment:1 Changed 9 years ago by ryandesign (Ryan Schmidt)

Owner: changed from macports-tickets@… to arthurk@…

comment:2 Changed 9 years ago by ryandesign (Ryan Schmidt)

Cc: shabbyrobe@… added
Port: py-pip added
Summary: py25-pip: won't install du to "file already exists" errorpy-pip, py25-pip: won't install due to "file already exists" error

Has duplicate #28451 which points out this also affects py-pip.

comment:3 Changed 9 years ago by shabbyrobe@…

Cc: shabbyrobe@… removed

Cc Me!

comment:4 Changed 9 years ago by shabbyrobe@…

Cc: shabbyrobe@… added

Cc Me!

comment:5 in reply to:  description Changed 9 years ago by trinosauro@…

Replying to brejoc@…:

I'm having exactly the same problem with MacPorts 1.9.2 on Mac OS X 10.6.6.

I only get this error for py25-pip, the Python 2.5 version of pip. I tried to port install py26-pip and py27-pip and it worked fine for both packages.

When I try to install py25-pip macports tells me it can't rename '/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py25-pip/work/destroot/opt/local/bin/pip' to '/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py25-pip/work/destroot/opt/local/bin/pip-2.5' because the file would already exist.

This is true, but pip-2.5 is created during the installation process.

The error part from main.log:


:error:destroot Target org.macports.destroot returned: error renaming "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py25-pip/work/destroot/opt/local/bin/pip" to "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py25-pip/work/destroot/opt/local/bin/pip-2.5": file already exists
:debug:destroot Backtrace: error renaming "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py25-pip/work/destroot/opt/local/bin/pip" to "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py25-pip/work/destroot/opt/local/bin/pip-2.5": file already exists
    while executing
"$post $targetname"

comment:6 Changed 9 years ago by chris.rocco@…

% sudo port install py-pip Password: ---> Computing dependencies for py-pip ---> Staging py-pip into destroot Error: Target org.macports.destroot returned: error renaming "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py-pip/work/destroot/opt/local/bin/pip" to "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py-pip/work/destroot/opt/local/bin/pip-2.4": file already exists Log for py-pip is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py-pip/main.log Error: Status 1 encountered during processing. To report a bug, see <http://guide.macports.org/#project.tickets>

I'm using MacPorts 1.9.2 on OS X 10.5.8.

comment:7 Changed 9 years ago by chris.rocco@…

Cc: chris.rocco@… added

Cc Me!

comment:8 Changed 9 years ago by ray@…

Same also. Using MacPorts 1.9.2 on OS X 10.6.7. Any chance of a fix?

comment:9 Changed 9 years ago by me@…

Same problem with py25-pip on MacPorts 2.0.3 OSX 10.7.2

--->  Computing dependencies for py25-pip
--->  Fetching archive for py25-pip
--->  Attempting to fetch py25-pip-1.0.2_1.darwin_11.x86_64.tgz from http://packages.macports.org/py25-pip
--->  Fetching py25-pip
--->  Verifying checksum(s) for py25-pip
--->  Extracting py25-pip
--->  Configuring py25-pip
--->  Building py25-pip
--->  Staging py25-pip into destroot
Error: Target org.macports.destroot returned: error renaming "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py25-pip/py25-pip/work/destroot/opt/local/bin/pip" to "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py25-pip/py25-pip/work/destroot/opt/local/bin/pip-2.5": file already exists
Log for py25-pip is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py25-pip/py25-pip/main.log
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

comment:10 Changed 9 years ago by me@…

Cc: me@… added

Cc Me!

comment:11 Changed 9 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.