Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

TypeError: object of type 'int' has no len() when running nodeenv -p #31

Closed
DURK opened this Issue · 3 comments

2 participants

@DURK

Hi!

I'm having problems creating a nodeenv in my current virtualenv, using the function: noveenv -p

The error i get:

$ nodeenv -p
 * Install node.js (0.10.1) .Traceback (most recent call last):
  File "/usr/local/bin/nodeenv", line 9, in <module>
    load_entry_point('nodeenv==0.6.2', 'console_scripts', 'nodeenv')()
  File "/Library/Python/2.7/site-packages/nodeenv-0.6.2-py2.7.egg/nodeenv.py", line 499, in main
    create_environment(env_dir, opt)
  File "/Library/Python/2.7/site-packages/nodeenv-0.6.2-py2.7.egg/nodeenv.py", line 415, in create_environment
    install_node(env_dir, src_dir, opt)
  File "/Library/Python/2.7/site-packages/nodeenv-0.6.2-py2.7.egg/nodeenv.py", line 323, in install_node
    if value is not None ]
TypeError: object of type 'int' has no len()

Specs:
Mac OS X Mountain Lion
nodeenv==0.6.2
node==0.8.2 and also 0.10.1
python==2.7.2

all dependencies listed on your wiki are also installed.

@ekalinin
Owner

Hi @DURK !

This is weird. On my ubuntu 12.10 i got correct result:

➥ virtualenv ~/tmp/nodeenv-test
...
➥ . ~/tmp/nodeenv-test/bin/activate
➥ pip install nodeenv
➥ nodeenv --version
0.6.2
➥ nodeenv -j 4 -p
 * Install node.js (0.10.1) ... done.
 * Appending nodeenv settings to ~/tmp/nodeenv-test/bin/activate
➥ node -v
v0.10.1
➥ python --version
Python 2.7.3
@ekalinin
Owner

Yes, now i see an error:

➥ virtualenv ~/tmp/nodeenv-test
...
➥ . ~/tmp/nodeenv-test/bin/activate
➥ pip install nodeenv
➥ nodeenv --version
0.6.2
➥ nodeenv -p
 * Install node.js (0.10.1) .Traceback (most recent call last):
  File "~/tmp/nodeenv-test/bin/nodeenv", line 9, in <module>
    load_entry_point('nodeenv==0.6.2', 'console_scripts', 'nodeenv')()
  File "~/tmp/nodeenv-test/local/lib/python2.7/site-packages/nodeenv.py", line 499, in main
    create_environment(env_dir, opt)
  File "~/tmp/nodeenv-test/local/lib/python2.7/site-packages/nodeenv.py", line 415, in create_environment
    install_node(env_dir, src_dir, opt)
  File "~/tmp/nodeenv-test/local/lib/python2.7/site-packages/nodeenv.py", line 323, in install_node
    if value is not None ]
TypeError: object of type 'int' has no len()

@ekalinin
Owner

Fixed: a31a746

@ekalinin ekalinin closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.