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

Python 2.6 issue #70

Closed
robertsoakes opened this issue May 27, 2014 · 1 comment
Closed

Python 2.6 issue #70

robertsoakes opened this issue May 27, 2014 · 1 comment

Comments

@robertsoakes
Copy link

Thank you for your work on this wonderful tool. I just discovered it and it has made my life easier in countless ways! (I can finally have Node.js and Django code side-by-side for web projects without pulling my hair out.)

My shop standardizes on RHEL 6.4, which still uses Python 2.6 (we're moving to Python 2.7 as soon as RHEL 7 is available). Python 2.6 still uses a Tuple for sys.version_info, which causes a failure at line 414 of nodeenv.py. This can be fixed by using a getattr and supplying a default. See the code below (line 414):

...
if getattr(sys.version_info, 'major', sys.version_info[0]) > 2:
...
@ekalinin
Copy link
Owner

Thank you for your work on this wonderful tool. I just discovered it and it has made my life easier in countless ways!

:) Glad it that it's useful for you.

As i see you're building node.js from source. Try --prebuilt option. It much faster.

Python 2.6 still uses a Tuple for sys.version_info, which causes a failure at line 414 of nodeenv.py.

Yes, I see the problem (and one more in the get_node_src_url_postfix function). I'll fix them soon. Thanks for reporting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants