Opened 11 years ago

Closed 11 years ago

#42502 closed defect (worksforme)

fontforge +freetype_bytecode +python27 "No initialization function in fontforge library"

Reported by: joshuarbox-junk1@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: Cc:
Port: fontforge

Description (last modified by mf2k (Frank Schima))

scml-jrichardson:pdf2chegg jric$ sudo port install -f fontforge +freetype_bytecode +python27
--->  Computing dependencies for fontforge
--->  Activating fontforge @20120731_3+freetype_bytecode+python27
Warning: File /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/fontforge-1.0-py2.7.egg-info already exists.  Moving to: /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/fontforge-1.0-py2.7.egg-info.mp_1392330587.
Warning: File /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/fontforge.so already exists.  Moving to: /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/fontforge.so.mp_1392330587.
Warning: File /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/psMat.so already exists.  Moving to: /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/psMat.so.mp_1392330587.
--->  Cleaning fontforge
--->  Updating database of binaries: 100.0%
--->  Scanning binaries for linking errors: 100.0%
--->  No broken files found.

scml-jrichardson:pdf2chegg jric$ /opt/local/bin/python2.7
Python 2.7.6 (default, Nov 12 2013, 13:26:39) 
[GCC 4.2.1 Compatible Apple Clang 4.1 ((tags/Apple/clang-421.11.66))] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import fontforge
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
SystemError: No initialization function in fontforge library

Change History (6)

comment:1 Changed 11 years ago by joshuarbox-junk1@…

Don't know if this is a clue or not, but:

scml-jrichardson:Python.framework jric$ grep -r 'No initialization function' /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/*
Binary file /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/fontforge.so matches
Binary file /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/psMat.so matches

In some fresh libraries that I built from source (no match):

scml-jrichardson:Python.framework jric$ ls /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/
README		fontforge.la	fontforge.so	psMat.la	psMat.so
scml-jrichardson:Python.framework jric$ grep -r 'No initialization function' /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/*
scml-jrichardson:Python.framework jric$ 

Unfortunately, the binaries I built don't work, so can't take too much from it. :-(

comment:2 Changed 11 years ago by joshuarbox-junk1@…

FWIW, I've reported my source build issue to the fontforge project: https://github.com/fontforge/fontforge/issues/1219

comment:3 Changed 11 years ago by mf2k (Frank Schima)

Description: modified (diff)

In the future, please use WikiFormatting.

comment:4 Changed 11 years ago by mf2k (Frank Schima)

FYI, it works for me on Mavericks. Maybe it's a missing dependency somewhere?

$ port installed fontforge
The following ports are currently installed:
  fontforge @20120731_3+freetype_bytecode+python27 (active)

$ ipython
Python 2.7.6 (default, Nov 12 2013, 19:41:34) 
Type "copyright", "credits" or "license" for more information.

IPython 2.0.0 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object', use 'object??' for extra details.

In [1]: import fontforge

In [2]: exit

comment:5 Changed 11 years ago by joshuarbox-junk1@…

Because of this, I switched over to homebrew, so I can't help diagnose any more. Maybe you can close the ticket as "resolved", or "can't reproduce" or something....

comment:6 Changed 11 years ago by mf2k (Frank Schima)

Resolution: worksforme
Status: newclosed
Note: See TracTickets for help on using tickets.