building on mac os x mountain lion

116 views
Skip to first unread message

Johan Roxendal

unread,
Aug 2, 2012, 4:28:28 AM8/2/12
to py...@googlegroups.com
Hey,

I'm trying to reinstall pyv8 after having upgraded to mountain lion. i've installed boost through homebrew, the version is 1.49.0.

build and install seem to work fine but I get this when I try importing:

>>> import PyV8
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "PyV8.py", line 17, in <module>
    import _PyV8
ImportError: dlopen(./_PyV8.so, 2): no suitable image found.  Did find:
./_PyV8.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x01 0x01 0x01 0x00


any clue?

thanks,
Johan

Flier Lu

unread,
Aug 4, 2012, 10:28:45 AM8/4/12
to py...@googlegroups.com
I suggest you remove the build folder in pyv8 and try again, it seems you got a invalid library file, I'm using mountain lion and I could build pyv8 in normal.

Thanks

2012/8/2 Johan Roxendal <jo...@roxendal.com>

--
You received this message because you are subscribed to the Google Groups "PyV8" group.
To view this discussion on the web visit https://groups.google.com/d/msg/pyv8/-/FoeQzz-NPDcJ.
To post to this group, send email to py...@googlegroups.com.
To unsubscribe from this group, send email to pyv8+uns...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/pyv8?hl=en.

Johan Roxendal

unread,
Aug 7, 2012, 1:10:54 PM8/7/12
to py...@googlegroups.com
Thanks for the response,

I'm afraid removing the build file doesn't work, still same issue. did you also use homebrew to install boost? did you set any environment variable? did you use the builtin python interpreter or one installed through homebrew/macports?

thanks,
Johan

Flier Lu

unread,
Aug 8, 2012, 6:59:14 AM8/8/12
to py...@googlegroups.com
I'm using MacPort with boost 1.50.0 and Python 2.7.3, please ensure you use the same python when build and use PyV8

$ uname -a
Darwin Fliers-MacBook-Pro.local 12.0.0 Darwin Kernel Version 12.0.0: Sun Jun 24 23:00:16 PDT 2012; root:xnu-2050.7.9~1/RELEASE_X86_64 x86_64

$ port info boost
boost @1.50.0 (devel)
Variants:             debug, [+]no_single, [+]no_static, openmpi, python25, python26, python27, python31, python32, regex_match_extra,
                      universal

$ port info python27
python27 @2.7.3 (lang)
Variants:             ucs4, universal

$ which python
/opt/local/bin/python


2012/8/8 Johan Roxendal <jo...@roxendal.com>
Reply all
Reply to author
Forward
0 new messages