Code Monkey home page Code Monkey logo

Comments (15)

aminelch avatar aminelch commented on July 29, 2024 4

for ubuntu users
sudo apt install fonttools python3-fonttools
and after installation run
./buid.sh
it workd for me 😀

from operator-mono-lig.

AndrewStobie avatar AndrewStobie commented on July 29, 2024 3

For the record similarly just did

$ sudo -H pip2 uninstall fonttools
$ brew upgrade python
$ pip2 install fonttools
$ sh build.sh

It worked then.

from operator-mono-lig.

timhecker avatar timhecker commented on July 29, 2024 3

FYI, for Mac users, I advice to run pip3 install fonttools, solving mac permissions problems (https://stackoverflow.com/a/33416270/3191011)

from operator-mono-lig.

jasonhodges avatar jasonhodges commented on July 29, 2024 1

Ok @kiliman, I used nvm to install node v8.4.0. Once complete, I ran sh build.sh once again and it did merge out my Medium and MediumItalic to the build directory.

from operator-mono-lig.

eBaeza avatar eBaeza commented on July 29, 2024 1

Finally I could, i had to install python with homebrew:

$ brew install python
$ pip2 install fonttools
$ sh build.sh

from operator-mono-lig.

kiliman avatar kiliman commented on July 29, 2024 1

@timhecker Can you update the README with the info you found? Thanks!

from operator-mono-lig.

kiliman avatar kiliman commented on July 29, 2024

Did you install Python/fonttools as specified in the README?

ttx is part of the fonttools package that my project uses to convert OTF files into an XML description.

from operator-mono-lig.

eBaeza avatar eBaeza commented on July 29, 2024

@kiliman yes, BTW I'm using Mac OS Sierra

➜  ~ pip freeze
altgraph==0.10.2
bdist-mpkg==0.5.0
bonjour-py==0.3
fonttools==3.15.1 <-----------
macholib==1.5.1
matplotlib==1.3.1
modulegraph==0.10.4
numpy==1.8.0rc1
py2app==0.7.3
pyobjc-core==2.5.1

from operator-mono-lig.

jasonhodges avatar jasonhodges commented on July 29, 2024

I too am getting a similar error

/operator-mono-lig]─[±] master ✓                                                       [Thu Sep 07 - 10:08]
└──● sh build.sh
rm: original/*.ttx: No such file or directory
build.sh: line 4: ttx: command not found
build.sh: line 5: ttx: command not found
/Users/../../../operator-mono-lig/index.js:16
async function main() {
      ^^^^^^^^
SyntaxError: Unexpected token function
    at Object.exports.runInThisContext (vm.js:76:16)
    at Module._compile (module.js:542:28)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.runMain (module.js:604:10)
    at run (bootstrap_node.js:394:7)
    at startup (bootstrap_node.js:149:9)
    at bootstrap_node.js:509:3
/Users//../../../operator-mono-lig/index.js:16
async function main() {
      ^^^^^^^^
SyntaxError: Unexpected token function
    at Object.exports.runInThisContext (vm.js:76:16)
    at Module._compile (module.js:542:28)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.runMain (module.js:604:10)
    at run (bootstrap_node.js:394:7)
    at startup (bootstrap_node.js:149:9)
    at bootstrap_node.js:509:3
build.sh: line 14: ttx: command not found
build.sh: line 15: ttx: command not found
/operator-mono-lig]─[±] master ✓                                                   [Thu Sep 07 - 10:09]
└──● pip freeze
altgraph==0.10.2
bdist-mpkg==0.5.0
bonjour-py==0.3
fonttools==3.15.1 <-----
macholib==1.5.1
matplotlib==1.3.1
modulegraph==0.10.4
numpy==1.8.0rc1
py2app==0.7.3
pyobjc-core==2.5.1

from operator-mono-lig.

kiliman avatar kiliman commented on July 29, 2024

Odd. Did you make sure ttx is in your path?

image

from operator-mono-lig.

jasonhodges avatar jasonhodges commented on July 29, 2024

I installed fonttools properly as listed in the instructions and you can see in the second image I provided earlier, it is shown. However when I run which ttx, I get ttx: not found

I looked under /usr/local/bin and ttx is not shown there

currently investingating

from operator-mono-lig.

eBaeza avatar eBaeza commented on July 29, 2024

@kiliman No, I don't have it and does no exists

from operator-mono-lig.

jasonhodges avatar jasonhodges commented on July 29, 2024

Ok, after
pip uninstall fonttools <-- which was installed using --user because of hopeful sudo advoidance, I ran
sudo pip install fonttools.
I now get several errors and an empty build directory

Dumping 'GPOS' table...
Dumping 'GSUB' table...
Dumping 'hmtx' table...
Dumping 'DSIG' table...
/Users/../operator-mono-lig/index.js:16
async function main() {
      ^^^^^^^^
SyntaxError: Unexpected token function
ERROR: File not found: "build/OperatorMonoLig-Medium.ttx"
ERROR: File not found: "build/OperatorMonoLig-MediumItalic.ttx"

from operator-mono-lig.

kiliman avatar kiliman commented on July 29, 2024

@jasonhodges at least we're making progress. The async error is most likely because your version of Node.js is less that 7.6. That's the version that added support for async/await. Upgrade your version of Node.js and see if that helps.

I may end up dumping async/await (although sweet) to make it less painful to use the tool.

from operator-mono-lig.

MortimerMarsyja avatar MortimerMarsyja commented on July 29, 2024

what about for windows users? because I am stuck with the same issue

from operator-mono-lig.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.