philchristensen / python-artnet

a Pure-Python ArtNET/OpenDMX toolkit for lighting design
66 stars 36 forks source link

AttributeError: 'module' object has no attribute 'defaults' #1

Closed khargy closed 10 years ago

khargy commented 10 years ago

I run "artnet script all_channels_full" and I get the following:

Traceback (most recent call last): File "/usr/local/bin/artnet", line 9, in load_entry_point('python-artnet==0.1', 'console_scripts', 'artnet')() File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 337, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2279, in load_entry_point return ep.load() File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1989, in load entry = import(self.module_name, globals(),globals(), ['name']) File "/usr/local/lib/python2.7/dist-packages/python_artnet-0.1-py2.7.egg/artnet/scripts/init.py", line 14, in defaults = backend.defaults('base') AttributeError: 'module' object has no attribute 'defaults'

philchristensen commented 10 years ago

I'm wondering if something changed about the current version of cement. Trying running:

pip uninstall cement
pip install cement==2.0.2

I'm away from a terminal for the moment, but the missing attribute is something from the library (Cement) I used to build the command-line scripts, so I bet this will fix it.

khargy commented 10 years ago

Great! That fixed the problem. Thanks for the quick response.

philchristensen commented 10 years ago

Cool. I updated the requirements.txt file in b4ca222b1bf801d6838dcbe331c4cd4dec675ae2 to address this. Thanks for the report.