#16599 closed defect (fixed)
py30-tkinter can't activate: Not a directory
Reported by: | ryandesign (Ryan Carsten Schmidt) | Owned by: | mww@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.6.0 |
Keywords: | Cc: | raimue (Rainer Müller), mf2k (Frank Schima), zerok (Horst Gutmann), alakazam@… | |
Port: | py30-tkinter |
Description
I can't activate py30-tkinter. I'm using MacPorts 1.6.0 on Mac OS X 10.4.11 with Xcode 2.5. python30 @3.0rc1_0 is installed.
$ sudo port -d install py30-tkinter DEBUG: Changing to port directory: /Users/rschmidt/macports/dports/python/py30-tkinter DEBUG: Requested variant darwin is not provided by port py30-tkinter. DEBUG: Requested variant i386 is not provided by port py30-tkinter. DEBUG: Requested variant macosx is not provided by port py30-tkinter. DEBUG: Changing to port directory: /Users/rschmidt/macports/dports/python/py30-tkinter DEBUG: Requested variant darwin is not provided by port py30-tkinter. DEBUG: Requested variant i386 is not provided by port py30-tkinter. DEBUG: Requested variant macosx is not provided by port py30-tkinter. DEBUG: Found port in file:///Users/rschmidt/macports/dports/lang/python30 DEBUG: Changing to port directory: /Users/rschmidt/macports/dports/lang/python30 DEBUG: Requested variant darwin is not provided by port python30. DEBUG: Requested variant i386 is not provided by port python30. DEBUG: Requested variant macosx is not provided by port python30. DEBUG: Searching for dependency: python30 DEBUG: Found Dependency: receipt exists for python30 DEBUG: Found port in file:///Users/rschmidt/macports/dports/lang/tcl DEBUG: Changing to port directory: /Users/rschmidt/macports/dports/lang/tcl DEBUG: Requested variant darwin is not provided by port tcl. DEBUG: Requested variant i386 is not provided by port tcl. DEBUG: Requested variant macosx is not provided by port tcl. DEBUG: Searching for dependency: tcl DEBUG: Found Dependency: receipt exists for tcl DEBUG: Found port in file:///Users/rschmidt/macports/dports/x11/tk DEBUG: Changing to port directory: /Users/rschmidt/macports/dports/x11/tk DEBUG: Requested variant darwin is not provided by port tk. DEBUG: Requested variant i386 is not provided by port tk. DEBUG: Requested variant macosx is not provided by port tk. DEBUG: Searching for dependency: tk DEBUG: Found Dependency: receipt exists for tk DEBUG: Skipping completed org.macports.main (py30-tkinter) DEBUG: Skipping completed org.macports.fetch (py30-tkinter) DEBUG: Skipping completed org.macports.checksum (py30-tkinter) DEBUG: setting option extract.cmd to /opt/local/bin/bzip2 DEBUG: Skipping completed org.macports.extract (py30-tkinter) DEBUG: Skipping completed org.macports.patch (py30-tkinter) DEBUG: Skipping completed org.macports.configure (py30-tkinter) DEBUG: Skipping completed org.macports.build (py30-tkinter) DEBUG: Skipping completed org.macports.destroot (py30-tkinter) ---> Installing py30-tkinter 3.0b3_0 DEBUG: Executing org.macports.install (py30-tkinter) DEBUG: installing directory: /opt/local/var/macports/software/py30-tkinter/3.0b3_0/opt DEBUG: installing directory: /opt/local/var/macports/software/py30-tkinter/3.0b3_0/opt/local DEBUG: installing directory: /opt/local/var/macports/software/py30-tkinter/3.0b3_0/opt/local/Library DEBUG: installing directory: /opt/local/var/macports/software/py30-tkinter/3.0b3_0/opt/local/Library/Frameworks DEBUG: installing directory: /opt/local/var/macports/software/py30-tkinter/3.0b3_0/opt/local/Library/Frameworks/Python.framework DEBUG: installing directory: /opt/local/var/macports/software/py30-tkinter/3.0b3_0/opt/local/Library/Frameworks/Python.framework/Versions DEBUG: installing directory: /opt/local/var/macports/software/py30-tkinter/3.0b3_0/opt/local/Library/Frameworks/Python.framework/Versions/3.0 DEBUG: installing directory: /opt/local/var/macports/software/py30-tkinter/3.0b3_0/opt/local/Library/Frameworks/Python.framework/Versions/3.0/lib DEBUG: installing directory: /opt/local/var/macports/software/py30-tkinter/3.0b3_0/opt/local/Library/Frameworks/Python.framework/Versions/3.0/lib/python3.0 DEBUG: installing directory: /opt/local/var/macports/software/py30-tkinter/3.0b3_0/opt/local/Library/Frameworks/Python.framework/Versions/3.0/lib/python3.0/site-packages DEBUG: installing file: /opt/local/var/macports/software/py30-tkinter/3.0b3_0/opt/local/Library/Frameworks/Python.framework/Versions/3.0/lib/python3.0/site-packages/_tkinter.so DEBUG: installing file: /opt/local/var/macports/software/py30-tkinter/3.0b3_0/opt/local/Library/Frameworks/Python.framework/Versions/3.0/lib/python3.0/site-packages/Tkinter-0.0.0-py3.0.egg-info DEBUG: Executing org.macports.activate (py30-tkinter) ---> Activating py30-tkinter 3.0b3_0 DEBUG: activating directory: / DEBUG: activating directory: /opt DEBUG: activating directory: /opt/local DEBUG: activating directory: /opt/local/Library DEBUG: activating directory: /opt/local/Library/Frameworks DEBUG: activating directory: /opt/local/Library/Frameworks/Python.framework DEBUG: activating directory: /opt/local/Library/Frameworks/Python.framework/Versions DEBUG: activating directory: /opt/local/Library/Frameworks/Python.framework/Versions/3.0 DEBUG: activating directory: /opt/local/Library/Frameworks/Python.framework/Versions/3.0/lib DEBUG: activating directory: /opt/local/Library/Frameworks/Python.framework/Versions/3.0/lib/python3.0 DEBUG: activating directory: /opt/local/Library/Frameworks/Python.framework/Versions/3.0/lib/python3.0/site-packages DEBUG: activating file: /opt/local/Library/Frameworks/Python.framework/Versions/3.0/lib/python3.0/site-packages/Tkinter-0.0.0-py3.0.egg-info DEBUG: activating file: /opt/local/Library/Frameworks/Python.framework/Versions/3.0/lib/python3.0/site-packages/_tkinter.so DEBUG: Adding file to file_map: /opt/local/Library/Frameworks/Python.framework/Versions/3.0/lib/python3.0/site-packages/_tkinter.so for: py30-tkinter Error: Target org.macports.activate returned: Not a directory Warning: the following items did not execute (for py30-tkinter): org.macports.activate Error: Status 1 encountered during processing. $
Perhaps it means this non-directory:
$ ls -ld /opt/local/Library/Frameworks/Python.framework/Versions/3.0/lib/python3.0 lrwxr-xr-x 1 root admin 24 Sep 20 01:37 /opt/local/Library/Frameworks/Python.framework/Versions/3.0/lib/python3.0 -> /opt/local/lib/python3.0 $
There was no problem activating py25-tkinter @2.5.2_0 or py-tkinter @2.4.5_0.
Change History (9)
comment:1 Changed 16 years ago by raimue (Rainer Müller)
Cc: | raimue@… added |
---|
comment:3 Changed 16 years ago by mattia@…
I just hit this bug too, which I see it's still valid. Is it going to be fixed?
comment:6 Changed 16 years ago by alakazam@…
I see that both the python2.6 and python3.0 Portgroups define
set python.prefix ${frameworks_dir}/Python.framework/Versions/${python.branch}
but that the python2.5 and python2.4 Portgroups do not. Would a simple and valid fix be to remove this line ?
Activation seems to work despite the error message. The error message appears (unsurprisingly) for all (several others at least) py30-* packages.
comment:7 Changed 16 years ago by blb@…
comment:8 Changed 16 years ago by jmroot (Joshua Root)
Resolution: | → fixed |
---|---|
Status: | new → closed |
This particular instance of the problem (at least) was fixed by r46197/r46202.
Note: See
TracTickets for help on using
tickets.
The py30-* ports use
--prefix=${prefix}/Library/Frameworks/Python.framework/Versions/3.0
but should be using--prefix=${prefix}
as py25-* does.The problem occurs because
${prefix}/Library/Frameworks/Python.framework/Versions/3.0/lib/python3.0
is already known to the file_map.db as a symlink. Now the requested path wants to add a new item below this path, but it fails as it hits a file and that triggers the "Not a directory" error.