Traceback (localtunnel-beta fails on first launch)
dxjones opened this issue · 3 comments
dxjones commented
I tried to install and run Localtunnel on my Mac, but it failed with the Traceback below.
My system is Mac OSX 10.6.8, Python 2.6.1
# which localtunnel-beta
/usr/local/bin/localtunnel-beta
# localtunnel-beta -n dxjones 80
Traceback (most recent call last):
File "/usr/local/bin/localtunnel-beta", line 8, in <module>
load_entry_point('localtunnel==0.5.8', 'console_scripts', 'localtunnel-beta')()
File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/pkg_resources.py", line 271, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/pkg_resources.py", line 2174, in load_entry_point
return ep.load()
File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/pkg_resources.py", line 1907, in load
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
File "/Library/Python/2.6/site-packages/localtunnel-0.5.8-py2.6.egg/localtunnel/client/__init__.py", line 1, in <module>
File "/Library/Python/2.6/site-packages/localtunnel-0.5.8-py2.6.egg/localtunnel/client/client.py", line 1, in <module>
ImportError: No module named argparse
I also encountered a warning during the install process.
In particular, there was a problem on line 543 of greenlet.c, "'err' may be used uninitialized in function g_switch"
# sudo easy_install localtunnel
Searching for localtunnel
Best match: localtunnel 0.5.8
Processing localtunnel-0.5.8-py2.6.egg
localtunnel 0.5.8 is already the active version in easy-install.pth
Installing localtunneld script to /usr/local/bin
Installing localtunnel-beta script to /usr/local/bin
Using /Library/Python/2.6/site-packages/localtunnel-0.5.8-py2.6.egg
Processing dependencies for localtunnel
Searching for requests
Reading http://pypi.python.org/simple/requests/
Reading http://python-requests.org
Reading https://github.com/kennethreitz/requests
Best match: requests 1.0.4
Downloading http://pypi.python.org/packages/source/r/requests/requests-1.0.4.tar.gz#md5=0b7448f9e1a077a7218720575003a1b6
Processing requests-1.0.4.tar.gz
Running requests-1.0.4/setup.py -q bdist_egg --dist-dir /tmp/easy_install-whIf2e/requests-1.0.4/egg-dist-tmp-S1SOkG
Adding requests 1.0.4 to easy-install.pth file
Installed /Library/Python/2.6/site-packages/requests-1.0.4-py2.6.egg
Searching for eventlet
Reading http://pypi.python.org/simple/eventlet/
Reading http://eventlet.net
Reading http://wiki.secondlife.com/wiki/Eventlet
Best match: eventlet 0.10.0
Downloading http://pypi.python.org/packages/source/e/eventlet/eventlet-0.10.0.tar.gz#md5=0738c05dc364c9b48775be228a85e832
Processing eventlet-0.10.0.tar.gz
Running eventlet-0.10.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-7crU2j/eventlet-0.10.0/egg-dist-tmp-TJxi1I
Adding eventlet 0.10.0 to easy-install.pth file
Installed /Library/Python/2.6/site-packages/eventlet-0.10.0-py2.6.egg
Searching for greenlet>=0.3
Reading http://pypi.python.org/simple/greenlet/
Reading https://github.com/python-greenlet/greenlet
Reading http://bitbucket.org/ambroff/greenlet
Best match: greenlet 0.4.0
Downloading http://pypi.python.org/packages/source/g/greenlet/greenlet-0.4.0.zip#md5=87887570082caadc08fb1f8671dbed71
Processing greenlet-0.4.0.zip
Running greenlet-0.4.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-y7OzcA/greenlet-0.4.0/egg-dist-tmp-3yMLJ1
greenlet.c: In function ‘g_switch’:
greenlet.c:543: warning: ‘err’ may be used uninitialized in this function
greenlet.c: In function ‘g_switch’:
greenlet.c:543: warning: ‘err’ may be used uninitialized in this function
greenlet.c: In function ‘g_switch’:
greenlet.c:543: warning: ‘err’ may be used uninitialized in this function
Adding greenlet 0.4.0 to easy-install.pth file
Installed /Library/Python/2.6/site-packages/greenlet-0.4.0-py2.6-macosx-10.6-universal.egg
Finished processing dependencies for localtunnel
progrium commented
easy_install argparse should do the trick. I forgot to include that in dependencies for py 2.6
dxjones commented
You are right. "easy_install argparse" resolved the problem.
progrium commented
This got merged into head. I'm hoping to have another release soon and it'll go out with that.