Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#24656 closed defect (worksforme)

DEBUG: Backtrace: Is a directory

Reported by: Andreas.Krueger2@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.8.2
Keywords: Cc:
Port: py25-distribute

Description (last modified by jmroot (Joshua Root))

I cannot update/install/reinstall py25-distribute

bash-3.2# port -d install py25-distribute

ends with:

DEBUG: Adding file to file_map: /opt/local/lib/python2.5/site-packages/setuptools/tests/test_upload_docs.py for: py25-distribute
DEBUG: Adding file to file_map: /opt/local/lib/python2.5/site-packages/setuptools/tests/test_upload_docs.pyc for: py25-distribute
DEBUG: Adding file to file_map: /opt/local/lib/python2.5/site-packages/setuptools-0.6c11-py2.5.egg-info for: py25-distribute
Error: Target org.macports.activate returned: Is a directory
DEBUG: Backtrace: Is a directory
    while executing
"filemap set file_map $file $port"
    (procedure "receipt_flat::register_file" line 11)
    invoked from within
"${macports::registry.format}::register_file $file $port"
    (procedure "registry::register_file" line 3)
    invoked from within
"registry::register_file $file $name"
    (procedure "portimage::activate" line 63)
    invoked from within
"registry_activate $name ${version}_${revision}${portvariants} [array get user_options]"
    (procedure "portactivate::activate_main" line 3)
    invoked from within
"$procedure $targetname"
Warning: the following items did not execute (for py25-distribute): org.macports.activate
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>
bash-3.2# 

Change History (8)

comment:1 Changed 14 years ago by Andreas.Krueger2@…

Cc: Andreas.Krueger2@… added

Cc Me!

comment:2 Changed 14 years ago by Andreas.Krueger2@…

... but WHAT is a directory?

Please add a more verbose error printer there, then I will try again...

thanks a lot! Andreas

comment:3 Changed 14 years ago by Andreas.Krueger2@…

bash-3.2# port install py25-distribute

---> Computing dependencies for py25-distribute

---> Fetching py25-distribute

---> Verifying checksum(s) for py25-distribute

---> Extracting py25-distribute

---> Configuring py25-distribute

---> Building py25-distribute

---> Staging py25-distribute into destroot

---> Installing py25-distribute @0.6.10_0

---> Activating py25-distribute @0.6.10_0

Error: Target org.macports.activate returned: Is a directory

Error: Status 1 encountered during processing.

comment:4 Changed 14 years ago by jmroot (Joshua Root)

Cc: Andreas.Krueger2@… removed
Description: modified (diff)
Keywords: py25-distribute is a directory removed
Priority: HighNormal

Please remember to preview and use WikiFormatting.

comment:5 Changed 14 years ago by jmroot (Joshua Root)

Resolution: duplicate
Status: newclosed

comment:6 Changed 14 years ago by Andreas.Krueger2@…

Resolution: duplicate
Status: closedreopened

Please remember to preview

Oh, I will. That's good. Did not know that it is possible. Thanks for telling me!

resolution set to duplicate

Unfortunately, #16334 does not seem to be resolved, it does not give a solution.

And: I do not see how #16334 and #24656 are duplicates.

Moreover, #16334 is there for 15 months? Seems to be impossible to solve?

Why did you switch this to "closed", the problem remains. . . . I have just tried again - it still exits with error 1:

bash-3.2# port selfupdate
--->  Updating the ports tree
--->  Updating MacPorts base sources using rsync
MacPorts base version 1.8.2 installed,
MacPorts base version 1.8.2 downloaded.
--->  MacPorts base is already the latest version
The ports tree has been updated. To upgrade your installed ports, you should run
  port upgrade outdated

bash-3.2# port install py25-distribute
--->  Computing dependencies for py25-distribute
--->  Fetching py25-distribute
--->  Verifying checksum(s) for py25-distribute
--->  Extracting py25-distribute
--->  Configuring py25-distribute
--->  Building py25-distribute
--->  Staging py25-distribute into destroot
--->  Installing py25-distribute @0.6.10_0
--->  Activating py25-distribute @0.6.10_0
Error: Target org.macports.activate returned: Is a directory
Error: Status 1 encountered during processing.

comment:7 Changed 14 years ago by jmroot (Joshua Root)

Resolution: worksforme
Status: reopenedclosed

Remove the conflicting /opt/local/lib/python2.5/site-packages/setuptools-0.6c11-py2.5.egg-info directory then.

comment:8 Changed 14 years ago by Andreas.Krueger2@…

I did what you told me.

DEBUG: Adding file to file_map: /opt/local/lib/python2.5/site-packages/setuptools-0.6c11-py2.5.egg-info for: py25-distribute
DEBUG: Is a directory
    while executing
"filemap set file_map $file $port"
    (procedure "receipt_flat::register_file" line 11)
    invoked from within
"${macports::registry.format}::register_file $file $port"
    (procedure "registry::register_file" line 3)
    invoked from within
"registry::register_file $file $name"
    (procedure "portimage::activate" line 63)
    invoked from within
"portimage::activate $portname [composite_version $portversion [array get variations]] [array get options]"
Error: port activate failed: Is a directory

I then manually deleted the "setuptools-0.6c11-py2.5.egg-info" - which by the way was NOT a directory.

And then simply started it again:

bash-3.2# port -d activate py25-distribute
--->  Activating py25-distribute
DEBUG: Image error: py25-distribute @0.6.10_0 is already active.
    while executing
"portimage::activate $portname [composite_version $portversion [array get variations]] [array get options]"
Error: port activate failed: Image error: py25-distribute @0.6.10_0 is already active.
bash-3.2# 

BUT: Why is it already active, if the above resulted in an error first?

...

How can I trust the current state of my system now?

...

What is the recipe to redo the whole thing reliably?

Note: See TracTickets for help on using tickets.