The Molecular Graphics Laboratory Forum

AutoDock, AutoLigand, MGLTools, Vina, PyRx and more.
It is currently Thu Jan 18, 2018 4:11 am

All times are UTC




Post new topic Reply to topic  [ 29 posts ]  Go to page Previous  1, 2, 3  Next
Author Message
PostPosted: Tue Nov 30, 2010 6:15 pm 
Offline
Micromolar User
Micromolar User
User avatar

Joined: Wed Nov 24, 2010 9:55 pm
Posts: 14
32bit! That explains a lot. Missed that completly :-)
fam
When I started in 32bit, it sayd "missing python32.dll" So copied de dll from original Python.win32.framework.

than I got a runtime error but C4D continued.

Console tells:
Code:
C:\Program Files\MAXON\MGLToolsPckgs
'epmv_c4d_plugin.pyp' occured the following error:
Traceback (most recent call last):
  File "epmv_c4d_plugin.pyp", line 95, in <module>
  File "C:\Program Files\MAXON\MGLToolsPckgs/MGLToolsPckgs\Pmv\hostappInterface\install_plugin.py", line 5, in <module>
    import urllib
  File "C:\Program Files\MAXON\CINEMA 4D R12 Demo\resource\modules\python\res\Python.win32.framework\lib\urllib.py", line 26, in <module>
    import socket
  File "C:\Program Files\MAXON\CINEMA 4D R12 Demo\resource\modules\python\res\Python.win32.framework\lib\socket.py", line 46, in <module>
    import _socket
ImportError: DLL load failed: A dynamic link library (DLL) initialization routine failed.


After restarting C4D the console tells me this:
Code:
C:\Program Files\MAXON\MGLToolsPckgs
noTK
C:\Users\a v abn\AppData\Roaming\MAXON\CINEMA 4D R12 Demo_0E6F67AE
'epmv_c4d_plugin.pyp' occured the following error:
Traceback (most recent call last):
  File "epmv_c4d_plugin.pyp", line 157, in <module>
  File "C:\Program Files\MAXON\MGLToolsPckgs/MGLToolsPckgs\MolKit\protein.py", line 26, in <module>
    from MolKit.tree import TreeNode, TreeNodeSet, TreeNodeSetSelector
  File "C:\Program Files\MAXON\MGLToolsPckgs/MGLToolsPckgs\MolKit\tree.py", line 41, in <module>
    from MolKit.listSet import ListSet
  File "C:\Program Files\MAXON\MGLToolsPckgs/MGLToolsPckgs\MolKit\listSet.py", line 22, in <module>
    from mglutil.util import misc
  File "C:\Program Files\MAXON\MGLToolsPckgs/MGLToolsPckgs\mglutil\util\misc.py", line 19, in <module>
    import numpy.oldnumeric as Numeric
  File "C:\Program Files\MAXON\MGLToolsPckgs/MGLToolsPckgs\numpy\__init__.py", line 136, in <module>
    import add_newdocs
  File "C:\Program Files\MAXON\MGLToolsPckgs/MGLToolsPckgs\numpy\add_newdocs.py", line 9, in <module>
    from numpy.lib import add_newdoc
  File "C:\Program Files\MAXON\MGLToolsPckgs/MGLToolsPckgs\numpy\lib\__init__.py", line 4, in <module>
    from type_check import *
  File "C:\Program Files\MAXON\MGLToolsPckgs/MGLToolsPckgs\numpy\lib\type_check.py", line 8, in <module>
    import numpy.core.numeric as _nx
  File "C:\Program Files\MAXON\MGLToolsPckgs/MGLToolsPckgs\numpy\core\__init__.py", line 5, in <module>
    import multiarray
ImportError: DLL load failed: %1 is not a valid Win32 application.


Ed


Top
 Profile  
 
PostPosted: Tue Nov 30, 2010 7:05 pm 
Offline
Picomolar User
Picomolar User
User avatar

Joined: Wed Apr 22, 2009 2:08 am
Posts: 235
Hi ed,

I am currently testing on Vista 64bits, see if I can reproduce the error with cinema4D and maya.
I will let you know about my finding...

thanks

Ludovic


Top
 Profile  
 
PostPosted: Wed Dec 01, 2010 4:49 pm 
Offline
Picomolar User
Picomolar User
User avatar

Joined: Wed Apr 22, 2009 2:08 am
Posts: 235
Hi ed,

So i did test the plugin with c4d on a vista 64bits. And i was unable to import numpy at all. I try different work around but I didnt find any solution.
I dont understand why its working under XP and not under Vista.
I have contact people from Cinema4D-python and ask them about this see if they know about it and if they have a solution. The problem is not PMV but importing compiled package inside cinema4D.
Since its working with Blender and Maya, it should be possible for C4D....


I will let you know if I get a solution. You can also check the website that I will update according the answer they will give me.
http://epmv.scripps.edu/

Ludovic


Top
 Profile  
 
PostPosted: Wed Dec 01, 2010 6:41 pm 
Offline
Picomolar User
Picomolar User
User avatar

Joined: Wed Apr 22, 2009 2:08 am
Posts: 235
Hi ed,

good news, I found a solution....it was an easy one!
You will have to start again the installation tomorow (i just update the cvs with the modification).
But you can do it already. (manually).

Get Python2.66 http://www.python.org/ftp/python/2.6.6/python-2.6.6.msi
Install it
Go the C:\Program Files\MAXON\CINEMA 4D R12 Demo\resource\modules\python\res directory
verify that you have the original framework (Python.win32.framework.original). If you dont rename Python.win32.framework to Python.win32.framework.original.
The copy the full C:\\Python26 folder to C:\Program Files\MAXON\CINEMA 4D R12 Demo\resource\modules\python\res\
and rename it to Python.win32.framework.
Verify that there is a file name patched in the C:\Program Files\MAXON\CINEMA 4D R12 Demo\resource\modules\python\res directory

Next you will start C4D you should see the plugin

I am currently uploading a video showing the installation...

Ludovic


Top
 Profile  
 
PostPosted: Thu Dec 02, 2010 11:27 am 
Offline
Micromolar User
Micromolar User
User avatar

Joined: Wed Nov 24, 2010 9:55 pm
Posts: 14
Py-ePMV Plugin is showing in the Python-plugin list!!

But when I click it to extivate, I only get a blanco window, no controles or text or whatsoever.

console:
Code:
C:\Program Files\MAXON\MGLToolsPckgs
noTK
C:\Users\a v abn\AppData\Roaming\MAXON\CINEMA 4D R12 Demo_0E6F67AE


My other python plugins work so that ain't the problem.


Thanks
Ed


Top
 Profile  
 
PostPosted: Thu Dec 02, 2010 4:24 pm 
Offline
Picomolar User
Picomolar User
User avatar

Joined: Wed Apr 22, 2009 2:08 am
Posts: 235
Hi ed,

can you restart C4d (32bits). Launch ePMV.
It happen to me the first time I launch it. So just try several time.
Also you can try to close the windows and reopen it. And let me know what the console Says (Python->console).

I am in contact with the C4D developer, he will be back around December 6th. So until then, I have no other solution than to copy all the Python framework...

Hope you will have finally it working

Ludovic


Top
 Profile  
 
PostPosted: Fri Dec 03, 2010 8:58 am 
Offline
Micromolar User
Micromolar User
User avatar

Joined: Wed Nov 24, 2010 9:55 pm
Posts: 14
Tried it a couple of times but no luck.

Python console tells:
Code:
C:\Program Files\MAXON\MGLToolsPckgs
noTK
C:\Users\a v abn\AppData\Roaming\MAXON\CINEMA 4D R12 Demo_0E6F67AE
execute
Traceback (most recent call last):
  File "epmv_c4d_plugin.pyp", line 1222, in CreateLayout
  File "epmv_c4d_plugin.pyp", line 1194, in checkExtension
  File "C:\Program Files\MAXON\MGLToolsPckgs/MGLToolsPckgs\Pmv\hostappInterface\install_plugin.py", line 954, in getExtensionDirFromFile
    f=open(self.currDir+os.sep+'extension'+os.sep+'liste.txt','r')
IOError: [Errno 2] No such file or directory: 'C:\\Program Files\\MAXON\\MGLToolsPckgs\\MGLToolsPckgs\\Pmv\\hostappInterface\\extension\\liste.txt'


So I searched for the file and found "liste_example.txt" in the folder extension.
Renamed the file to liste.txt and tried agian. But now I get:

Code:
C:\Program Files\MAXON\MGLToolsPckgs
noTK
C:\Users\a v abn\AppData\Roaming\MAXON\CINEMA 4D R12 Demo_0E6F67AE
execute
restore <PyCObject object at 0x115DAA88>
Traceback (most recent call last):
  File "epmv_c4d_plugin.pyp", line 1222, in CreateLayout
  File "epmv_c4d_plugin.pyp", line 1194, in checkExtension
  File "C:\Program Files\MAXON\MGLToolsPckgs/MGLToolsPckgs\Pmv\hostappInterface\install_plugin.py", line 954, in getExtensionDirFromFile
    f=open(self.currDir+os.sep+'extension'+os.sep+'liste.txt','r')
IOError: [Errno 2] No such file or directory: 'C:\\Program Files\\MAXON\\MGLToolsPckgs\\MGLToolsPckgs\\Pmv\\hostappInterface\\extension\\liste.txt'
execute
restore <PyCObject object at 0x115DAA88>
noModeller
noModeller
noModeller
Resource file used to customize PMV: C:\Users\a v abn\.mgltools\1.5.6rc1\Pmv\_pmvrc
Sorry you need the GLE extension module
Exception AttributeError: "BooleanVar instance has no attribute '_tk'" in <bound method BooleanVar.__del__ of <Tkinter.BooleanVar instance at 0x12513EE0>> ignored
Exception AttributeError: "BooleanVar instance has no attribute '_tk'" in <bound method BooleanVar.__del__ of <Tkinter.BooleanVar instance at 0x12513F58>> ignored

WARNING: dependency check failed for command APBSVolumeRender
Exception AttributeError: "BooleanVar instance has no attribute '_tk'" in <bound method BooleanVar.__del__ of <Tkinter.BooleanVar instance at 0x127FB3F0>> ignored
Exception AttributeError: "BooleanVar instance has no attribute '_tk'" in <bound method BooleanVar.__del__ of <Tkinter.BooleanVar instance at 0x12804580>> ignored
__init__
init
Traceback (most recent call last):
  File "epmv_c4d_plugin.pyp", line 1238, in CreateLayout
KeyError: 'Documents'


when I run it agian it says:
Code:
execute
restore <PyCObject object at 0x124E0A28>
noModeller
noModeller
noModeller
Traceback (most recent call last):
  File "epmv_c4d_plugin.pyp", line 1238, in CreateLayout
KeyError: 'Documents'



To bad.

Ed


Top
 Profile  
 
PostPosted: Fri Dec 03, 2010 4:44 pm 
Offline
Picomolar User
Picomolar User
User avatar

Joined: Wed Apr 22, 2009 2:08 am
Posts: 235
Hi ed,
good thinking about the text file, another bug associate with the new installation. This one is fixed in the current downloadable archive of MGLTools.
The bug you report is a new one ! until I really found what going on and out the fix on for the downloadable archive you can use the attached file to replace the one in your Home Cinem4D plugin directory...
And let me know if its working...and if you find any other error.

Ludovic


Attachments:
File comment: patch
epmv_c4d_plugin.pyp.zip [26.9 KiB]
Downloaded 166 times
Top
 Profile  
 
PostPosted: Sat Dec 04, 2010 12:40 pm 
Offline
Micromolar User
Micromolar User
User avatar

Joined: Wed Nov 24, 2010 9:55 pm
Posts: 14
Yeah!!!!! I've got the plugin window.

But to bad when ever I hit a button it gives a "KeyError: 'Documents'"

This is the python-console:
Code:
C:\Program Files\MAXON\MGLToolsPckgs
noTK
C:\Users\a v abn\AppData\Roaming\MAXON\CINEMA 4D R12 Demo_0E6F67AE
execute
noModeller
noModeller
noModeller
Resource file used to customize PMV: C:\Users\a v abn\.mgltools\1.5.6rc1\Pmv\_pmvrc
Sorry you need the GLE extension module
Exception AttributeError: "BooleanVar instance has no attribute '_tk'" in <bound method BooleanVar.__del__ of <Tkinter.BooleanVar instance at 0x11FC2E18>> ignored
Exception AttributeError: "BooleanVar instance has no attribute '_tk'" in <bound method BooleanVar.__del__ of <Tkinter.BooleanVar instance at 0x11FC2E90>> ignored

WARNING: dependency check failed for command APBSVolumeRender
Exception AttributeError: "BooleanVar instance has no attribute '_tk'" in <bound method BooleanVar.__del__ of <Tkinter.BooleanVar instance at 0x1ACFC328>> ignored
Exception AttributeError: "BooleanVar instance has no attribute '_tk'" in <bound method BooleanVar.__del__ of <Tkinter.BooleanVar instance at 0x1AD074B8>> ignored
__init__
init
Traceback (most recent call last):
  File "epmv_c4d_plugin.pyp", line 2758, in Command
KeyError: 'Documents'
Traceback (most recent call last):
  File "epmv_c4d_plugin.pyp", line 2758, in Command
KeyError: 'Documents'
Traceback (most recent call last):
  File "epmv_c4d_plugin.pyp", line 2758, in Command
KeyError: 'Documents'
Traceback (most recent call last):
  File "epmv_c4d_plugin.pyp", line 2758, in Command
KeyError: 'Documents'
Traceback (most recent call last):
  File "epmv_c4d_plugin.pyp", line 2758, in Command
KeyError: 'Documents'


Step by step .....

Ed


Top
 Profile  
 
PostPosted: Sat Dec 04, 2010 6:04 pm 
Offline
Picomolar User
Picomolar User
User avatar

Joined: Wed Apr 22, 2009 2:08 am
Posts: 235
Hi ed,

I need your help to understand whats going on. Open C4d, launch ePMV, open the Python Console.
In the python console please type the following line and tell me what is the output...
The error encounter is related to the recent files handling.

import c4d
epmv = c4d.mv.values()[0]
print epmv
print epmv.mv
print epmv.mv.recentFiles
print epmv.mv.recentFiles.categories
print epmv.mv.recentFiles.resourceFilePath

Thanks
Ludovic


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 29 posts ]  Go to page Previous  1, 2, 3  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
POWERED_BY
Translated by Maël Soucaze © 2009 phpBB.fr