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
This Space Available
Contact Sales!
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: Herp Photo of the Day: Chameleon . . . . . . . . . .  Herp Photo of the Day: Bearded Dragon . . . . . . . . . .  San Diego Herp Society Meeting - Dec 16, 2025 . . . . . . . . . .  Colorado Herp Society Meeting - Dec 20, 2025 . . . . . . . . . .  Colorado Herp Society Meeting - Dec 20, 2025 . . . . . . . . . .  Chicago Herpetological Society Meeting - Dec 21, 2025 . . . . . . . . . .  Bay Area Herpetological Society Meeting - Dec 26, 2025 . . . . . . . . . .  Suncoast Herp Society Meeting - Dec 27, 2025 . . . . . . . . . .  DFW Herp Society Meeting - Dec 27, 2025 . . . . . . . . . .  Greater Cincinnati Herp Society Meeting - Jan 07, 2026 . . . . . . . . . .  Reptile Super Show - Jan 10-11 2026 . . . . . . . . . .  Colorado Herp Society Meeting - Jan 17, 2026 . . . . . . . . . . 
Click to visit Classifieds
full banner - advertise here .50¢/1000 views
Click here for Dragon Serpents
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 instead of objects
...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.position
KeyError: "CList: ''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 ] [ Hide Replies ]


>> Next topic:  Need some guidance - ksassler, Thu May 24 12:04:41 2018
<< Previous topic:  Anthills worth ? - Ham1, Sun Jun 18 16:55:48 2017


kingsnake.com | NRAAC.ORG | ReptileBusinessGuide.com | ReptileShowGuide.com | ReptileShows.mobi | Connected By Cars | DesertRunner.org
AprilFirstBioEngineering | GunHobbyist.com | GunShowGuide.com | GunShows.mobi | GunBusinessGuide.com | club kingsnake | live stage magazine


powered by kingsnake.com
Click to visit Classifieds
pool banner - advertise here
Click here for Dragon Serpents
advertise here
Click to visit PACNWRS
advertise here
kingsnake.com® is a registered trademark© 1997-
    - this site optimized for 1024x768 resolution -