return to main index

  mobile - desktop
follow us on facebook follow us on twitter follow us on YouTube link to us on LinkedIn
International Reptile Conservation Foundation  
Click to visit Raging Rodents
Locate a business by name: click to list your business
search the classifieds. buy an account
events by zip code list an event
Search the forums             Search in:
News & Events: Kingsnake Merch Store . . . . . . . . . .  Kingsnake returns to Tinley . . . . . . . . . .  kingsnake.com joins Monitor Brains! . . . . . . . . . .  Sneak Peek . . . . . . . . . .  Amphibian gut bacteria showing promise in cancer research . . . . . . . . . .  Herp Photo of the Day . . . . . . . . . .  Herp Photo of the Day . . . . . . . . . .  Meet The Baroness - The world's longest snake . . . . . . . . . .  Herp Photo of the Day . . . . . . . . . .  Updates? . . . . . . . . . .  Herp Photo of the Day . . . . . . . . . .  The mechanics behind the viper strike . . . . . . . . . .  Snakes on a Train? . . . . . . . . . .  Tracking the animals in the Florida Everglades - Meet the Croc Docs . . . . . . . . . .  Reintroduction attempts give San Francisco Garter a second chance . . . . . . . . . .  Promoting Reptiles is Our Jam Man . . . . . . . . . .  Origins of Chytrid discovered . . . . . . . . . .  Wisdom Wednesday - The Forums - The water is warm... Come on in! . . . . . . . . . .  Kingsnake.com Past, Present and Future . . . . . . . . . .  IHS Celebrates 50 years . . . . . . . . . .  End of January 2026 . . . . . . . . . .  Fun Fact Friday - Green Tree Monitor . . . . . . . . . .  The Evolution of the Osteoderm discovered . . . . . . . . . .  PACNWRS Expo Jan 2026 . . . . . . . . . .  Diamondback discovered in new Texas county for first time . . . . . . . . . .  Expo Setup . . . . . . . . . .  Reptiles greater than Golden Globes . . . . . . . . . .  Meander Monday . . . . . . . . . .  Update: Release mobile friendly!! . . . . . . . . . .  Reptile Super Show Pomona California . . . . . . . . . .  PACNWRS - Apr. 18-19, 2026 . . . . . . . . . .  Colorado Herp Society Meeting - Apr 18, 2026 . . . . . . . . . .  Chicago Herpetological Society Meeting - Apr 19, 2026 . . . . . . . . . .  Bay Area Herpetological Society Meeting - Apr 24, 2026 . . . . . . . . . .  DFW Herp Society Meeting - April 25, 2026 . . . . . . . . . .  Big Sky Reptile Expo - April 25-26, 2026 . . . . . . . . . .  Greater Cincinnati Herp Society Meeting - May 06, 2026 . . . . . . . . . .  CRE - May 16-17, 2026 . . . . . . . . . .  Colorado Herp Society Meeting - May 16, 2026 . . . . . . . . . .  Chicago Herpetological Society Meeting - May 17, 2026 . . . . . . . . . . 
Click for ZooMed
full banner - advertise here .50¢/1000 views
Click for 65% off Shipping with Reptiles 2 You
pool banner - $50 year

2.54 r32707: Python (caching?) issues

[ Login ] [ User Prefs ] [ Search Forums ] [ Back to Main Page ] [ Back to Python Forum ] [ Reply To This Message ]
[ Register to Post ]

Posted by: MichaelSmith at Mon May 7 06:35:29 2018  [ Report Abuse ] [ Email Message ] [ Show All Posts by MichaelSmith ]  
   

HI,



currently using blender to develop a small game. I'm using blender 2.54 with python 3.1.1 on Ubuntu.

I experience the following weird issue:

It appears like some changed lines of python scripts are not used properly when I change them.

Example:

1) I renamed an object from Sphere.002 to Haptik

2) I changed the python code that operates on it to use objects["Haptik"] instead of objects["Sphere.002"]

...it worked - but only for a while

3) I added a new object to the scene and wrote some more lines of code

4) I tried to launch it again and get the following error:

Python module can't be imported - controller "And4#CONTR#6":

Traceback (most recent call last):

File "/home/*username*/stab/blender/latest.blend/wall1force.py", line 16, in

hapticPosition=hapticScene.objects["Haptik"].position

KeyError: "CList[key]: ''Sphere.002'' key not in list"

Python module can't be imported - controller "Python Script1#CONTR#2":

The python-error does not match the line that causes the error. Before my change this line contained the word Sphere.002 - which leads me to the assumption that it might be some kind of caching issue.

I even tried deleting the .pyc but it did not help.

Any ideas for a workaround for this bug?



Any help will be apprecited.



I didn't find the right solution from the Internet.



References:

https://www.blender.org/forum/viewtopic.php?t=18379

Creative production service



Thank you.














   

[ Reply To This Message ] [ Subscribe to this Thread ] [ Show Entire Thread ]


>> Next Message:  RE: 2.54 r32707: Python (caching?) issues - avalanche, Tue Aug 14 11:05:11 2018

Click for 65% off Shipping with Reptiles 2 You Click to visit Sierra Fish and Pets Click to visit Classifieds
KINGSNAKE.COM

Enjoy all our content free of charge with a user account that gives you full access to every feature. For added visibility, paid options are available - post in our Classifieds, showcase your business with Banner Ads or a Directory listing, promote reptile events, and more.

Quick Links
Community
Legal & Safety
Support

Register for free ✓ Sign up!

Kingsnake.com ® is a registered trademark © 1997-