MurpheyLab / trep

Trep: Mechanical Simulation and Optimal Control Software
https://murpheylab.github.io/trep/
GNU General Public License v3.0
18 stars 11 forks source link

pyqt4 and pyopengl should be required dependencies #10

Closed adwilson10 closed 10 years ago

adwilson10 commented 10 years ago

From vlad.seg...@gmail.com on April 24, 2012 12:58:04

Installing trep with only the listed required dependencies works, but when I try and run

import trep ... I get import errors about pyqt4 and pyopengl missing. Either they should be listed as requirements or the need for their loading removed when importing trep.

Original issue: http://code.google.com/p/trep/issues/detail?id=10

adwilson10 commented 10 years ago

From elliot.r...@gmail.com on April 24, 2012 13:00:28

Would you include the error message please?

adwilson10 commented 10 years ago

From vlad.seg...@gmail.com on April 24, 2012 13:06:33

For OpenGL:

Traceback (most recent call last): File "", line 1, in File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/trep/init.py", line 28, in import forces File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/trep/forces/init.py", line 6, in from testforce import TestForce File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packag es/trep/forces/testforce.py", line 3, in import trep.visual File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/trep/visual/init.py", line 2, in from visualitem import VisualItem2D, VisualItem3D File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/trep/visual/visualitem.py", line 6, in from OpenGL.GL import * ImportError: No module named OpenGL.GL

and for pyqt4: Traceback (most recent call last): File "", line 1, in File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/trep/init.py", line 28, in import forces File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/trep/forces/init.py", line 6, in from testforce import TestForce File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/trep/forces/testforce.py", line 3, in import trep.visual File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/trep/visual/init.py", line 2, in from visualitem import VisualItem2D, VisualItem3D File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/trep/visual/visualitem.py", line 4, in from PyQt4.QtCore import * ImportError: No module named PyQt4.QtCore

adwilson10 commented 10 years ago

From elliot.r...@gmail.com on April 24, 2012 13:21:25

Just updated the git repo to fix this. Give it a try and let me know. Thanks!

adwilson10 commented 10 years ago

From vlad.seg...@gmail.com on April 24, 2012 13:40:31

It works. The dependencies for the MacPorts release still need changing, or a patch needs to be generated. I already filed a ticket with MacPorts.

adwilson10 commented 10 years ago

From elliot.r...@gmail.com on April 24, 2012 13:52:42

Status: Fixed