Python traceback most recent call last blender ошибка

$\begingroup$

When I try to import models using Rip addon I see an error saying traceback error but my PYTHON traceback error

AttributeError: module 'time' has no attribute 'clock'

Blender screenshot with a traceback that ends "AttributeError: module 'time' has no attribute 'clock'".

Duarte Farrajota Ramos's user avatar

asked Jul 4, 2021 at 8:48

Never23345's user avatar

$\endgroup$

$\begingroup$

The time.clock() function is deprecated and was removed in Python 3.8. Blender 2.93 ships with Python 3.9, so any code that uses time.clock() won’t work in 2.93.

Here is a bug report for this issue on the RipImport repo.

You can fix this by either

  1. Using Blender 2.92, or
  2. Using Fighterbuilder’s fork of the RipImport addon, which fixes this bug.

answered Jul 4, 2021 at 11:10

scurest's user avatar

scurestscurest

9,42610 silver badges27 bronze badges

$\endgroup$

You must log in to answer this question.

Not the answer you’re looking for? Browse other questions tagged

.

Blender Artists Community

Loading

When i attempt to activate Gaffer (installed), i obtain this error:

with default name («Gaffer-3.1.9.zip»)

Traceback (most recent call last):
File «C:\Program Files\Blender Foundation\Blender 3.0\3.0\scripts\modules\addon_utils.py», line 351, in enable
mod = import(module_name)
ModuleNotFoundError: No module named ‘Gaffer-3’

with altered name («Gaffer-3.1.9(1).zip»)

Traceback (most recent call last):
File «C:\Program Files\Blender Foundation\Blender 3.0\3.0\scripts\modules\addon_utils.py», line 351, in enable
mod = import(module_name)
ModuleNotFoundError: No module named ‘Gaffer-3.1’

Solution

  1. Extract the folder
  2. Rename the folder inside the folder created when extracted
  3. Rename it to «Gaffer-3»
  4. Zip and install this folder not the other

Renaming the folder to have only one extension(«.zip») seems to solve the problem for me.

Seems to be a Blender bug in general, more precisely in his Python implementation, but i put this here, just in case someone has the same error has i have. The devs can fix the problem this way too.

$begingroup$

there seems to be no answers for the error «Traceback (most recent calls last)» in blender 2.8. Reinstalling blender doesnt fix the problem. this error occurs by just left clicking in the viewport or when importing images into textures and backgrounds. It ruins blender. I have no idea how this has happened.

this is the error:
enter image description here

I do not want to install a new version of blender at the moment so that is out of the option. Please help. This error is really annoying. This must have something to do with a file directory but i am not sure. Thanks in advance.

asked Aug 16, 2020 at 6:10

object's user avatar

objectobject

3142 silver badges9 bronze badges

$endgroup$

4

$begingroup$

Revert to Factory settings.

Set File > Defaults to «Factory Settings»

answered Aug 18, 2020 at 5:21

susu's user avatar

susususu

13.8k3 gold badges24 silver badges45 bronze badges

$endgroup$

$begingroup$

Usually it will go away by itself.

answered Aug 18, 2020 at 1:30

M4GN3TIC _'s user avatar

M4GN3TIC _M4GN3TIC _

3891 gold badge3 silver badges8 bronze badges

$endgroup$

Last things first.
It is the correct version, I took the text from Blender as I’ve too many Betas to count. ;) Would you check the version displayed in Blender Preferences, please?
As for installing it in the latest version of Blender. I still have problems and I have had to do 3 System Restores.
I’ve stopped for the moment while I think. I did not un-install Ver 2.8 so both were in the registry. :(
What I did see was that the folders:
Stop- motion-OBJ;
Stop- motion-OBJ -0.2.79.2;
Stop- motion-OBJ -2.0.0 in
AppData > Roaming > BlenderFoundation > Blender > 2.83 > scripts > addons

The last time I tried to install Stop_motion in 2.83 it seemed to install but when I tried to activate it. I got the errors:

Traceback (most recent call last):
File «C:Proglam FilesBlender FoundationBlender 2.832.83Scriptsmodulesaddon_utils.py», line 351, in enable
mod = import(module_name)
ModuleNotFoundError: No module named ‘Stop-motion-OBJ-2’

—python-console

enter the blender command line with:

blender --background --python-console

From the command prompt this will bring you into the python command line where you can test python script one line at a time.
Always to start we must import the bpy module, this gives us access to blender functions so we can generate elements like: grease pencil objects, 3d meshes, animation, metaballs and more.

import bpy
bpy.data.objects[10]

bpy.data.objects[N]

Traceback (most recent call last):
  File "", line 1, in 
KeyError: 'bpy_prop_collection[key]: key "10" not found'

Above is a very common error when writing bpy scripts. This error is similar to an index out of range error from a standard python list. When you encounter this error it means that you have requested an item by number index, and the number is greater than the number of items in the collection.

bpy.data.objects[«N»]

KeyError: 'bpy_prop_collection[key]: key "N" not found'

Above is another common error that looks similar to a python dictionary lookup error. This error means that the requested object name is not in the current blender scene.

bpy_prop_collection

bpy_prop_collection is the standard collection type that blender provides in the python interface.
It is a collection type that has features of both a python list and python dictionary. In other words, you can get objects by name or index. This has some major pros and cons, getting an object by name is not always consistent, because blender enforces unique names for each object, and when the user renames and object, if if the requested name already exists, blender will append .001 to the name. This complicates game logic that is depending on objects and getting them by name.

for object in bpy.data.objects

for ob in bpy.data.objects:
   print(ob.name)
   print(ob.location)

Above will loop thru all the objects in the current blender scene and print their name and location (position).

Semyon Dragomirov

2 апр 2021

Добрый день господа. Когда пытаюсь экспортировать меш из проекта, то Blender выдаёт такую ошибку:
(Из других проектов экспортится нормально. Подозреваю что это как-то связано с расположением проекта, но точно понять не получается. Помогите пожалуйста. Из других форматов экспортится нормально)

Traceback (most recent call last):
File «E:Blender2.90scriptsaddonsio_scene_fbx__init__.py», line 636, in execute
return export_fbx_bin.save(self, context, **keywords)
File «E:Blender2.90scriptsaddonsio_scene_fbxexport_fbx_bin.py», line 3198, in save
ret = save_single(operator, context.scene, depsgraph, filepath, **kwargs_mod)
File «E:Blender2.90scriptsaddonsio_scene_fbxexport_fbx_bin.py», line 3094, in save_single
fbx_objects_elements(root, scene_data)
File «E:Blender2.90scriptsaddonsio_scene_fbxexport_fbx_bin.py», line 2894, in fbx_objects_elements
fbx_data_mesh_elements(objects, me_obj, scene_data, done_meshes)
File «E:Blender2.90scriptsaddonsio_scene_fbxexport_fbx_bin.py», line 1174, in fbx_data_mesh_elements
elem_data_single_int32_array(lay_uv, b»UVIndex», (uv2idx[uv_id] for uv_id in _uvtuples_gen(t_luv, t_lvidx)))
File «E:Blender2.90scriptsaddonsio_scene_fbxfbx_utils.py», line 504, in elem_data_single_int32_array
return _elem_data_single(elem, name, value, «add_int32_array»)
File «E:Blender2.90scriptsaddonsio_scene_fbxfbx_utils.py», line 451, in _elem_data_single
getattr(sub_elem, func_name)(value)
File «E:Blender2.90scriptsaddonsio_scene_fbxencode_bin.py», line 161, in add_int32_array
data = array.array(data_types.ARRAY_INT32, data)
File «E:Blender2.90scriptsaddonsio_scene_fbxexport_fbx_bin.py», line 1174, in <genexpr>
elem_data_single_int32_array(lay_uv, b»UVIndex», (uv2idx[uv_id] for uv_id in _uvtuples_gen(t_luv, t_lvidx)))
KeyError: ((nan, nan), 11194)

location: <unknown location>:-1

Последнее редактирование: 2 апр 2021

mageaster

28 ноя 2021

У меня такая же проблема(вроде) при экспорте в FBX. Вроде uv-каналов нет лишних. Помогите куда нажать и что сделать))

1.png

Steve Cherk

28 ноя 2021

попробуй чтобы путь без папки кирилицей был.
Там же пишет в конце — неизвестное место.

или версию поновей Блендера. Может пофиксили уже.

и чего за винда?

у меня в десятой винде, версия 2.93.1 — сохраняет нормально все в папку, где два длинных имени на кирилице.

Так что сама по себе кирилица не должна проблемой быть. В том же зибраше это точно проблема зачастую

28 ноя 2021

попробуй чтобы путь без папки кирилицей был.
Там же пишет в конце — неизвестное место.

или версию поновей Блендера. Может пофиксили уже.

и чего за винда?

у меня в десятой винде, версия 2.93.1 — сохраняет нормально все в папку, где два длинных имени на кирилице.

Так что сама по себе кирилица не должна проблемой быть. В том же зибраше это точно проблема зачастую

Винда Десятая. Почему то лоу поли этой модели нормально сохранилось в FBX, но хай поли не хочет и даже установка новой версии не помогла. Даже пробовал копировать модель и переносить в новый проект и всё равно такая же ошибка:

2.png

Steve Cherk

29 ноя 2021

а это сколько хайполи?

я сейчас навскидку не припомню насколько большие модели приходилось сохранять.
Их самого свежего глянул вот, там под печать моделька была, но не сильно плотная. 58 мегабайт в FBX. (то же самое в OBJ на 153 Мб тянет)

mageaster

29 ноя 2021

На хайполи развёртка в принципе не нужна, можно удалить вообще все каналы.

Steve Cherk

29 ноя 2021

На хайполи развёртка в принципе не нужна, можно удалить вообще все каналы.

ну как сказать. Я вот под цветную печать делал. Там конечно хайполька может не очень тяжелая, между мидполи и хайполи скорее. Но нужны были и текстуры и развертка соответственно. Хотя FBX это скорее так, на всякий случай сохранял. Там все же OBJ скорее нужен.

1 дек 2021

На хайполи развёртка в принципе не нужна, можно удалить вообще все каналы.

Удалил я значит все каналы, но теперь новая ошибка. И выглядит она так:

3.png
Помогите решить плиз))

ААА ППП (Полигонер)

1 дек 2021

Попробуй НЕ на диск С сохранить. Или запусти Блендер от имени администратора.

System Information
Operating system: Windows-10-10.0.19041-SP0 64 Bits
Graphics card: GeForce GTX 1650/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 457.63

Blender Version
Broken: version: 2.93.5, branch: master, commit date: 2021-10-05 12:04, hash: blender/blender@a791bdabd0
Worked: (newest version of Blender that worked as expected)

Short description of error
Blender cannot save on Wavefront (obj) file and kept responding

Python: Traceback (most recent call last):

File "C:\Program Files\Blender Foundation\Blender 2.93\2.93\scripts\addons\io_scene_obj\__init__.py", line 146, in execute
  return import_obj.load(context, **keywords)
File "C:\Program Files\Blender Foundation\Blender 2.93\2.93\scripts\addons\io_scene_obj\import_obj.py", line 976, in load
  float_func = get_float_func(filepath)
File "C:\Program Files\Blender Foundation\Blender 2.93\2.93\scripts\addons\io_scene_obj\import_obj.py", line 883, in get_float_func
  file = open(filepath, 'rb')

FileNotFoundError: [Errno 2] No such file or directory: ‘C:\Users\ASUS\Documents\Blank cube’

location: :-1

Interestingly enough, this all happens in all my files as well. I tried every possible way from youtube to «load Factory settings» and it does not work. reinstalling my software does not help it either and this drives me crazy

Exact steps for others to reproduce the error
[Please describe the exact steps needed to reproduce the issue]

*Open .blend file
*File-Import-Wavefront(.Obj)

{F12788759 size=full}

**System Information**
Operating system: Windows-10-10.0.19041-SP0 64 Bits
Graphics card: GeForce GTX 1650/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 457.63

**Blender Version**
Broken: version: 2.93.5, branch: master, commit date: 2021-10-05 12:04, hash: `blender/blender@a791bdabd0`
Worked: (newest version of Blender that worked as expected)

**Short description of error**
Blender cannot save on Wavefront (obj) file and kept responding

Python: Traceback (most recent call last):
«`
File «C:\Program Files\Blender Foundation\Blender 2.93\2.93\scripts\addons\io_scene_obj\__init__.py», line 146, in execute
return import_obj.load(context, **keywords)
File «C:\Program Files\Blender Foundation\Blender 2.93\2.93\scripts\addons\io_scene_obj\import_obj.py», line 976, in load
float_func = get_float_func(filepath)
File «C:\Program Files\Blender Foundation\Blender 2.93\2.93\scripts\addons\io_scene_obj\import_obj.py», line 883, in get_float_func
file = open(filepath, ‘rb’)
«`
FileNotFoundError: [Errno 2] No such file or directory: ‘C:\\Users\\ASUS\\Documents\\Blank cube’

location: <unknown location>:-1

Interestingly enough, this all happens in all my files as well. I tried every possible way from youtube to «load Factory settings» and it does not work. reinstalling my software does not help it either and this drives me crazy

**Exact steps for others to reproduce the error**
[Please describe the exact steps needed to reproduce the issue]

*Open .blend file
*File-Import-Wavefront(.Obj)

{[F12788759](https://archive.blender.org/developer/F12788759/Keychain_chain_crash.blend) size=full}

Понравилась статья? Поделить с друзьями:
  • Python tkinter сообщение об ошибке
  • Pytorch матрица ошибок
  • Python requests ошибка 401
  • Python39 dll ошибка
  • Python requests обработка ошибок