google / closure-linter

Automatically exported from code.google.com/p/closure-linter
Apache License 2.0
109 stars 37 forks source link

ImportError: cannot import name closurizednamespacesinfo #36

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

1.  easy_install 
http://closure-linter.googlecode.com/files/closure_linter-2.3.1.tar.gz  
2. run gjslint (windows7 64bit)
3. The following errors come out. 

============================================
Traceback (most recent call last):
  File "C:\Home\Env\Python27\Scripts\gjslint-script.py", line 8, in <module>
    load_entry_point('closure-linter==2.3.1', 'console_scripts', 'gjslint')()
  File "C:\Home\Env\Python27\lib\site-packages\setuptools-0.6c11-py2.7.egg\pkg_resources.py", line 318, in load_entry_point
  File "C:\Home\Env\Python27\lib\site-packages\setuptools-0.6c11-py2.7.egg\pkg_resources.py", line 2221, in load_entry_point
  File "C:\Home\Env\Python27\lib\site-packages\setuptools-0.6c11-py2.7.egg\pkg_resources.py", line 1954, in load
  File "build\bdist.win-amd64\egg\closure_linter\gjslint.py", line 42, in <module>
  File "build\bdist.win-amd64\egg\closure_linter\checker.py", line 25, in <module>
ImportError: cannot import name closurizednamespacesinfo
====================================================

Original issue reported on code.google.com by randoms...@gmail.com on 12 Sep 2011 at 3:56

GoogleCodeExporter commented 9 years ago
Same thing in ubuntu:

~/tmp> sudo easy_install 
http://closure-linter.googlecode.com/files/closure_linter-2.3.1.tar.gz 
Downloading 
http://closure-linter.googlecode.com/files/closure_linter-2.3.1.tar.gz
Processing closure_linter-2.3.1.tar.gz
Running closure_linter-2.3.1/setup.py -q bdist_egg --dist-dir 
/tmp/easy_install-pU_SFZ/closure_linter-2.3.1/egg-dist-tmp-O5Ka7t
zip_safe flag not set; analyzing archive contents...
closure-linter 2.3.1 is already the active version in easy-install.pth
Installing fixjsstyle script to /usr/local/bin
Installing gjslint script to /usr/local/bin

Installed /usr/local/lib/python2.7/dist-packages/closure_linter-2.3.1-py2.7.egg
Processing dependencies for closure-linter==2.3.1
Finished processing dependencies for closure-linter==2.3.1

~/tmp> gjslint
Traceback (most recent call last):
  File "/usr/local/bin/gjslint", line 9, in <module>
    load_entry_point('closure-linter==2.3.1', 'console_scripts', 'gjslint')()
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 305, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2244, in load_entry_point
    return ep.load()
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1954, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File "/usr/local/lib/python2.7/dist-packages/closure_linter-2.3.1-py2.7.egg/closure_linter/gjslint.py", line 42, in <module>
    from closure_linter import checker
  File "/usr/local/lib/python2.7/dist-packages/closure_linter-2.3.1-py2.7.egg/closure_linter/checker.py", line 25, in <module>
    from closure_linter import closurizednamespacesinfo
ImportError: cannot import name closurizednamespacesinfo

Original comment by hughdbr...@gmail.com on 14 Sep 2011 at 8:50

GoogleCodeExporter commented 9 years ago
A bad tarball was created for 2.3.1 a new one is up that should work. You might 
need to run:

sudo easy_install -mxN 
http://closure-linter.googlecode.com/files/closure_linter-latest.tar.gz

when you re-install.

Original comment by a...@google.com on 28 Sep 2011 at 9:27