JIANGYUFEI / arbotix

Automatically exported from code.google.com/p/arbotix
0 stars 0 forks source link

AttributeError: 'module' object has no attribute 'NAME' running Pypose on Mountain Lion #35

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. I downloaded and installed pypose according to the installation instructions 
on the pypose site
2. Tried to launch Pypose.py 
3. Get the error below

What is the expected output? What do you see instead?

Traceback (most recent call last):
  File "/Users/rafael/Desktop/pypose/PyPose.py", line 403, in <module>
    frame = editor()
  File "/Users/rafael/Desktop/pypose/PyPose.py", line 95, in __init__
    name = getattr(module, "NAME")
AttributeError: 'module' object has no attribute 'NAME'

What version of the product are you using? On what operating system?
Lastest version pypose
python-2.7.3-macosx10.6.dmg  
wxPython2.8-osx-unicode-2.8.12.1-universal-py2.7.dmg
Mac OSX 10.8 .2

Please provide any additional information below.
Tried different variants of python and wxphyton and combinations thereof 
Forced python in 32bit mode 
with the same results

Original issue reported on code.google.com by ral1...@gmail.com on 7 Jan 2013 at 7:28

GoogleCodeExporter commented 9 years ago
SOLVED. Traced the error to the loading of Terminal tool.

It seems that there is a naming conflict with the native Terminal application 
in Mac OSX.

Changed the name of the Pypose Terminal tool from "Tools/Terminal.py" to 
"Tools/TerminalX.py"
Renamed class and name in  TerminalX.py by editing 
Line 142 from  -> class Terminal(ToolPane):
 to -> class TerminalX(ToolPane):"
Line 154 from -> NAME = "terminal" 
to -> NAME = "terminalX"

It works now

Original comment by ral1...@gmail.com on 7 Jan 2013 at 7:36

GoogleCodeExporter commented 9 years ago
Development is moving to github, I've updated PyPose here: 
https://github.com/vanadiumlabs/pypose (you can pull a zip using 
https://github.com/vanadiumlabs/pypose/zipball/master). I'm closing this issue 
as I believe it is fixed with the latest commit, if not working, please open a 
new issue on the github project tracker 

Original comment by MFergs7@gmail.com on 11 Feb 2013 at 10:59

GoogleCodeExporter commented 9 years ago
Same thing for Windows?

Original comment by ervinwe...@gmail.com on 19 Mar 2015 at 5:33