You are not logged in Log in Join
You are here: Home » Members » djflux's Home » Overview - ADSGroupsFolder » can you explain something for me ?

Log in
Name

Password

 

Comment

Above in this comment thread: Overview - ADSGroupsFolder »

Comment

Discussion icon can you explain something for me ?

Posted by: danch at 2004-02-12

I already do all things follow your intrustion but when I start my zope it always have error, can you explain for me ?

my error : File : d:\..\ADSGroupsFolder\com.py, line 1, in ? importError: No mudule named pythoncom

I start my zope's service by command in Windows 2000 advanced server, service pack 4 Thank you.

Comment

Discussion icon Check your path

Posted by: djflux at 2004-02-19

Python can't find the pythoncom module in your path. Make sure that the pythoncom.py module is somewhere in your PYTHONPATH. I'm using Zope-2.7.0b3 on my production server and pythoncom.py is located in %ZOPEROOT%\bin\Lib\site-packages.

Comment

Discussion icon Check your path part 2 :)

Posted by: djflux at 2004-02-19

If you are using another Zope version, make sure that the directory which contains pythoncom.py is in your Windows path. You can add the directory to your system-wide path by:

  • Right-clicking on My Computer and choose Properties
  • Click on the Advanced Tab
  • Click on the Environment Variables button
  • In the System variables box click on Path and then click edit.
  • Add the full path to the folder which contains pythoncom.py
  • Click OK until you are back to your desktop
  • Restart Zope

You can also manually test to see if python can find pythoncom.py by double clicking on python.exe in %ZOPEROOT%\bin and then trying to import the module:

>>> import pythomcom

If you get no error, then Zope should start just fine.