[chiplotle-discuss] chiplotle python 2.6.5

Victor Adan vga2102 at columbia.edu
Fri Feb 25 21:18:49 EST 2011


Hello Robert, 

The error seems to suggets a circular import, as you point out. But I don't understand why it is happening on one system and not on another. 
I don't think it has to do with the python version, although I can't tell for sure. 
We're doing some python magic with the imports, and I suspect that might be causing it. But again, it's strange that it works on one system and not another. 
Not sure what to suggest...  If I can think of something to try I'll let you know. 


v.

On Mon, Feb 21, 2011 at 11:49:45AM -0500, Rupert Brooks wrote:
> Im using version 0.3.1 as installed by easy_install.  Heres the full
> error message below.  The name "Group" does not seem to be defined by
> anything else in python at the moment, however, my python expertise is
> fairly limited so i might have missed something obvious...
> 
> 
> rupert at saucemyvanilla:~$ chiplotle
> Traceback (most recent call last):
>   File "/usr/local/bin/chiplotle", line 9, in <module>
>     load_entry_point('Chiplotle==0.3.1', 'console_scripts', 'chiplotle')()
>   File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 299,
> in load_entry_point
>     return get_distribution(dist).load_entry_point(group, name)
>   File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 2229,
> in load_entry_point
>     return ep.load()
>   File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 1948, in load
>     entry = __import__(self.module_name, globals(),globals(), ['__name__'])
>   File "/usr/local/lib/python2.6/dist-packages/Chiplotle-0.3.1-py2.6.egg/chiplotle/__init__.py",
> line 27, in <module>
>     from chiplotle.hpgl.compound import *
>   File "/usr/local/lib/python2.6/dist-packages/Chiplotle-0.3.1-py2.6.egg/chiplotle/hpgl/compound/__init__.py",
> line 3, in <module>
>     _package_import(__path__[0], globals( ))
>   File "/usr/local/lib/python2.6/dist-packages/Chiplotle-0.3.1-py2.6.egg/chiplotle/utils/imports/package_import.py",
> line 18, in _package_import
>     functions = _get_functions_in_module(submod)
>   File "/usr/local/lib/python2.6/dist-packages/Chiplotle-0.3.1-py2.6.egg/chiplotle/utils/imports/get_functions_in_module.py",
> line 8, in _get_functions_in_module
>     mod = __import__(module_file, fromlist=['*'])
>   File "/usr/local/lib/python2.6/dist-packages/Chiplotle-0.3.1-py2.6.egg/chiplotle/hpgl/compound/group.py",
> line 4, in <module>
>     from chiplotle.tools.hpgltools.is_primitive_absolute import
> is_primitive_absolute
>   File "/usr/local/lib/python2.6/dist-packages/Chiplotle-0.3.1-py2.6.egg/chiplotle/tools/__init__.py",
> line 1, in <module>
>     from chiplotle.tools import hpgltools
>   File "/usr/local/lib/python2.6/dist-packages/Chiplotle-0.3.1-py2.6.egg/chiplotle/tools/hpgltools/__init__.py",
> line 3, in <module>
>     _package_import(__path__[0], globals( ))
>   File "/usr/local/lib/python2.6/dist-packages/Chiplotle-0.3.1-py2.6.egg/chiplotle/utils/imports/package_import.py",
> line 18, in _package_import
>     functions = _get_functions_in_module(submod)
>   File "/usr/local/lib/python2.6/dist-packages/Chiplotle-0.3.1-py2.6.egg/chiplotle/utils/imports/get_functions_in_module.py",
> line 8, in _get_functions_in_module
>     mod = __import__(module_file, fromlist=['*'])
>   File "/usr/local/lib/python2.6/dist-packages/Chiplotle-0.3.1-py2.6.egg/chiplotle/tools/hpgltools/scale.py",
> line 4, in <module>
>     from chiplotle.hpgl.compound.group import Group
> ImportError: cannot import name Group
> rupert at saucemyvanilla:~$ python
> Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56)
> [GCC 4.4.3] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import Group
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
> ImportError: No module named Group
> >>> Group
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
> NameError: name 'Group' is not defined
> >>>
> 
> 
> --------------------------------------------------------------
> Rupert Brooks
> rupert.brooks at gmail.com
> 
> 
> 
> 
> On Mon, Feb 21, 2011 at 11:38, douglas repetto
> <douglas at music.columbia.edu> wrote:
> >
> > Hi Robert,
> >
> > Check that you're explicitly importing Chiplotle's group. I think there may
> > be a built in Group in Python that's interfering.
> >
> > Which version of Chiplotle are you using? The one from the website or the
> > SVN version? The SVN version is pretty volatile right now...
> >
> > douglas
> >
> > On 2/21/11 11:15 AM, Rupert Brooks wrote:
> >>
> >> Hi,
> >>
> >> Is anyone using Chiplotle successfully on python 2.6.5 or higher?  I
> >> tried to install chiplotle via the setuptools package - it
> >> successfully installed on two Ubuntu Karmic systems, with python
> >> 2.6.4, but on a Ubuntu lucid system, with python 2.6.5, i get an error
> >>
> >>
> >> ...
> >> ImportError: cannot import name Group.
> >>
> >> The problem appears to be a circular dependency, but im really not
> >> sure what it means that it seems to be fine in Python 2.6.4 and fails
> >> in 2.6.5
> >>
> >> (Sorry to not include the whole error message - im retyping this
> >> looking at the screen of the other machine...  I'm hoping the solution
> >> is obvious to someone out there.  If not i'll repost with more info.)
> >>
> >> Thanks
> >> Rupert
> >> --------------------------------------------------------------
> >> Rupert Brooks
> >> rupert.brooks at gmail.com
> >> _______________________________________________
> >> chiplotle-discuss mailing list
> >> chiplotle-discuss at music.columbia.edu
> >> http://music.columbia.edu/mailman/listinfo/chiplotle-discuss
> >>
> >
> > --
> > ............................................... http://artbots.org
> > .....douglas.....irving........................ http://dorkbot.org
> > .......................... http://music.columbia.edu/cmc/music-dsp
> > .......... repetto............. http://music.columbia.edu/organism
> > ............................... http://music.columbia.edu/~douglas
> >
> >
> _______________________________________________
> chiplotle-discuss mailing list
> chiplotle-discuss at music.columbia.edu
> http://music.columbia.edu/mailman/listinfo/chiplotle-discuss
> 


More information about the chiplotle-discuss mailing list