#35793 closed defect (fixed)
webkit-gtk @1.8.2_2 +quartz +video "ImportError: No module named simplejson"
Reported by: | sasoph@… | Owned by: | jeremyhu (Jeremy Huddleston Sequoia) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.1.2 |
Keywords: | Cc: | dbevans (David B. Evans), cooljeanius (Eric Gallager) | |
Port: | webkit-gtk |
Description
10.5.8 PPC, Xcode 3.1.4
Traceback (most recent call last): File "./Source/WebCore/inspector/CodeGeneratorInspector.py", line 38, in <module> import simplejson as json ImportError: No module named simplejson make: *** [DerivedSources/WebCore/InspectorBackendDispatcher.cpp] Error 1
Attachments (2)
Change History (9)
Changed 12 years ago by sasoph@…
comment:1 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)
Owner: | changed from macports-tickets@… to jeremyhu@… |
---|
comment:2 Changed 12 years ago by jeremyhu (Jeremy Huddleston Sequoia)
comment:3 Changed 12 years ago by jeremyhu (Jeremy Huddleston Sequoia)
Status: | new → assigned |
---|
Please try this patch:
Index: Portfile =================================================================== --- Portfile (revision 96967) +++ Portfile (working copy) @@ -52,6 +52,10 @@ quartz.patch \ bison-2.6.patch +# https://trac.macports.org/ticket/35793 +configure.env-append \ + PYTHON=/usr/bin/python + configure.args \ --with-gtk=2.0 \ --disable-introspection \
comment:4 Changed 12 years ago by sasoph@…
The patch gives the very same error.
How do I incant the json/simplejson import code block?
Does "port select python" have any bearing on the error?
Available versions for python: none (active) python25-apple python27
$ ls -l $(which python) lrwxr-xr-x 1 root wheel 72 Jan 17 2009 /usr/bin/python -> ../../System/Library/Frameworks/Python.framework/Versions/2.5/bin/python
comment:5 Changed 12 years ago by jeremyhu (Jeremy Huddleston Sequoia)
Ah, I see... it's an issue with Leopard's python not having json. We'll need to build with MacPorts' python on Leopard.
comment:6 Changed 12 years ago by jeremyhu (Jeremy Huddleston Sequoia)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
It is using simplejson if json fails to import:
...
perhaps we need to force it to use /usr/bin/python when building...