Multi-GPU TFF simulation - gpu
When running my custom federated learning code on GPU (using tff.templates.IterativeProcess): I am getting following warning:
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
2022-11-12 12:22:28.981770: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1532] Created device /job:localhost/replica:0/task:0/device:GPU:0 with 208 MB memory: -> device: 0, name: NVIDIA GeForce RTX 3080, pci bus id: 0000:1b:00.0, compute capability: 8.6
2022-11-12 12:22:28.982594: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1532] Created device /job:localhost/replica:0/task:0/device:GPU:1 with 7701 MB memory: -> device: 1, name: NVIDIA GeForce RTX 3080, pci bus id: 0000:1e:00.0, compute capability: 8.6
2022-11-12 12:22:28.983096: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1532] Created device /job:localhost/replica:0/task:0/device:GPU:2 with 7701 MB memory: -> device: 2, name: NVIDIA GeForce RTX 3080, pci bus id: 0000:3f:00.0, compute capability: 8.6
2022-11-12 12:22:28.983653: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1532] Created device /job:localhost/replica:0/task:0/device:GPU:3 with 7701 MB memory: -> device: 3, name: NVIDIA GeForce RTX 3080, pci bus id: 0000:40:00.0, compute capability: 8.6
and then following error while calling tff.templates.IterativeProcess for training:
Traceback (most recent call last):
File "/home/user1/p1/cases/a_ii.py", line 263, in <module>
server_parameters = FL.next(server_parameters, rate, federated_train_data, tff_val(sel))
File "/home/user1/fl/lib/python3.9/site-packages/tensorflow_federated/python/core/impl/computation/computation_impl.py", line 130, in __call__
return self._context_stack.current.invoke(self, arg)
File "/home/user1/fl/lib/python3.9/site-packages/tensorflow_federated/python/core/impl/execution_contexts/sync_execution_context.py", line 67, in invoke
return self._async_runner.run_coro_and_return_result(
File "/home/user1/fl/lib/python3.9/site-packages/tensorflow_federated/python/common_libs/async_utils.py", line 223, in run_coro_and_return_result
return future.result()
File "/home/user1/anaconda3/lib/python3.9/concurrent/futures/_base.py", line 446, in result
return self.__get_result()
File "/home/user1/anaconda3/lib/python3.9/concurrent/futures/_base.py", line 391, in __get_result
raise self._exception
File "/home/user1/anaconda3/lib/python3.9/asyncio/tasks.py", line 258, in __step
result = coro.throw(exc)
File "/home/user1/fl/lib/python3.9/site-packages/tensorflow_federated/python/common_libs/retrying.py", line 107, in retry_coro_fn
raise e
File "/home/user1/fl/lib/python3.9/site-packages/tensorflow_federated/python/common_libs/retrying.py", line 97, in retry_coro_fn
result = await fn(*args, **kwargs)
File "/home/user1/fl/lib/python3.9/site-packages/tensorflow_federated/python/core/impl/execution_contexts/async_execution_context.py", line 231, in invoke
return await tracing.wrap_coroutine_in_current_trace_context(
File "/home/user1/fl/lib/python3.9/site-packages/tensorflow_federated/python/common_libs/tracing.py", line 391, in _wrapped
return await coro
File "/home/user1/fl/lib/python3.9/site-packages/tensorflow_federated/python/core/impl/execution_contexts/async_execution_context.py", line 141, in _invoke
result = await executor.create_call(comp, arg)
File "/home/user1/fl/lib/python3.9/site-packages/tensorflow_federated/python/common_libs/tracing.py", line 201, in async_trace
result = await fn(*fn_args, **fn_kwargs)
File "/home/user1/fl/lib/python3.9/site-packages/tensorflow_federated/python/core/impl/executors/reference_resolving_executor.py", line 346, in create_call
return await comp_repr.invoke(self, arg)
File "/home/user1/fl/lib/python3.9/site-packages/tensorflow_federated/python/core/impl/executors/reference_resolving_executor.py", line 166, in invoke
return await executor._evaluate(comp_lambda.result, new_scope) # pylint: disable=protected-access
File "/home/user1/fl/lib/python3.9/site-packages/tensorflow_federated/python/core/impl/executors/reference_resolving_executor.py", line 516, in _evaluate
return await self._evaluate_block(comp, scope)
File "/home/user1/fl/lib/python3.9/site-packages/tensorflow_federated/python/common_libs/tracing.py", line 201, in async_trace
result = await fn(*fn_args, **fn_kwargs)
File "/home/user1/fl/lib/python3.9/site-packages/tensorflow_federated/python/core/impl/executors/reference_resolving_executor.py", line 480, in _evaluate_block
return await self._evaluate(comp.block.result, scope)
File "/home/user1/fl/lib/python3.9/site-packages/tensorflow_federated/python/core/impl/executors/reference_resolving_executor.py", line 508, in _evaluate
return await self._evaluate_reference(comp, scope)
File "/home/user1/fl/lib/python3.9/site-packages/tensorflow_federated/python/common_libs/tracing.py", line 201, in async_trace
result = await fn(*fn_args, **fn_kwargs)
File "/home/user1/fl/lib/python3.9/site-packages/tensorflow_federated/python/core/impl/executors/reference_resolving_executor.py", line 432, in _evaluate_reference
return await scope.resolve_reference(comp.reference.name)
File "/home/user1/fl/lib/python3.9/site-packages/tensorflow_federated/python/core/impl/executors/reference_resolving_executor.py", line 115, in resolve_reference
return await value
File "/home/user1/anaconda3/lib/python3.9/asyncio/futures.py", line 284, in __await__
yield self # This tells Task to wait for completion.
File "/home/user1/anaconda3/lib/python3.9/asyncio/tasks.py", line 328, in __wakeup
future.result()
File "/home/user1/anaconda3/lib/python3.9/asyncio/futures.py", line 201, in result
raise self._exception
File "/home/user1/anaconda3/lib/python3.9/asyncio/tasks.py", line 258, in __step
result = coro.throw(exc)
File "/home/user1/fl/lib/python3.9/site-packages/tensorflow_federated/python/core/impl/executors/reference_resolving_executor.py", line 510, in _evaluate
return await self._evaluate_call(comp, scope)
File "/home/user1/fl/lib/python3.9/site-packages/tensorflow_federated/python/common_libs/tracing.py", line 201, in async_trace
result = await fn(*fn_args, **fn_kwargs)
File "/home/user1/fl/lib/python3.9/site-packages/tensorflow_federated/python/core/impl/executors/reference_resolving_executor.py", line 448, in _evaluate_call
func, arg = await asyncio.gather(func, get_arg())
File "/home/user1/anaconda3/lib/python3.9/asyncio/tasks.py", line 328, in __wakeup
future.result()
File "/home/user1/anaconda3/lib/python3.9/asyncio/tasks.py", line 258, in __step
result = coro.throw(exc)
File "/home/user1/fl/lib/python3.9/site-packages/tensorflow_federated/python/core/impl/executors/reference_resolving_executor.py", line 444, in get_arg
return await self._evaluate(comp.call.argument, scope=scope)
File "/home/user1/fl/lib/python3.9/site-packages/tensorflow_federated/python/core/impl/executors/reference_resolving_executor.py", line 514, in _evaluate
return await self._evaluate_struct(comp, scope)
File "/home/user1/fl/lib/python3.9/site-packages/tensorflow_federated/python/common_libs/tracing.py", line 201, in async_trace
result = await fn(*fn_args, **fn_kwargs)
File "/home/user1/fl/lib/python3.9/site-packages/tensorflow_federated/python/core/impl/executors/reference_resolving_executor.py", line 468, in _evaluate_struct
values = await asyncio.gather(*values)
File "/home/user1/anaconda3/lib/python3.9/asyncio/tasks.py", line 328, in __wakeup
future.result()
File "/home/user1/anaconda3/lib/python3.9/asyncio/tasks.py", line 258, in __step
result = coro.throw(exc)
File "/home/user1/fl/lib/python3.9/site-packages/tensorflow_federated/python/core/impl/executors/reference_resolving_executor.py", line 508, in _evaluate
return await self._evaluate_reference(comp, scope)
File "/home/user1/fl/lib/python3.9/site-packages/tensorflow_federated/python/common_libs/tracing.py", line 201, in async_trace
result = await fn(*fn_args, **fn_kwargs)
File "/home/user1/fl/lib/python3.9/site-packages/tensorflow_federated/python/core/impl/executors/reference_resolving_executor.py", line 432, in _evaluate_reference
return await scope.resolve_reference(comp.reference.name)
File "/home/user1/fl/lib/python3.9/site-packages/tensorflow_federated/python/core/impl/executors/reference_resolving_executor.py", line 115, in resolve_reference
return await value
File "/home/user1/anaconda3/lib/python3.9/asyncio/futures.py", line 284, in __await__
yield self # This tells Task to wait for completion.
File "/home/user1/anaconda3/lib/python3.9/asyncio/tasks.py", line 328, in __wakeup
future.result()
File "/home/user1/anaconda3/lib/python3.9/asyncio/futures.py", line 201, in result
raise self._exception
File "/home/user1/anaconda3/lib/python3.9/asyncio/tasks.py", line 258, in __step
result = coro.throw(exc)
File "/home/user1/fl/lib/python3.9/site-packages/tensorflow_federated/python/core/impl/executors/reference_resolving_executor.py", line 508, in _evaluate
return await self._evaluate_reference(comp, scope)
File "/home/user1/fl/lib/python3.9/site-packages/tensorflow_federated/python/common_libs/tracing.py", line 201, in async_trace
result = await fn(*fn_args, **fn_kwargs)
File "/home/user1/fl/lib/python3.9/site-packages/tensorflow_federated/python/core/impl/executors/reference_resolving_executor.py", line 432, in _evaluate_reference
return await scope.resolve_reference(comp.reference.name)
File "/home/user1/fl/lib/python3.9/site-packages/tensorflow_federated/python/core/impl/executors/reference_resolving_executor.py", line 117, in resolve_reference
return await self._parent.resolve_reference(name)
File "/home/user1/fl/lib/python3.9/site-packages/tensorflow_federated/python/core/impl/executors/reference_resolving_executor.py", line 115, in resolve_reference
return await value
File "/home/user1/anaconda3/lib/python3.9/asyncio/futures.py", line 284, in __await__
yield self # This tells Task to wait for completion.
File "/home/user1/anaconda3/lib/python3.9/asyncio/tasks.py", line 328, in __wakeup
future.result()
File "/home/user1/anaconda3/lib/python3.9/asyncio/futures.py", line 201, in result
raise self._exception
File "/home/user1/anaconda3/lib/python3.9/asyncio/tasks.py", line 258, in __step
result = coro.throw(exc)
File "/home/user1/fl/lib/python3.9/site-packages/tensorflow_federated/python/core/impl/executors/reference_resolving_executor.py", line 510, in _evaluate
return await self._evaluate_call(comp, scope)
File "/home/user1/fl/lib/python3.9/site-packages/tensorflow_federated/python/common_libs/tracing.py", line 201, in async_trace
result = await fn(*fn_args, **fn_kwargs)
File "/home/user1/fl/lib/python3.9/site-packages/tensorflow_federated/python/core/impl/executors/reference_resolving_executor.py", line 448, in _evaluate_call
func, arg = await asyncio.gather(func, get_arg())
File "/home/user1/anaconda3/lib/python3.9/asyncio/tasks.py", line 328, in __wakeup
future.result()
File "/home/user1/anaconda3/lib/python3.9/asyncio/tasks.py", line 258, in __step
result = coro.throw(exc)
File "/home/user1/fl/lib/python3.9/site-packages/tensorflow_federated/python/core/impl/executors/reference_resolving_executor.py", line 510, in _evaluate
return await self._evaluate_call(comp, scope)
File "/home/user1/fl/lib/python3.9/site-packages/tensorflow_federated/python/common_libs/tracing.py", line 201, in async_trace
result = await fn(*fn_args, **fn_kwargs)
File "/home/user1/fl/lib/python3.9/site-packages/tensorflow_federated/python/core/impl/executors/reference_resolving_executor.py", line 448, in _evaluate_call
func, arg = await asyncio.gather(func, get_arg())
File "/home/user1/anaconda3/lib/python3.9/asyncio/tasks.py", line 328, in __wakeup
future.result()
File "/home/user1/anaconda3/lib/python3.9/asyncio/tasks.py", line 258, in __step
result = coro.throw(exc)
File "/home/user1/fl/lib/python3.9/site-packages/tensorflow_federated/python/core/impl/executors/reference_resolving_executor.py", line 444, in get_arg
return await self._evaluate(comp.call.argument, scope=scope)
File "/home/user1/fl/lib/python3.9/site-packages/tensorflow_federated/python/core/impl/executors/reference_resolving_executor.py", line 514, in _evaluate
return await self._evaluate_struct(comp, scope)
File "/home/user1/fl/lib/python3.9/site-packages/tensorflow_federated/python/common_libs/tracing.py", line 201, in async_trace
result = await fn(*fn_args, **fn_kwargs)
File "/home/user1/fl/lib/python3.9/site-packages/tensorflow_federated/python/core/impl/executors/reference_resolving_executor.py", line 468, in _evaluate_struct
values = await asyncio.gather(*values)
File "/home/user1/anaconda3/lib/python3.9/asyncio/tasks.py", line 328, in __wakeup
future.result()
File "/home/user1/anaconda3/lib/python3.9/asyncio/tasks.py", line 258, in __step
result = coro.throw(exc)
File "/home/user1/fl/lib/python3.9/site-packages/tensorflow_federated/python/core/impl/executors/reference_resolving_executor.py", line 444, in get_arg
return await self._evaluate(comp.call.argument, scope=scope)
File "/home/user1/fl/lib/python3.9/site-packages/tensorflow_federated/python/core/impl/executors/reference_resolving_executor.py", line 514, in _evaluate
return await self._evaluate_struct(comp, scope)
File "/home/user1/fl/lib/python3.9/site-packages/tensorflow_federated/python/common_libs/tracing.py", line 201, in async_trace
result = await fn(*fn_args, **fn_kwargs)
File "/home/user1/fl/lib/python3.9/site-packages/tensorflow_federated/python/core/impl/executors/reference_resolving_executor.py", line 468, in _evaluate_struct
values = await asyncio.gather(*values)
File "/home/user1/anaconda3/lib/python3.9/asyncio/tasks.py", line 328, in __wakeup
future.result()
File "/home/user1/anaconda3/lib/python3.9/asyncio/tasks.py", line 258, in __step
result = coro.throw(exc)
File "/home/user1/fl/lib/python3.9/site-packages/tensorflow_federated/python/core/impl/executors/reference_resolving_executor.py", line 508, in _evaluate
return await self._evaluate_reference(comp, scope)
File "/home/user1/fl/lib/python3.9/site-packages/tensorflow_federated/python/common_libs/tracing.py", line 201, in async_trace
result = await fn(*fn_args, **fn_kwargs)
File "/home/user1/fl/lib/python3.9/site-packages/tensorflow_federated/python/core/impl/executors/reference_resolving_executor.py", line 432, in _evaluate_reference
return await scope.resolve_reference(comp.reference.name)
File "/home/user1/fl/lib/python3.9/site-packages/tensorflow_federated/python/core/impl/executors/reference_resolving_executor.py", line 117, in resolve_reference
return await self._parent.resolve_reference(name)
File "/home/user1/fl/lib/python3.9/site-packages/tensorflow_federated/python/core/impl/executors/reference_resolving_executor.py", line 115, in resolve_reference
return await value
File "/home/user1/anaconda3/lib/python3.9/asyncio/futures.py", line 284, in __await__
yield self # This tells Task to wait for completion.
File "/home/user1/anaconda3/lib/python3.9/asyncio/tasks.py", line 328, in __wakeup
future.result()
File "/home/user1/anaconda3/lib/python3.9/asyncio/futures.py", line 201, in result
raise self._exception
File "/home/user1/anaconda3/lib/python3.9/asyncio/tasks.py", line 258, in __step
result = coro.throw(exc)
File "/home/user1/fl/lib/python3.9/site-packages/tensorflow_federated/python/core/impl/executors/reference_resolving_executor.py", line 508, in _evaluate
return await self._evaluate_reference(comp, scope)
File "/home/user1/fl/lib/python3.9/site-packages/tensorflow_federated/python/common_libs/tracing.py", line 201, in async_trace
result = await fn(*fn_args, **fn_kwargs)
File "/home/user1/fl/lib/python3.9/site-packages/tensorflow_federated/python/core/impl/executors/reference_resolving_executor.py", line 432, in _evaluate_reference
return await scope.resolve_reference(comp.reference.name)
File "/home/user1/fl/lib/python3.9/site-packages/tensorflow_federated/python/core/impl/executors/reference_resolving_executor.py", line 115, in resolve_reference
return await value
File "/home/user1/anaconda3/lib/python3.9/asyncio/futures.py", line 284, in __await__
yield self # This tells Task to wait for completion.
File "/home/user1/anaconda3/lib/python3.9/asyncio/tasks.py", line 328, in __wakeup
future.result()
File "/home/user1/anaconda3/lib/python3.9/asyncio/futures.py", line 201, in result
raise self._exception
File "/home/user1/anaconda3/lib/python3.9/asyncio/tasks.py", line 258, in __step
result = coro.throw(exc)
File "/home/user1/fl/lib/python3.9/site-packages/tensorflow_federated/python/core/impl/executors/reference_resolving_executor.py", line 510, in _evaluate
return await self._evaluate_call(comp, scope)
File "/home/user1/fl/lib/python3.9/site-packages/tensorflow_federated/python/common_libs/tracing.py", line 201, in async_trace
result = await fn(*fn_args, **fn_kwargs)
File "/home/user1/fl/lib/python3.9/site-packages/tensorflow_federated/python/core/impl/executors/reference_resolving_executor.py", line 449, in _evaluate_call
return await self.create_call(func, arg=arg)
File "/home/user1/fl/lib/python3.9/site-packages/tensorflow_federated/python/common_libs/tracing.py", line 201, in async_trace
result = await fn(*fn_args, **fn_kwargs)
File "/home/user1/fl/lib/python3.9/site-packages/tensorflow_federated/python/core/impl/executors/reference_resolving_executor.py", line 342, in create_call
return ReferenceResolvingExecutorValue(await
File "/home/user1/fl/lib/python3.9/site-packages/tensorflow_federated/python/common_libs/tracing.py", line 201, in async_trace
result = await fn(*fn_args, **fn_kwargs)
File "/home/user1/fl/lib/python3.9/site-packages/tensorflow_federated/python/core/impl/executors/thread_delegating_executor.py", line 102, in create_call
return await self._delegate(self._target_executor.create_call(comp, arg))
File "/home/user1/fl/lib/python3.9/site-packages/tensorflow_federated/python/core/impl/executors/thread_delegating_executor.py", line 87, in _delegate
result_value = await _delegate_with_trace_ctx(coro, self._async_runner)
File "/home/user1/fl/lib/python3.9/site-packages/tensorflow_federated/python/common_libs/async_utils.py", line 227, in await_coro_and_return_result
return await asyncio.wrap_future(
File "/home/user1/anaconda3/lib/python3.9/asyncio/futures.py", line 284, in __await__
yield self # This tells Task to wait for completion.
File "/home/user1/anaconda3/lib/python3.9/asyncio/tasks.py", line 328, in __wakeup
future.result()
File "/home/user1/anaconda3/lib/python3.9/asyncio/futures.py", line 201, in result
raise self._exception
File "/home/user1/anaconda3/lib/python3.9/asyncio/tasks.py", line 258, in __step
result = coro.throw(exc)
File "/home/user1/fl/lib/python3.9/site-packages/tensorflow_federated/python/common_libs/tracing.py", line 391, in _wrapped
return await coro
File "/home/user1/fl/lib/python3.9/site-packages/tensorflow_federated/python/common_libs/tracing.py", line 201, in async_trace
result = await fn(*fn_args, **fn_kwargs)
File "/home/user1/fl/lib/python3.9/site-packages/tensorflow_federated/python/core/impl/executors/federating_executor.py", line 457, in create_call
return await self._strategy.compute_federated_intrinsic(
File "/home/user1/fl/lib/python3.9/site-packages/tensorflow_federated/python/core/impl/executors/federating_executor.py", line 143, in compute_federated_intrinsic
return await fn(arg) # pylint: disable=not-callable
File "/home/user1/fl/lib/python3.9/site-packages/tensorflow_federated/python/common_libs/tracing.py", line 201, in async_trace
result = await fn(*fn_args, **fn_kwargs)
File "/home/user1/fl/lib/python3.9/site-packages/tensorflow_federated/python/core/impl/executors/federated_resolving_strategy.py", line 459, in compute_federated_map
return await self._map(arg, all_equal=False)
File "/home/user1/fl/lib/python3.9/site-packages/tensorflow_federated/python/common_libs/tracing.py", line 201, in async_trace
result = await fn(*fn_args, **fn_kwargs)
File "/home/user1/fl/lib/python3.9/site-packages/tensorflow_federated/python/core/impl/executors/federated_resolving_strategy.py", line 340, in _map
results = await asyncio.gather(*[
File "/home/user1/anaconda3/lib/python3.9/asyncio/tasks.py", line 328, in __wakeup
future.result()
File "/home/user1/anaconda3/lib/python3.9/asyncio/tasks.py", line 258, in __step
result = coro.throw(exc)
File "/home/user1/fl/lib/python3.9/site-packages/tensorflow_federated/python/core/impl/executors/federated_resolving_strategy.py", line 337, in _map_child
fn_at_child = await child.create_value(fn, fn_type)
File "/home/user1/fl/lib/python3.9/site-packages/tensorflow_federated/python/common_libs/tracing.py", line 201, in async_trace
result = await fn(*fn_args, **fn_kwargs)
File "/home/user1/fl/lib/python3.9/site-packages/tensorflow_federated/python/core/impl/executors/thread_delegating_executor.py", line 92, in create_value
return await self._delegate(
File "/home/user1/fl/lib/python3.9/site-packages/tensorflow_federated/python/core/impl/executors/thread_delegating_executor.py", line 87, in _delegate
result_value = await _delegate_with_trace_ctx(coro, self._async_runner)
File "/home/user1/fl/lib/python3.9/site-packages/tensorflow_federated/python/common_libs/async_utils.py", line 227, in await_coro_and_return_result
return await asyncio.wrap_future(
File "/home/user1/anaconda3/lib/python3.9/asyncio/futures.py", line 284, in __await__
yield self # This tells Task to wait for completion.
File "/home/user1/anaconda3/lib/python3.9/asyncio/tasks.py", line 328, in __wakeup
future.result()
File "/home/user1/anaconda3/lib/python3.9/asyncio/futures.py", line 201, in result
raise self._exception
File "/home/user1/anaconda3/lib/python3.9/asyncio/tasks.py", line 256, in __step
result = coro.send(None)
File "/home/user1/fl/lib/python3.9/site-packages/tensorflow_federated/python/common_libs/tracing.py", line 391, in _wrapped
return await coro
File "/home/user1/fl/lib/python3.9/site-packages/tensorflow_federated/python/common_libs/tracing.py", line 201, in async_trace
result = await fn(*fn_args, **fn_kwargs)
File "/home/user1/fl/lib/python3.9/site-packages/tensorflow_federated/python/core/impl/executors/eager_tf_executor.py", line 682, in create_value
normalized_value = to_representation_for_type(value,
File "/home/user1/fl/lib/python3.9/site-packages/tensorflow_federated/python/common_libs/tracing.py", line 228, in sync_trace
result = fn(*fn_args, **fn_kwargs)
File "/home/user1/fl/lib/python3.9/site-packages/tensorflow_federated/python/core/impl/executors/eager_tf_executor.py", line 518, in to_representation_for_type
return _to_computation_internal_rep(
File "/home/user1/fl/lib/python3.9/site-packages/tensorflow_federated/python/common_libs/tracing.py", line 228, in sync_trace
result = fn(*fn_args, **fn_kwargs)
File "/home/user1/fl/lib/python3.9/site-packages/tensorflow_federated/python/core/impl/executors/eager_tf_executor.py", line 404, in _to_computation_internal_rep
embedded_fn = embed_tensorflow_computation(value, type_spec, device)
File "/home/user1/fl/lib/python3.9/site-packages/tensorflow_federated/python/common_libs/tracing.py", line 228, in sync_trace
result = fn(*fn_args, **fn_kwargs)
File "/home/user1/fl/lib/python3.9/site-packages/tensorflow_federated/python/core/impl/executors/eager_tf_executor.py", line 272, in embed_tensorflow_computation
comp = _ensure_comp_runtime_compatible(comp)
File "/home/user1/fl/lib/python3.9/site-packages/tensorflow_federated/python/core/impl/executors/eager_tf_executor.py", line 245, in _ensure_comp_runtime_compatible
_check_dataset_reduce_for_multi_gpu(graph_def)
File "/home/user1/fl/lib/python3.9/site-packages/tensorflow_federated/python/core/impl/executors/eager_tf_executor.py", line 63, in _check_dataset_reduce_for_multi_gpu
raise ValueError(
ValueError: Detected dataset reduce op in multi-GPU TFF simulation: `use_experimental_simulation_loop=True` for `tff.learning`; or use `for ... in iter(dataset)` for your own dataset iterations. See https://www.tensorflow.org/federated/tutorials/simulations_with_accelerators for examples.
Earlier, the code was working fine, but after GPU rebooted, code started giving warnings and errors. Using use_experimental_simulation_loop=True in tff.learning works fine, but in tff.templates.IterativeProcess, there is no such argument. Does anyone know how to solve this problem?
Related
odoo plm module problem when create a new revision when i press start newrevision get error
plm module problem when create a new revision when i press start newrevision get error Error:Odoo Server ErrorTraceback (most recent call last): File "/odoo/odoo/odoo/api.py", line 1049, in get value = self._data[key][field][record._ids[0]]KeyError: 1245During handling of the above exception, another exception occurred:Traceback (most recent call last): File "/odoo/odoo/odoo/fields.py", line 1065, in get value = record.env.cache.get(record, self) File "/odoo/odoo/odoo/api.py", line 1051, in get raise CacheMiss(record, field)odoo.exceptions.CacheMiss: ('mrp.bom(1245,).is_allowed_to_modif_unit', None)During handling of the above exception, another exception occurred:Traceback (most recent call last): File "/odoo/odoo/odoo/models.py", line 4765, in ensure_one _id, = self._idsValueError: too many values to unpack (expected 1)During handling of the above exception, another exception occurred:Traceback (most recent call last): File "/odoo/odoo/odoo/http.py", line 656, in _handle_exception return super(JsonRequest, self)._handle_exception(exception) File "/odoo/odoo/odoo/http.py", line 314, in _handle_exception raise pycompat.reraise(type(exception), exception, sys.exc_info()[2]) File "/odoo/odoo/odoo/tools/pycompat.py", line 87, in reraise raise value File "/odoo/odoo/odoo/http.py", line 698, in dispatch result = self._call_function(**self.params) File "/odoo/odoo/odoo/http.py", line 346, in _call_function return checked_call(self.db, *args, **kwargs) File "/odoo/odoo/odoo/service/model.py", line 98, in wrapper return f(dbname, *args, **kwargs) File "/odoo/odoo/odoo/http.py", line 339, in checked_call result = self.endpoint(*a, **kw) File "/odoo/odoo/odoo/http.py", line 941, in call return self.method(*args, **kw) File "/odoo/odoo/odoo/http.py", line 519, in response_wrap response = f(*args, **kw) File "/odoo/odoo/addons/web/controllers/main.py", line 967, in call_button action = self._call_kw(model, method, args, {}) File "/odoo/odoo/addons/web/controllers/main.py", line 955, in _call_kw return call_kw(request.env[model], method, args, kwargs) File "/odoo/odoo/odoo/api.py", line 759, in call_kw return _call_kw_multi(method, model, args, kwargs) File "/odoo/odoo/odoo/api.py", line 746, in _call_kw_multi result = method(recs, *args, **kwargs) File "/odoo/Enterprise/mrp_plm/models/mrp_eco.py", line 586, in action_new_revision 'previous_bom_id': eco.bom_id.id, File "/odoo/odoo/odoo/models.py", line 4336, in copy new = self.with_context(lang=None).create(vals) File "", line 2, in create File "/odoo/odoo/odoo/api.py", line 440, in _model_create_single return create(self, arg) File "/odoo/mycompany/mrp_production_draft/models/mrp_production.py", line 954, in create res = super(MrpBom, self).create(values) File "", line 2, in create File "/odoo/odoo/odoo/api.py", line 461, in _model_create_multi return create(self, [arg]) File "/odoo/odoo/addons/mail/models/mail_thread.py", line 298, in create thread.message_track(tracked_fields, initial_values) File "/odoo/odoo/addons/mail/models/mail_thread.py", line 640, in message_track tracking = self._message_track_get_changes(tracked_fields, initial_values) File "/odoo/odoo/addons/mail/models/mail_thread.py", line 601, in _message_track_get_changes result[record.id] = record._message_track(tracked_fields, initial_values[record.id]) File "/odoo/odoo/addons/mail/models/mail_thread.py", line 618, in _message_track new_value = getattr(self, col_name) File "/odoo/odoo/odoo/fields.py", line 1069, in get self.determine_value(record) File "/odoo/odoo/odoo/fields.py", line 1182, in determine_value self.compute_value(recs) File "/odoo/odoo/odoo/fields.py", line 1136, in compute_value self._compute_value(records) File "/odoo/odoo/odoo/fields.py", line 1127, in _compute_value getattr(records, self.compute)() File "/odoo/mycompany/mrp_production_draft/models/mrp_production.py", line 945, in get_user self.is_allowed_to_modif_unit = True File "/odoo/odoo/odoo/fields.py", line 1084, in set record.ensure_one() File "/odoo/odoo/odoo/models.py", line 4768, in ensure_one raise ValueError("Expected singleton: %s" % self)ValueError: Expected singleton: mrp.bom(1245, 26) plm module problem when create a new revision when i press start newrevision get error and cannot add role and user empty i cannnot put anything on role
New model added via Studio causes a KeyError on a computed field
[Odoo v13 cloud edition] I've added a new model via Studio: crm.lead.activities. In that model I have a computed field x_name: Dependencies: x_res_id, x_date, x_activity_type_id Compute: for record in self: record['x_name'] = record.x_res_id.name + ' / ' + str(record.x_date) + ' / ' + record.x_activity_type_id.name x_res_id is a many2one field to crm.lead But when I try to (un)install a module, I get a KeyError. What can I do to solve this? Odoo Server Error Traceback (most recent call last): File "/home/odoo/src/odoo/13.0/odoo/http.py", line 624, in _handle_exception return super(JsonRequest, self)._handle_exception(exception) File "/home/odoo/src/odoo/13.0/odoo/http.py", line 310, in _handle_exception raise pycompat.reraise(type(exception), exception, sys.exc_info()[2]) File "/home/odoo/src/odoo/13.0/odoo/tools/pycompat.py", line 14, in reraise raise value File "/home/odoo/src/odoo/13.0/odoo/http.py", line 669, in dispatch result = self._call_function(**self.params) File "/home/odoo/src/odoo/13.0/odoo/http.py", line 350, in _call_function return checked_call(self.db, *args, **kwargs) File "/home/odoo/src/odoo/13.0/odoo/service/model.py", line 94, in wrapper return f(dbname, *args, **kwargs) File "/home/odoo/src/odoo/13.0/odoo/http.py", line 339, in checked_call result = self.endpoint(*a, **kw) File "/home/odoo/src/odoo/13.0/odoo/http.py", line 915, in __call__ return self.method(*args, **kw) File "/home/odoo/src/odoo/13.0/odoo/http.py", line 515, in response_wrap response = f(*args, **kw) File "/home/odoo/src/odoo/13.0/addons/web/controllers/main.py", line 1326, in call_button action = self._call_kw(model, method, args, kwargs) File "/home/odoo/src/odoo/13.0/addons/web/controllers/main.py", line 1314, in _call_kw return call_kw(request.env[model], method, args, kwargs) File "/home/odoo/src/odoo/13.0/odoo/api.py", line 387, in call_kw result = _call_kw_multi(method, model, args, kwargs) File "/home/odoo/src/odoo/13.0/odoo/api.py", line 374, in _call_kw_multi result = method(recs, *args, **kwargs) File "<decorator-gen-66>", line 2, in button_immediate_upgrade File "/home/odoo/src/odoo/13.0/odoo/addons/base/models/ir_module.py", line 72, in check_and_log return method(self, *args, **kwargs) File "/home/odoo/src/odoo/13.0/odoo/addons/base/models/ir_module.py", line 634, in button_immediate_upgrade return self._button_immediate_function(type(self).button_upgrade) File "/home/odoo/src/custom/trial/saas_trial/models/module.py", line 99, in _button_immediate_function res = super(IrModuleModule, self)._button_immediate_function(function) File "/home/odoo/src/odoo/13.0/odoo/addons/base/models/ir_module.py", line 573, in _button_immediate_function modules.registry.Registry.new(self._cr.dbname, update_module=True) File "/home/odoo/src/odoo/13.0/odoo/modules/registry.py", line 86, in new odoo.modules.load_modules(registry._db, force_demo, status, update_module) File "/home/odoo/src/odoo/13.0/odoo/modules/loading.py", line 369, in load_modules registry.setup_models(cr) File "/home/odoo/src/odoo/13.0/odoo/modules/registry.py", line 290, in setup_models for path in transitive_dependencies(field): File "/home/odoo/src/odoo/13.0/odoo/modules/registry.py", line 276, in transitive_dependencies for seq2 in transitive_dependencies(seq1[-1], seen + [field]): File "/home/odoo/src/odoo/13.0/odoo/modules/registry.py", line 272, in transitive_dependencies for seq1 in dependencies[field]: KeyError: x_crm.lead.activities.x_name
Odoo crashes when creating several records at the same time
I have created a method where I import a csv file and I create new records with the data it contains. The method works with as csv with around 1000 lines. (The method can create around 1000 new records), but when the csv file have more than 1200 lines, Odoo server crashes and I have to restart the server. Here is my method and the odoo log #api.multi #profile def action_import_csv(self): cuenta = 0 self._chequear_extension_csv(self.archivo_filename) res = base64.b64decode(self.archivo) text = res.decode("UTF-8") reader = csv.DictReader(io.StringIO(text)) brigadista = self.env['utepda_brigadas.brigadista'] brigada = self.env['utepda_brigadas.brigada'] brigada_cr = self.env.cr brigadista_brigada = self.env['utepda_brigadas.brigadista_brigada'] count = 0 campos = [ 'BRIGADA', 'NOMBRE', 'CEDULA', 'CARGO', 'JORNALES', 'COSTO_JORNADA' ] rows = list(reader) totalrows = len(rows) print("La cantidad de filas es {}".format(totalrows)) for index,row in enumerate(rows): print("Index -> {} -> {}".format(index,row)) if count == 0: count = 1 self._chequear_campos_csv(campos, row.keys()) else: codigo_brigada = row['BRIGADA'] nombre = row['NOMBRE'] cedula = row['CEDULA'].replace('-', '') cargo = row['CARGO'] dias_trabajados = row['JORNALES'] total_jornada = row['COSTO_JORNADA'] fecha = self.fecha total = int(dias_trabajados) * int(total_jornada) existe_brigadista = brigadista.search([['cedula', '=', cedula]],limit=1) brigada_actual = brigada.search([['codigo', '=', codigo_brigada]],limit=1) #brigada_cr.execute( # "SELECT id FROM public.utepda_brigada_brigada WHERE codigo=%s" # % codigo_brigada) #res = brigada_cr.fetchone() #brigada_actual = brigada.search([['codigo', '=', codigo_brigada]], #limit=1) #brigada_actual = res[0] if not existe_brigadista.id: new = { 'name': nombre, 'cedula': cedula, 'cargo': cargo, 'estado': "nuevo", 'brigada_ids': [(0, _, { 'fecha': fecha, 'dias_trabajados': dias_trabajados, 'total': total, 'brigada_id': brigada_actual.id })] } nuevo_brigadista = brigadista.create(new) if nuevo_brigadista.id: cuenta = cuenta+1 print("""{} Se ha insertado el brigadista {} con nombre {}""".format(cuenta,nuevo_brigadista.id, nuevo_brigadista.name)) #existe_brigadista = existe_brigadista[0] else: existe_brigadista.write({ 'estado': "reportado", 'brigada_ids': [(0, _, { 'fecha': fecha, 'dias_trabajados': dias_trabajados, 'total': total, 'brigada_id': brigada_actual.id })] }) fecha_format = datetime.strftime(self.fecha, '%m/%Y') no_reportados = brigadista.search( [['fecha_ultimo_reporte', '!=', fecha_format]]) no_reportados.write({'estado': "no_reportado"}) return { 'type': 'ir.actions.client', 'tag': 'reload', } Here is the Odoo log 2020-11-04 11:44:23,285 15044 WARNING odoo odoo.service.server: Thread <Thread(odoo.service.http.request.140355723687680, started 140355723687680)> virtual real time limit (152/120s) reached. 2020-11-04 11:44:23,289 15044 INFO odoo odoo.service.server: Dumping stacktrace of limit exceeding threads before reloading 2020-11-04 11:44:23,520 15044 INFO odoo odoo.tools.misc: # Thread: <Thread(odoo.service.http.request.140355723687680, started 140355723687680)> (db:odoo) (uid:2) (url:http://localhost:8069/web/dataset/call_button) File: "/home/ernesto/.vscode/extensions/ms-python.python-2020.5.86806/pythonFiles/lib/python/debugpy/no_wheels/debugpy/_vendored/pydevd/_pydev_bundle/pydev_monkey.py", line 823, in __call__ ret = self.original_func(*self.args, **self.kwargs) File: "/usr/lib/python3.6/threading.py", line 884, in _bootstrap self._bootstrap_inner() File: "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner self.run() File: "/usr/lib/python3.6/threading.py", line 864, in run self._target(*self._args, **self._kwargs) File: "/usr/lib/python3.6/socketserver.py", line 654, in process_request_thread self.finish_request(request, client_address) File: "/usr/lib/python3.6/socketserver.py", line 364, in finish_request self.RequestHandlerClass(request, client_address, self) File: "/usr/lib/python3.6/socketserver.py", line 724, in __init__ self.handle() File: "/usr/local/lib/python3.6/dist-packages/werkzeug/serving.py", line 228, in handle rv = BaseHTTPRequestHandler.handle(self) File: "/usr/lib/python3.6/http/server.py", line 418, in handle self.handle_one_request() File: "/usr/local/lib/python3.6/dist-packages/werkzeug/serving.py", line 263, in handle_one_request return self.run_wsgi() File: "/usr/local/lib/python3.6/dist-packages/werkzeug/serving.py", line 205, in run_wsgi execute(self.server.app) File: "/usr/local/lib/python3.6/dist-packages/werkzeug/serving.py", line 193, in execute application_iter = app(environ, start_response) File: "/home/ernesto/odoo12/odoo/service/server.py", line 434, in app return self.app(e, s) File: "/home/ernesto/odoo12/odoo/service/wsgi_server.py", line 142, in application return application_unproxied(environ, start_response) File: "/home/ernesto/odoo12/odoo/service/wsgi_server.py", line 117, in application_unproxied result = odoo.http.root(environ, start_response) File: "/home/ernesto/odoo12/odoo/http.py", line 1320, in __call__ return self.dispatch(environ, start_response) File: "/home/ernesto/odoo12/odoo/http.py", line 1293, in __call__ return self.app(environ, start_wrapped) File: "/usr/local/lib/python3.6/dist-packages/werkzeug/wsgi.py", line 599, in __call__ return self.app(environ, start_response) File: "/home/ernesto/odoo12/odoo/http.py", line 1488, in dispatch result = ir_http._dispatch() File: "/home/ernesto/odoo12/addons/auth_signup/models/ir_http.py", line 19, in _dispatch return super(Http, cls)._dispatch() File: "/home/ernesto/odoo12/addons/web_editor/models/ir_http.py", line 22, in _dispatch return super(IrHttp, cls)._dispatch() File: "/home/ernesto/odoo12/odoo/addons/base/models/ir_http.py", line 203, in _dispatch result = request.dispatch() File: "/home/ernesto/odoo12/odoo/http.py", line 698, in dispatch result = self._call_function(**self.params) File: "/home/ernesto/odoo12/odoo/http.py", line 346, in _call_function return checked_call(self.db, *args, **kwargs) File: "/home/ernesto/odoo12/odoo/service/model.py", line 98, in wrapper return f(dbname, *args, **kwargs) File: "/home/ernesto/odoo12/odoo/http.py", line 339, in checked_call result = self.endpoint(*a, **kw) File: "/home/ernesto/odoo12/odoo/http.py", line 941, in __call__ return self.method(*args, **kw) File: "/home/ernesto/odoo12/odoo/http.py", line 519, in response_wrap response = f(*args, **kw) File: "/home/ernesto/odoo12/addons/web/controllers/main.py", line 966, in call_button action = self._call_kw(model, method, args, {}) File: "/home/ernesto/odoo12/addons/web/controllers/main.py", line 954, in _call_kw return call_kw(request.env[model], method, args, kwargs) File: "/home/ernesto/odoo12/odoo/api.py", line 759, in call_kw return _call_kw_multi(method, model, args, kwargs) File: "/home/ernesto/odoo12/odoo/api.py", line 746, in _call_kw_multi result = method(recs, *args, **kwargs) File: "<decorator-gen-127>", line 2, in action_import_csv File: "/home/ernesto/odoo12/odoo/tools/profiler.py", line 128, in _odooProfile result = method(*args, **kwargs) File: "/home/ernesto/odoo12/extra_addons/utepda_brigadas/models/model_wizard.py", line 81, in action_import_csv nuevo_brigadista = brigadista.create(new) File: "<decorator-gen-111>", line 2, in create File: "/home/ernesto/odoo12/odoo/api.py", line 461, in _model_create_multi return create(self, [arg]) File: "/home/ernesto/odoo12/addons/mail/models/mail_thread.py", line 278, in create thread._message_log(body=_('%s created') % doc_name) File: "/home/ernesto/odoo12/addons/mail/models/mail_thread.py", line 2230, in _message_log message = self.env['mail.message'].sudo().create(message_values) File: "<decorator-gen-107>", line 2, in create File: "/home/ernesto/odoo12/odoo/api.py", line 440, in _model_create_single return create(self, arg) File: "/home/ernesto/odoo12/addons/mail/models/mail_message.py", line 990, in create message = super(Message, self).create(values) File: "<decorator-gen-3>", line 2, in create File: "/home/ernesto/odoo12/odoo/api.py", line 461, in _model_create_multi return create(self, [arg]) File: "/home/ernesto/odoo12/odoo/models.py", line 3583, in create records = self._create(data_list) File: "/home/ernesto/odoo12/odoo/models.py", line 3669, in _create col_val = field.convert_to_column(val, self, stored) File: "/home/ernesto/odoo12/odoo/fields.py", line 1555, in convert_to_column strip_classes=self.strip_classes) File: "/home/ernesto/odoo12/odoo/tools/mail.py", line 227, in html_sanitize cleaned = cleaner.clean_html(src) File: "/usr/local/lib/python3.6/dist-packages/lxml/html/clean.py", line 517, in clean_html doc = fromstring(html) File: "/usr/local/lib/python3.6/dist-packages/lxml/html/__init__.py", line 876, in fromstring doc = document_fromstring(html, parser=parser, base_url=base_url, **kw) File: "/usr/local/lib/python3.6/dist-packages/lxml/html/__init__.py", line 762, in document_fromstring value = etree.fromstring(html, parser, **kw) 2020-11-04 11:44:23,522 15044 INFO odoo odoo.service.server: Initiating server reload
It's probably timing out due to the sheer amount of records. Add the following to your config file, but play around with the settings to see what works best for you. --limit-time-real 10000 limit_time_real = 480 I would also increase workers if you can to not slow down the Odoo https://www.odoo.com/documentation/14.0/setup/deploy.html#builtin-server
Odoo 12 Server Error KeyError: 'crm.Stage'
I am a starter in odoo. Can anyone help me to find a solution for the problem mentioned below? In CRM Module I'm getting this below this error when I save any record in CRM Module, it was working fine for a while but idk after sometime when I create or change any record this error pops up Error: Odoo Server Error Traceback (most recent call last): File "/opt/odoo/odoo-12.0/odoo/http.py", line 656, in _handle_exception return super(JsonRequest, self)._handle_exception(exception) File "/opt/odoo/odoo-12.0/odoo/http.py", line 314, in _handle_exception raise pycompat.reraise(type(exception), exception, sys.exc_info()[2]) File "/opt/odoo/odoo-12.0/odoo/tools/pycompat.py", line 87, in reraise raise value File "/opt/odoo/odoo-12.0/odoo/http.py", line 698, in dispatch result = self._call_function(**self.params) File "/opt/odoo/odoo-12.0/odoo/http.py", line 346, in _call_function return checked_call(self.db, *args, **kwargs) File "/opt/odoo/odoo-12.0/odoo/service/model.py", line 98, in wrapper return f(dbname, *args, **kwargs) File "/opt/odoo/odoo-12.0/odoo/http.py", line 339, in checked_call result = self.endpoint(*a, **kw) File "/opt/odoo/odoo-12.0/odoo/http.py", line 941, in __call__ return self.method(*args, **kw) File "/opt/odoo/odoo-12.0/odoo/http.py", line 519, in response_wrap response = f(*args, **kw) File "/opt/odoo/odoo-12.0/addons/web/controllers/main.py", line 962, in call_kw return self._call_kw(model, method, args, kwargs) File "/opt/odoo/odoo-12.0/addons/web/controllers/main.py", line 954, in _call_kw return call_kw(request.env[model], method, args, kwargs) File "/opt/odoo/odoo-12.0/odoo/api.py", line 757, in call_kw return _call_kw_model_create(method, model, args, kwargs) File "/opt/odoo/odoo-12.0/odoo/api.py", line 737, in _call_kw_model_create result = method(recs, *args, **kwargs) File "<decorator-gen-260>", line 2, in create File "/opt/odoo/odoo-12.0/odoo/api.py", line 461, in _model_create_multi return create(self, [arg]) File "/opt/odoo/odoo-12.0/addons/base_automation/models/base_automation.py", line 228, in create records = create.origin(self.with_env(actions.env), vals_list, **kw) File "<decorator-gen-116>", line 2, in create File "/opt/odoo/odoo-12.0/odoo/api.py", line 462, in _model_create_multi return create(self, arg) File "/opt/odoo/odoo-12.0/addons/mail/models/mail_thread.py", line 272, in create threads = super(MailThread, self).create(vals_list) File "<decorator-gen-3>", line 2, in create File "/opt/odoo/odoo-12.0/odoo/api.py", line 462, in _model_create_multi return create(self, arg) File "/opt/odoo/odoo-12.0/odoo/models.py", line 3534, in create vals = self._add_missing_default_values(vals) File "/opt/odoo/odoo-12.0/odoo/models.py", line 1700, in _add_missing_default_values defaults = self.default_get(list(missing_defaults)) File "/opt/odoo/odoo-12.0/odoo/models.py", line 1168, in default_get defaults[name] = field.default(self) File "/opt/odoo/odoo-12.0/crm_internal_new/crm_extended/models/crm_lead_extended.py", line 37, in get_default_won_id1 return self.env['crm.Stage'].search([('name', '=', 'Won')]).id File "/opt/odoo/odoo-12.0/odoo/api.py", line 831, in __getitem__ return self.registry[model_name]._browse((), self) File "/opt/odoo/odoo-12.0/odoo/modules/registry.py", line 176, in __getitem__ return self.models[model_name] KeyError: 'crm.Stage'
OpenERP - ValueError: No such external ID currently defined in the system: project.group_project_manager
I am new to OpenERP. I am getting this error while installing Project Management Module. am not able to find where it went wrong. Here is the error log:` K-SOFT ERP Server Error Client Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/openerp-7.0_20130301_002301-py2.6.egg/openerp/addons/web/http.py", line 195, in dispatch response["result"] = method(self, **self.params) File "/usr/lib/python2.6/site-packages/openerp-7.0_20130301_002301-py2.6.egg/openerp/addons/web/controllers/main.py", line 1083, in call_button action = self._call_kw(req, model, method, args, {}) File "/usr/lib/python2.6/site-packages/openerp-7.0_20130301_002301-py2.6.egg/openerp/addons/web/controllers/main.py", line 1071, in _call_kw return getattr(req.session.model(model), method)(*args, **kwargs) File "/usr/lib/python2.6/site-packages/openerp-7.0_20130301_002301-py2.6.egg/openerp/addons/web/session.py", line 43, in proxy result = self.proxy.execute_kw(self.session._db, self.session._uid, self.session._password, self.model, method, args, kw) File "/usr/lib/python2.6/site-packages/openerp-7.0_20130301_002301-py2.6.egg/openerp/addons/web/session.py", line 31, in proxy_method result = self.session.send(self.service_name, method, *args) File "/usr/lib/python2.6/site-packages/openerp-7.0_20130301_002301-py2.6.egg/openerp/addons/web/session.py", line 104, in send raise xmlrpclib.Fault(openerp.tools.ustr(e), formatted_info) Server Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/openerp-7.0_20130301_002301-py2.6.egg/openerp/addons/web/session.py", line 90, in send return openerp.netsvc.dispatch_rpc(service_name, method, args) File "/usr/lib/python2.6/site-packages/openerp-7.0_20130301_002301-py2.6.egg/openerp/netsvc.py", line 295, in dispatch_rpc result = ExportService.getService(service_name).dispatch(method, params) File "/usr/lib/python2.6/site-packages/openerp-7.0_20130301_002301-py2.6.egg/openerp/service/web_services.py", line 614, in dispatch res = fn(db, uid, *params) File "/usr/lib/python2.6/site-packages/openerp-7.0_20130301_002301-py2.6.egg/openerp/osv/osv.py", line 188, in execute_kw return self.execute(db, uid, obj, method, *args, **kw or {}) File "/usr/lib/python2.6/site-packages/openerp-7.0_20130301_002301-py2.6.egg/openerp/osv/osv.py", line 131, in wrapper return f(self, dbname, *args, **kwargs) File "/usr/lib/python2.6/site-packages/openerp-7.0_20130301_002301-py2.6.egg/openerp/osv/osv.py", line 198, in execute res = self.execute_cr(cr, uid, obj, method, *args, **kw) File "/usr/lib/python2.6/site-packages/openerp-7.0_20130301_002301-py2.6.egg/openerp/osv/osv.py", line 185, in execute_cr return getattr(object, method)(cr, uid, *args, **kw) File "/usr/lib/python2.6/site-packages/openerp-7.0_20130301_002301-py2.6.egg/openerp/addons/base/module/module.py", line 425, in button_immediate_install return self._button_immediate_function(cr, uid, ids, self.button_install, context=context) File "/usr/lib/python2.6/site-packages/openerp-7.0_20130301_002301-py2.6.egg/openerp/addons/base/module/module.py", line 476, in _button_immediate_function _, pool = pooler.restart_pool(cr.dbname, update_module=True) File "/usr/lib/python2.6/site-packages/openerp-7.0_20130301_002301-py2.6.egg/openerp/pooler.py", line 39, in restart_pool registry = RegistryManager.new(db_name, force_demo, status, update_module) File "/usr/lib/python2.6/site-packages/openerp-7.0_20130301_002301-py2.6.egg/openerp/modules/registry.py", line 214, in new openerp.modules.load_modules(registry.db, force_demo, status, update_module) File "/usr/lib/python2.6/site-packages/openerp-7.0_20130301_002301-py2.6.egg/openerp/modules/loading.py", line 347, in load_modules processed = load_marked_modules(cr, graph, states_to_load, force, status, report, loaded_modules, update_module) File "/usr/lib/python2.6/site-packages/openerp-7.0_20130301_002301-py2.6.egg/openerp/modules/loading.py", line 258, in load_marked_modules loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks) File "/usr/lib/python2.6/site-packages/openerp-7.0_20130301_002301-py2.6.egg/openerp/modules/loading.py", line 189, in load_module_graph load_update_xml(module_name, idref, mode) File "/usr/lib/python2.6/site-packages/openerp-7.0_20130301_002301-py2.6.egg/openerp/modules/loading.py", line 73, in <lambda> load_update_xml = lambda *args: _load_data(cr, *args, kind='update_xml') File "/usr/lib/python2.6/site-packages/openerp-7.0_20130301_002301-py2.6.egg/openerp/modules/loading.py", line 126, in _load_data tools.convert_xml_import(cr, module_name, fp, idref, mode, noupdate, report) File "/usr/lib/python2.6/site-packages/openerp-7.0_20130301_002301-py2.6.egg/openerp/tools/convert.py", line 954, in convert_xml_import obj.parse(doc.getroot()) File "/usr/lib/python2.6/site-packages/openerp-7.0_20130301_002301-py2.6.egg/openerp/tools/convert.py", line 847, in parse self._tags[rec.tag](self.cr, rec, n) File "/usr/lib/python2.6/site-packages/openerp-7.0_20130301_002301-py2.6.egg/openerp/tools/convert.py", line 652, in _tag_menuitem group_id = self.id_get(cr, group) File "/usr/lib/python2.6/site-packages/openerp-7.0_20130301_002301-py2.6.egg/openerp/tools/convert.py", line 824, in id_get res = self.model_id_get(cr, id_str) File "/usr/lib/python2.6/site-packages/openerp-7.0_20130301_002301-py2.6.egg/openerp/tools/convert.py", line 833, in model_id_get return model_data_obj.get_object_reference(cr, self.uid, mod, id_str) File "/usr/lib/python2.6/site-packages/openerp-7.0_20130301_002301-py2.6.egg/openerp/tools/cache.py", line 18, in lookup r = self.lookup(self2, cr, *args) File "/usr/lib/python2.6/site-packages/openerp-7.0_20130301_002301-py2.6.egg/openerp/tools/cache.py", line 46, in lookup value = d[key] = self.method(self2, cr, *args) File "/usr/lib/python2.6/site-packages/openerp-7.0_20130301_002301-py2.6.egg/openerp/addons/base/ir/ir_model.py", line 865, in get_object_reference data_id = self._get_id(cr, uid, module, xml_id) File "/usr/lib/python2.6/site-packages/openerp-7.0_20130301_002301-py2.6.egg/openerp/tools/cache.py", line 18, in lookup r = self.lookup(self2, cr, *args) File "/usr/lib/python2.6/site-packages/openerp-7.0_20130301_002301-py2.6.egg/openerp/tools/cache.py", line 46, in lookup value = d[key] = self.method(self2, cr, *args) File "/usr/lib/python2.6/site-packages/openerp-7.0_20130301_002301-py2.6.egg/openerp/addons/base/ir/ir_model.py", line 858, in _get_id raise ValueError('No such external ID currently defined in the system: %s.%s' % (module, xml_id)) ValueError: No such external ID currently defined in the system: project.group_project_manager Can I have any suggestions regarding this?