I can run it without problem from the sympy root directory (which I
always do).  But I get the same error as you did when running from
another directory:

[...@ubuntulaptop sympy (fix_wicks2)]$ /usr/bin/python \
 examples/intermediate/coupled_cluster.py 

Calculates the Coupled-Cluster energy- and amplitude equations
See 'An Introduction to Coupled Cluster Theory' by
T. Daniel Crawford and Henry F. Schaefer III

Setting up hamiltonian
Calculating nested commutators
comm1...
comm2...

(snip)

[...@ubuntulaptop sympy (fix_wicks2)]$ cd ..
[...@ubuntulaptop git_workingdirs]$ /usr/bin/python \
 sympy/examples/intermediate/coupled_cluster.py
Traceback (most recent call last):
  File "sympy/examples/intermediate/coupled_cluster.py", line 1, in
<module>
    from sympy.physics.secondquant import (AntiSymmetricTensor, wicks,
ImportError: cannot import name AntiSymmetricTensor
[...@ubuntulaptop git_workingdirs]$ 


I guess it should be in all.py, but what does that mean?

Øyvind


lø., 27.02.2010 kl. 11.19 -0700, skrev Aaron S. Meurer:
> The coupled_cluster.py example doesn't run, and it isn't run by all.py, I 
> think because it is not set to executable.
> 
> $/sw/bin/python2.6 examples/intermediate/coupled_cluster.py 
> Traceback (most recent call last):
>   File "examples/intermediate/coupled_cluster.py", line 1, in <module>
>     from sympy.physics.secondquant import (AntiSymmetricTensor, wicks,
> ImportError: cannot import name AntiSymmetricTensor
> 
> Aaron Meurer
> On Feb 27, 2010, at 8:38 AM, jegerjensen wrote:
> 
> > Thanks for reviewing, both of you.
> > 
> > I rebased of the sympy.org repo and uploaded the patches to the branch
> > fix_wick2 at git://github.com/jegerjensen/sympy.git
> > 
> > Oh, and that branch also contains a corresponding patch for examples/
> > intermediate/coupled_cluster.py.  I'm sorry that I forgot to send in
> > that last commit here...
> > 
> > Øyvind
> > 
> > -- 
> > You received this message because you are subscribed to the Google Groups 
> > "sympy-patches" group.
> > To post to this group, send email to sympy-patc...@googlegroups.com.
> > To unsubscribe from this group, send email to 
> > sympy-patches+unsubscr...@googlegroups.com.
> > For more options, visit this group at 
> > http://groups.google.com/group/sympy-patches?hl=en.
> > 
> 

-- 
You received this message because you are subscribed to the Google Groups 
"sympy-patches" group.
To post to this group, send email to sympy-patc...@googlegroups.com.
To unsubscribe from this group, send email to 
sympy-patches+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sympy-patches?hl=en.

Reply via email to