ToOneRelation import Error

0 views
Skip to first unread message

dakila

unread,
Dec 20, 2010, 7:53:33 PM12/20/10
to rum-discuss
Hi List,

I have recently updated my Rum install. I am currently getting the
import Error below.

tg21env/lib/python2.6/site-packages/tw.rum-0.4dev_20101221-py2.6.egg/
tw/rum/grid.py', line 8 in <module>
from rum.fields import Number, ToOneRelation, RelatedField
ImportError: cannot import name ToOneRelation

Regards,
Dakila

Michael Brickenstein

unread,
Jan 2, 2011, 12:42:39 PM1/2/11
to rum-discuss
Hi!

Sorry, I did not have internet connection for three and a half week.

The very specific bug resolves probably by updating the RUM core
package.
But in fact you should
easy_install -U tw.rum rum RumAlchemy rum-policy
Sorry for the trouble.

I hope that the magic new feature will compensate it.
Look for the word 'join' on index pages...

Cheers,
Michael

dakila

unread,
Jan 4, 2011, 8:16:11 PM1/4/11
to rum-discuss
Hi Michael,

I did as you suggested but I still get the ToOneRelation ImportError
I get the same error when I do the following import

from tw.rum.querybuilder import query_fields

Regards,
Dakila

Michael Brickenstein

unread,
Jan 5, 2011, 7:13:03 AM1/5/11
to rum-d...@googlegroups.com, dakila
Hi Dakila!

I sorry, that you encounter trouble.
Maybe, you have some old repository still
in your path.

Try just
easy_install -U rum
then write


from rum.fields import Number, ToOneRelation, RelatedField

and see if that succeeds,
if not check
easy-install.pth (sometimes there are hidden duplicates)
and send me the output of
easy_install.

By the way, the manual use of query_fields might become unneccary for you
due the new 'join'-feature.

Cheers,
Michael

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

-------------------------------------------
Dr. rer. nat. Michael Brickenstein
Mathematisches Forschungsinstitut Oberwolfach gGmbH
Schwarzwaldstr. 9 - 11
77709 Oberwolfach
Tel.: 07834/979-31
Fax: 07834/979-38

dakila

unread,
Jan 5, 2011, 8:05:15 AM1/5/11
to rum-discuss
Hi Michael,

Thanks a lot for your help! I might have created an egg file using an
old rum version that confused easy install. The recent changes made
removed the 'confusing' rum egg file in my environment. Sorry for all
the trouble :).

Best Regards,
Dakila
> > For more options, visit this group athttp://groups.google.com/group/rum-discuss?hl=en.
Reply all
Reply to author
Forward
0 new messages