question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TypeError: "Cannot read property 'PYTHON' of undefined" when using --build

See original GitHub issue

This is a

  • Bug Report
  • Feature Request
  • Other

When I try packaging with nexe using the --build flag, I get TypeError: Cannot read property 'PYTHON' of undefined. I see this on Linux ARM and macOS.

Steps to duplicate

$ mkdir hello
$ cd hello
$ npm init -y
$ echo console.log\(\'hello\'\) > index.js
$ npx nexe index.js --build

TypeError: Cannot read property ‘PYTHON’ of undefined

I can work around this by manually building the downloaded source

$ cd ~/.nexe/8.10.0/
$ ./configure && make
$ cd ~/hello
$ npx nexe index.js --build

Do I need to set some additional configuration or is this a bug?

Please also provide:

  • Platform(OS/Version): macOS 10.13.4 and Linux rpi ARM
  • Host Node Version: 8.10.0
  • Target Node Version: 8.10.0
  • Nexe version: nexe@2.0.0-rc.28
  • Python Version: 2.7.10 (macOS) 2.7.13 (Linux ARM)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
calebboydcommented, Jun 2, 2018

closed via 089aa02a8208907db0a4145715896a72383197e1

0reactions
doncommented, Jun 1, 2018

@beenotung if manually compile the source in ~/.nexe/8.10.0/, nexe will find and used the compiled code next time you package an app

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot Read Property of Undefined in JavaScript - Rollbar
TypeError: Cannot read property of undefined occurs when a property is read or a function is called on an undefined variable.
Read more >
Uncaught TypeError: Cannot read property of undefined In
Uncaught TypeError: Cannot read property of undefined error occurs in Chrome when you read a property or call a method on an undefined...
Read more >
[Solved] Cannot read Properties of Undefined in JavaScript
The 'Cannot read properties of undefined' error occurs when you try to access a property or a method on a variable that stores...
Read more >
How To Fix Cannot read Property '0' of Undefined in JS
Ensure you are using the correct variable · Perform a simple check on your variable before using it to make sure it is...
Read more >
What is "TypeError: Cannot read property 'state' of undefined"?
The error message says that you don't have the state property on an undefined object. To decode this, we have to understand the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found