Py MySQL Error

Ryan Schmidt ryandesign at macports.org
Fri Jan 13 22:47:51 PST 2012


On Jan 14, 2012, at 00:41, Jasper Frumau wrote:

>> Ah. I see there was a real problem. Fixed:
>> 
>> https://trac.macports.org/changeset/88877
>> 
>> The remaining problem you will experience if you try to install py-mysql right now is described here:
>> 
>> https://trac.macports.org/ticket/32840#comment:13
> 
> I did get the same error:
> 
> jasper$ sudo port upgrade outdatedPortfile changed since last build; discarding previous state.
> --->  Computing dependencies for py-mysql
> --->  Fetching archive for py-mysql
> --->  Attempting to fetch py-mysql-1.2.3_0.darwin_10.noarch.tgz from http://packages.macports.org/py-mysql
> --->  Fetching py-mysql
> --->  Verifying checksum(s) for py-mysql
> --->  Extracting py-mysql
> --->  Configuring py-mysql
> --->  Building 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
> 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.


>> 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.


> 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.




More information about the macports-users mailing list