p4vasp icon indicating copy to clipboard operation
p4vasp copied to clipboard

Problem with installation in Mac

Open coolanks1319 opened this issue 6 years ago • 1 comments

Please see the diagnostics python diagnostic.py p4vasp Diagnostics

Python version: 2.7.15 (default, May 1 2018, 16:44:08) [GCC 4.2.1 Compatible Apple LLVM 9.1.0 (clang-902.0.39.1)] Platform: darwin Issue: ??? Hostname: ??? LINUX: ??? ???

Executable: /usr/local/opt/python@2/bin/python2.7

Module paths: /Users/ankurpc/Downloads/p4vasp-master /usr/local/Cellar/python@2/2.7.15/Frameworks/Python.framework/Versions/2.7/lib/python27.zip /usr/local/Cellar/python@2/2.7.15/Frameworks/Python.framework/Versions/2.7/lib/python2.7 /usr/local/Cellar/python@2/2.7.15/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin /usr/local/Cellar/python@2/2.7.15/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac /usr/local/Cellar/python@2/2.7.15/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages /usr/local/Cellar/python@2/2.7.15/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk /usr/local/Cellar/python@2/2.7.15/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old /usr/local/Cellar/python@2/2.7.15/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload /usr/local/lib/python2.7/site-packages /usr/local/lib/python2.7/site-packages/gtk-2.0 /usr/local/lib/python2.7/site-packages/gtk-2.0

Enviromental variables: P4VASP_HOME not set PYTHONPATH not set PYTHONHOME not set

Python.h was not found in /usr/include/python/Python.h FLTK: fltk-config: /usr/local/bin/fltk-config version: 1.3.4 api-version: 1.3 libs: /usr/local/Cellar/fltk/1.3.4-2/lib/libfltk_gl.a /usr/local/Cellar/fltk/1.3.4-2/lib/libfltk.a c++ flags: -I/usr/local/Cellar/fltk/1.3.4-2/include -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_THREAD_SAFE -D_REENTRANT

Can not import the p4vasp module. The p4vasp seems not to be installed.

Can not import _cp4vasp. Have you compiled and installed it ? (make; make install)

You probably will not be able to compile, since Python.h is missing. It is expected to be in %s. Most likely you do not have the python development headders installed. They are usually located in a package called python-devel (or something like that). If you have the headders at a non-standart path, you will need to modify your Makefiles (mainly thesrc/Makefile).

Can not import cp4vasp, however the _cp4vasp can be imported. I have no clue what is the problem... Maybe the stack trace will help:

Traceback (most recent call last): File "diagnostic.py", line 193, in import cp4vasp ImportError: No module named cp4vasp

coolanks1319 avatar Jun 02 '18 12:06 coolanks1319

Did you follow the instructions in README.* ? I fear that diagnostic.py is only useful in linux, output of the make would be helpful. I do not have access to Mac, so it is a bit difficult for me to support that platform. I am sorry, but I might not be very helpful...

orest-d avatar Jul 27 '18 11:07 orest-d