Py MySQL Error

Jasper Frumau jasperfrumau at gmail.com
Fri Jan 13 23:22:44 PST 2012


> > Error: Target org.macports.destroot returned: can't read
> "python.link_binaries": can't read "python.version": no such variable
> > Log for py-mysql is at:
> /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py-mysql/py-mysql/main.log
> > Error: Unable to upgrade port: 1
> > To report a bug, see <http://guide.macports.org/#project.tickets>
>
> Right, you now get the new error in comment:ticket:32840:13. This is not a
> problem because there is no reason to install the stub port really. I
> expect Joshua will fix it within a few hours or whenever he's next around.
>

Aha, OK, thanks for the explanation

>
>
> >> Note that py-mysql is a stub port; it does not install any software. To
> get actual software, you must select the specific version of python you
> want to use. For example, install py27-mysql to get the mysql module for
> use with python 2.7.
> >
> > I did
> >
> > sudo port install py27-mysql
> > --->  Computing dependencies for py27-mysql
> > --->  Cleaning py27-mysql
>
> Ok, so py27-mysql is already installed. Go use it. :)
>
>
> > Error remains:
> >
> > sudo port upgrade outdated
> > --->  Computing dependencies for py-mysql
> > --->  Staging py-mysql into destroot
> > Error: Target org.macports.destroot returned: can't read
> "python.link_binaries": can't read "python.version": no such variable
> > Log for py-mysql is at:
> /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py-mysql/py-mysql/main.log
> > Error: Unable to upgrade port: 1
>
> Sure. The error will remain until someone fixes the python portgroup. I'm
> leaving it for Joshua to do since he wrote the subport feature in MacPorts
> and rewrote the python portgroup to use subports, and understands best how
> it works and how he'd best like to fix it.
>

OK, great.

>
>
> > So I guess that error breaking this "stub" port will remain for now?
> Will it block me from updating MacPorts in the future until it is fixed?
>
> It will block you from installing or updating any python portgroup stub
> ports that don't turn of linking of binaries (which is most of them). But
> again the stub ports don't do anything so this isn't a problem. Install or
> update the applicable subports (those with python version numbers in their
> name) instead; you should be doing that anyway, since only you know which
> version of python you want to use the modules with.
>

Understood. Thanks again for the explanation
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20120114/807f50be/attachment.html>


More information about the macports-users mailing list