Daviz installation, twisted error

33 views
Skip to first unread message

Paulo Matusse

unread,
Nov 5, 2014, 4:06:18 AM11/5/14
to eea-...@googlegroups.com

hello

i'm trying to install Daviz in Plone 4.3.1, on windows server 2008, but i'm facing problems with twisted, the setup process stack in this stage.
can someone help me to solve this problem.

as you can see in the screenshot.


David Bătrânu

unread,
Nov 5, 2014, 5:33:48 AM11/5/14
to eea-...@googlegroups.com
Hi Paulo,

For a better experience with Plone/Python on Windows i would recommend the following setup:

If you want to use a 64bit Python you will also need to follow the steps from bullet 3 on this page http://yorickdowne.wordpress.com/2010/12/23/compiling-64-bit-mpir-using-vc-2008-express/

      • The vcvarsall.bat in VC++ 2008 Express looks for the amd64 vcvars64.bat in all the wrong places. The easiest way to work around that is to navigate to the VC\bin directory of your VC++ 2008 installation (in my case C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin). Copy vcvars64.bat, and paste into the VC\bin\amd64 subdirectory. Next, rename VC\bin\amd64\vcvars64.bat to VC\bin\amd64\vcvarsamd64.bat.


You can easily get precompiled Windows binaries for common Python packages from: http://www.lfd.uci.edu/~gohlke/pythonlibs/ (you can install Twisted from there).

eea.daviz also depends on zc.twist which should compile without issues once you install vc++

This will get you past the twisted dependency. Next you will come into a few more issues:

  • eea.daviz depends on eea.sparql-client which depends on pycurl2; pycurl2 does not compile on windows
    • FIX: go into the eea.sparql-client egg and comment out the pycurl2 import line (eggs\sparql_client\1.3-py2.7.egg\sparql.py line 59)
    • We are working on making this dependency optional and possibly migrating to pycurl as pycurl2 seems unmaintained
  • some path concatenation issues in Products.PluggableAuthService and Products.PluginRegistry
    • FIX: go to the offending line from the traceback and replace 
      product_prefix = os.path.join(os.path.split(product_dir)[:-1])
      with 
      product_prefix = os.path.join(*os.path.split(product_dir)[:-1])

Following these steps should get zope up and running. When adding a plone site, make sure to select eea.daviz and eea.jquery BBQ addons for installation.

David Bătrânu

unread,
Nov 5, 2014, 9:22:01 AM11/5/14
to eea-...@googlegroups.com
If on 64 bit Python you will also need to follow the instructions in this SO answer: https://stackoverflow.com/questions/2817869/error-unable-to-find-vcvarsall-bat/18045219#18045219

It's simpler if you stick to 32bit...
Reply all
Reply to author
Forward
0 new messages