why this error occurs 'reset modules states' in odoo 10 - python

I am getting this error in odoo10 enterprise?
any suggestions to solve this?
Traceback (most recent call last):
File "/home/odoodev/odoo10Enter/la10e/addons/base/ir/ir_cron.py", line 285, in _acquire_job
cls._process_jobs(db_name)
File "/home/odoodev/odoo10Enter/la10e/addons/base/ir/ir_cron.py", line 222, in _process_jobs
odoo.modules.reset_modules_state(db_name)
AttributeError: 'module' object has no attribute 'reset_modules_state'
2019-09-23 04:52:19,215 3048 WARNING ? odoo.addons.base.ir.ir_cron: Exception in cron:
Traceback (most recent call last):
File "/home/odoodev/odoo10Enter/la10e/addons/base/ir/ir_cron.py", line 285, in _acquire_job
cls._process_jobs(db_name)
File "/home/odoodev/odoo10Enter/la10e/addons/base/ir/ir_cron.py", line 222, in _process_jobs
odoo.modules.reset_modules_state(db_name)
AttributeError: 'module' object has no attribute 'reset_modules_states'

Related

Why there is STAFRegister error in PySTAF.py?

I am getting the below error. I have used capital letters PYSTAF too, still getting the same error.
Traceback (most recent call last):
File "C:\Python27\STAFtest.py", line 16, in <module>
handle = STAFHandle("Lang/Python/Test/Basic")
File "D:\STAF\bin\PySTAF.py", line 137, in __init__
rc, self.handle = PySTAF.STAFRegister(handleNameOrNumber)
AttributeError: 'module' object has no attribute 'STAFRegister'

SystemError exception occurs when running click.confirm

I am trying to run a click.confirm() command. It works when I run the file stand-alone, but when I call the function from another module I get a SystemError
Traceback (most recent call last):
File "/home/usr/.local/lib/python3.6/site-packages/click/_compat.py", line 108, in __getattr__
return getattr(self._stream, name)
File "/home/usr/.vscode-server/extensions/ms-python.python-2022.6.0/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_io.py", line 59, in __getattr__
raise AttributeError(name)
AttributeError: closed
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/usr/.local/lib/python3.6/site-packages/click/termui.py", line 231, in confirm
echo(prompt.rstrip(" "), nl=False, err=err)
File "/home/usr/.local/lib/python3.6/site-packages/click/utils.py", line 298, in echo
file.write(out) # type: ignore
SystemError: <built-in method write of _NonClosingTextIOWrapper object at 0x7f20e85ea048> returned a result with an error set
I run my program on a computer over SSH using the vscode extension

AttributeError: 'GoogleImageScraper' object has no attribute 'driver'

So, i'm trying to make a face comparision with python and a google image scaper but I don't know why I'm getting this error:
Traceback (most recent call last):
File "c:\Users\..\Desktop\face_recognition\main.py", line 79, in find_image_urls
self.driver.get(self.url)
AttributeError: 'GoogleImageScraper' object has no attribute 'driver'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\Users\..\Desktop\face_recognition\main.py", line 189, in <module>
image_urls = image_scrapper.find_image_urls()
File "c:\Users\..\Desktop\face_recognition\main.py", line 81, in find_image_urls
self.driver.get(url=self.url)
AttributeError: 'GoogleImageScraper' object has no attribute 'driver'
My main.py file
Please help me this is very important.

Debugger not functioning in pycharm

enter image description hereI'm trying to debug this py file that I have but the console throws this
Traceback (most recent call last):
File "/Applications/PyCharm CE.app/Contents/plugins/python-ce/helpers/pydev/_pydevd_bundle/pydevd_process_net_command.py", line 891, in process_net_command
py_db.writer.add_command(cmd)
File "/Applications/PyCharm CE.app/Contents/plugins/python-ce/helpers/pydev/_pydevd_bundle/pydevd_comm.py", line 355, in add_command
self.cmdQueue.put(cmd)
AttributeError: 'Queue' object has no attribute 'put'
Traceback (most recent call last):
File "/Applications/PyCharm CE.app/Contents/plugins/python-ce/helpers/pydev/_pydevd_bundle/pydevd_process_net_command.py", line 891, in process_net_command
py_db.writer.add_command(cmd)
File "/Applications/PyCharm CE.app/Contents/plugins/python-ce/helpers/pydev/_pydevd_bundle/pydevd_comm.py", line 355, in add_command
self.cmdQueue.put(cmd)
AttributeError: 'Queue' object has no attribute 'put'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Applications/PyCharm CE.app/Contents/plugins/python-ce/helpers/pydev/_pydevd_bundle/pydevd_comm.py", line 318, in _on_run
self.process_command(cmd_id, int(args[1]), args[2])
File "/Applications/PyCharm CE.app/Contents/plugins/python-ce/helpers/pydev/_pydevd_bundle/pydevd_comm.py", line 333, in process_command
self.process_net_command(self.global_debugger_holder.global_dbg, cmd_id, seq, text)
File "/Applications/PyCharm CE.app/Contents/plugins/python-ce/helpers/pydev/_pydevd_bundle/pydevd_process_net_command.py", line 909, in process_net_command
py_db.writer.add_command(cmd)
File "/Applications/PyCharm CE.app/Contents/plugins/python-ce/helpers/pydev/_pydevd_bundle/pydevd_comm.py", line 355, in add_command
self.cmdQueue.put(cmd)
AttributeError: 'Queue' object has no attribute 'put'
Can't process net command: 501 1 0.1 UNIX
Can someone please explain me what does it mean?
it also says that " connection to python debugger failed argument for #NotNull parameter 's'"
AttributeError: 'Queue' object has no attribute 'put'
This is the error message. But I'm not sure what caused it since this could be brouhgt by all kinds of issues.
Maybe check if you have a same filename in your project with the built-in file of queue.py? If so, you should be able to fix it by change your filename to something like myQueue.py
And you can provide more details of your code for locating errors.

How to delete ADUser using Python pyad module

I'm having a problem with deleting ADUser.
pyad.set_defaults(ldap_server="dc1.domain.com", username="service_account", password="mypassword")
user = aduser.ADUser.from_dn("cn=myuser, ou=staff, dc=domain, dc=com")
user.delete()
Unfortunately I could not figure out how to format this text to look like a real traceback
Traceback (most recent call last):
File "C:/Automation/qa/robot2/python_lib/keywords/AD/unittest.py", line 34,
in <module>
ad_connect.bg_ad_user_remove(user_login='vasya.oconnor#test-acme.com',dn_string= dn_string)
File "C:\Automation\qa\robot2\python_lib\keywords\AD\_bg_ad_general.py", line 156, in bg_ad_user_remove
user.delete()
File "C:\Python27\lib\site-packages\pyad\adobject.py", line 537, in delete
if not parent:
File "C:\Python27\lib\site-packages\future\types\newobject.py", line 90, in __nonzero__
return type(self).__len__(self)
AttributeError: type object 'ADContainer' has no attribute '__len__'

Categories

Resources