Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python3 command is just python sometimes #63

Closed
BinaryBrain opened this issue Sep 11, 2019 · 2 comments
Closed

python3 command is just python sometimes #63

BinaryBrain opened this issue Sep 11, 2019 · 2 comments
Assignees
Labels
bug Something isn't working processing

Comments

@BinaryBrain
Copy link
Collaborator

BinaryBrain commented Sep 11, 2019

Summary
On Archlinux and some other OS (maybe Windows as well?), python 3.x is ran using the python command and python 2.x using the python2 command. Here, we're assuming it's always python3:

const tableExtractor = child_process.spawnSync('python3', [

Steps To Reproduce
Steps to reproduce the behavior:

  1. Have your path with python pointing on Python 3.x
  2. Remove python3 from your path.

Expected behavior
Table extraction should run.

Actual behavior
A node error: Error: spawnSync python3 ENOENT.

Environment

  • Reference commit/version: dc3bec7ae62b0db12a075f31c26ba8951a63c2f7
  • Other platform details: Python 3.x is just python, not python3
  • OS: Arch Linux, maybe others?
@BinaryBrain BinaryBrain added bug Something isn't working processing labels Sep 11, 2019
@BinaryBrain
Copy link
Collaborator Author

I'm unsure but we may have the same issue on the Docker container.

@royjohal royjohal self-assigned this Sep 12, 2019
royjohal added a commit that referenced this issue Sep 13, 2019
@royjohal
Copy link
Contributor

Commit 387707b should resolve this but the docker container still needs a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working processing
Projects
None yet
Development

No branches or pull requests

2 participants