Re: [Gtk-osx-users] Trying to build gtk-osx on Lion



Found it. I  misread the os.environ("MACOSX_DEPLOYMENT_TARGET") = target. Though it was reading the environment, not setting it. 

This change allowed jhbuild to run:

*** .jhbuildrc-custom	2011-07-12 07:52:14.000000000 -0400
--- .jhbuildrc-custom-orig	2011-07-12 07:56:13.000000000 -0400
***************
*** 115,122 ****
      _target = "10.5"
  elif _osx_version.startswith("10"):
      _target = "10.6"
- elif _osx_version.startswith("11"):
-     _target = "10.7"
  
  setup_sdk(target=_target, sdk_version="native", architectures=[_default_arch])
  #
--- 115,120 ----

carl.


On Jul 12, 2011, at 7:20 AM, Carl Muckenhirn wrote:

> Well a little investigation it appears that Python is trying to load os.py, however the Lion supplied Python 2.7.1 only includes the byte complied version of all the library files.  So I have os.pyc and os.pyo, but no os.py. This should work, right???
> 
> Thanks in advance.
> 
> carl.
> On Jul 12, 2011, at 12:23 AM, Carl Muckenhirn wrote:
> 
>> Has anyone been able to get gtk-osx built on Lion?
>> 
>> I'm following the directions on the wiki. I've installed git and successfully run the setup script.
>> 
>> When I go to do the bootstrap I get this error:
>> 
>> MacroMacBookPro:~ carl_muckenhirn$ alias
>> alias jhbuild='PATH=~/.local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/local/git/bin jhbuild'
>> MacroMacBookPro:~ carl_muckenhirn$ jhbuild bootstrap
>> Traceback (most recent call last):
>> File "/Users/carl_muckenhirn/Source/jhbuild/jhbuild/config.py", line 212, in load
>>   execfile(self.filename, config)
>> File "/Users/carl_muckenhirn/.jhbuildrc", line 465, in <module>
>>   execfile(_userrc)
>> File "/Users/carl_muckenhirn/.jhbuildrc-custom", line 119, in <module>
>>   setup_sdk(target=_target, sdk_version="native", architectures=[_default_arch])
>> File "/Users/carl_muckenhirn/.jhbuildrc", line 170, in setup_sdk
>>   os.environ["MACOSX_DEPLOYMENT_TARGET"] = target
>> File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py", line 471, in __setitem__
>> TypeError: must be string, not None
>> jhbuild: could not load config file
>> 
>> I'm not sure what exactly I'm doing wrong. I note that Lion is shipping with Python 2.7, but it seems to be a more fundamental issue.
>> 
>> TIA,
>> 
>> carl.
>> ------------------------------------------------------------------------------
>> All of the data generated in your IT infrastructure is seriously valuable.
>> Why? It contains a definitive record of application performance, security 
>> threats, fraudulent activity, and more. Splunk takes this data and makes 
>> sense of it. IT sense. And common sense.
>> http://p.sf.net/sfu/splunk-d2d-c2
>> _______________________________________________
>> Gtk-osx-users mailing list
>> Gtk-osx-users lists sourceforge net
>> https://lists.sourceforge.net/lists/listinfo/gtk-osx-users
> 
> 
> ------------------------------------------------------------------------------
> All of the data generated in your IT infrastructure is seriously valuable.
> Why? It contains a definitive record of application performance, security 
> threats, fraudulent activity, and more. Splunk takes this data and makes 
> sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-d2d-c2
> _______________________________________________
> Gtk-osx-users mailing list
> Gtk-osx-users lists sourceforge net
> https://lists.sourceforge.net/lists/listinfo/gtk-osx-users





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]