gurobokum / pyv8

Automatically exported from code.google.com/p/pyv8
0 stars 0 forks source link

Problem with installation on Mac OS X using pip #156

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. pip install PyV8

What is the expected output? What do you see instead?
Success installation

What version of the product are you using? On what operating system?
> pip --version
pip 1.2.1 from /usr/local/lib/python2.7/site-packages/pip-1.2.1-py2.7.egg 
(python 2.7)

> python --version
Python 2.7.3

> v8
V8 version 3.15.11 [sample shell]

> cc -v 
Apple LLVM version 4.2 (clang-425.0.24) (based on LLVM 3.2svn)
Target: x86_64-apple-darwin12.2.0
Thread model: posix

Boost: 1.52

Please provide any additional information below.

Error: https://gist.github.com/4674971
Boost and v8 are installed by Home Brew

Original issue reported on code.google.com by maia.j...@gmail.com on 30 Jan 2013 at 5:44

GoogleCodeExporter commented 9 years ago

Original comment by flier...@gmail.com on 1 Feb 2013 at 1:56

GoogleCodeExporter commented 9 years ago
Please verify it with SVN trunk code after r476, thanks

$sudo pip install -v PyV8

Original comment by flier...@gmail.com on 2 Feb 2013 at 12:50

GoogleCodeExporter commented 9 years ago
I got it https://gist.github.com/4697869
I try build from source and test with example on main page do not work.

Maybe I did something wrong, if possible guide me with some steps to try detect 
the problem will be useful.

> python
imPython 2.7.3 (default, Jan 29 2013, 22:12:09) 
[GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.24)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import PyV8
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PyV8-1.0_dev-py2.7-macosx-10.8-x86_64.egg/PyV8.py", line 19, in <module>
    import _PyV8
ImportError: 
dlopen(/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/l
ib/python2.7/site-packages/PyV8-1.0_dev-py2.7-macosx-10.8-x86_64.egg/_PyV8.so, 
2): Symbol not found: __ZTIN2v88internal10AstVisitorE
  Referenced from: /usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PyV8-1.0_dev-py2.7-macosx-10.8-x86_64.egg/_PyV8.so
  Expected in: flat namespace
 in /usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PyV8-1.0_dev-py2.7-macosx-10.8-x86_64.egg/_PyV8.so
>>> 

Original comment by maia.j...@gmail.com on 2 Feb 2013 at 4:23

GoogleCodeExporter commented 9 years ago
It seems you linked PyV8 with wrong V8 library, please remove the PIP cache and 
make a clean build again, thanks

Original comment by flier...@gmail.com on 7 Feb 2013 at 3:21

GoogleCodeExporter commented 9 years ago
> pip install PyV8
...
Successfully installed PyV8
Cleaning up...

thks!

Original comment by maia.j...@gmail.com on 7 Feb 2013 at 3:40

GoogleCodeExporter commented 9 years ago
I have this same issue on OS X 10.8.3. I deleted the pip build cache, tried 
again from scratch, but it didn't work. the only potential error it showed was:

    ld: warning: directory not found for option '-L/opt/local/lib'
    ld: warning: directory not found for option '-L/Users/csaftoiu/work/testenv/build/PyV8/build/v8/out/native/'

Might that be the reason? full transcript attached

Original comment by csaft...@gmail.com on 12 Jul 2013 at 6:46

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks, it's my fault to add a nonexists folder when fix another issue

Original comment by flier...@gmail.com on 15 Jul 2013 at 4:44

GoogleCodeExporter commented 9 years ago
Thanks, it's my fault to add a nonexists folder when fix another issue

Original comment by flier...@gmail.com on 15 Jul 2013 at 4:44