Good morning, Plone community!
I am in the process of getting my python plone addons ready to work on Volto. I am running into an issue however with the individual content types. The full traceback is below:
/Users/rhennebrown/Plone522py37/zinstance/bin/python /Users/rhennebrown/Plone522py37/zinstance/bin/instance fg
/Users/rhennebrown/Plone522py37/buildout-cache/eggs/Products.CMFFormController-4.1.2-py3.7.egg/Products/CMFFormController/ControllerPythonScript.py:41: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
import imp
2021-02-10 12:01:40,442 WARNING [Init:89][MainThread] Class Products.CMFFormController.ControllerPythonScript.ControllerPythonScript has a security declaration for nonexistent method 'ZPythonScriptHTML_changePrefs'
2021-02-10 12:01:40,450 WARNING [Init:89][MainThread] Class Products.CMFFormController.ControllerValidator.ControllerValidator has a security declaration for nonexistent method 'ZPythonScriptHTML_changePrefs'
/Users/rhennebrown/Plone522py37/buildout-cache/eggs/Products.CMFPlacefulWorkflow-2.0.2-py3.7.egg/Products/CMFPlacefulWorkflow/permissions.py:5: DeprecationWarning: setDefaultRoles is deprecated. Please use addPermission from AccessControl.Permission.
from Products.CMFCore.permissions import setDefaultRoles
2021-02-10 12:01:41,238 INFO [Products.PloneHotfix20200121:49][MainThread] Applied sql_quote patch
2021-02-10 12:01:41,291 INFO [Products.PloneHotfix20200121:49][MainThread] Applied in_portal patch
2021-02-10 12:01:41,294 INFO [Products.PloneHotfix20200121:49][MainThread] Applied password_validation patch
2021-02-10 12:01:41,314 INFO [Products.PloneHotfix20200121:49][MainThread] Applied pac patch
/Users/rhennebrown/Plone522py37/buildout-cache/eggs/Products.PloneHotfix20200121-1.1-py3.7.egg/Products/PloneHotfix20200121/utils.py:4: DeprecationWarning: getSiteEncoding: `getSiteEncoding` is deprecated. Plone only supports UTF-8 currently. This method always returns "utf-8"
from Products.CMFPlone.utils import *
2021-02-10 12:01:41,382 INFO [Products.PloneHotfix20200121:49][MainThread] Applied content patch
2021-02-10 12:01:41,411 INFO [Products.PloneHotfix20200121:49][MainThread] Applied layout patch
2021-02-10 12:01:41,566 INFO [Products.PloneHotfix20200121:49][MainThread] Applied restapi_local_roles patch
2021-02-10 12:01:41,566 INFO [Products.PloneHotfix20200121:57][MainThread] Hotfix installed
/Users/rhennebrown/Plone522py37/buildout-cache/eggs/Products.PortalTransforms-3.1.8-py3.7.egg/Products/PortalTransforms/transforms/text_to_html.py:2: DeprecationWarning: html_quote is deprecated. Please import from DocumentTemplate.html_quote. These shims will go away in DocumentTemplate 4.0.
from DocumentTemplate.DT_Util import html_quote
2021-02-10 12:01:42,065 WARNING [TemporaryStorage:93][MainThread] DEPRECATED: Usage of the package tempstorage is deprecated, as it is known to randomly lose data.
Especially on Zope 4. For details see https://github.com/zopefoundation/tempstorage/issues/8
and https://github.com/zopefoundation/tempstorage
/Users/rhennebrown/Plone522py37/buildout-cache/eggs/tempstorage-5.1-py3.7.egg/tempstorage/TemporaryStorage.py:94: DeprecationWarning: DEPRECATED: Usage of the package tempstorage is deprecated, as it is known to randomly lose data.
Especially on Zope 4. For details see https://github.com/zopefoundation/tempstorage/issues/8
and https://github.com/zopefoundation/tempstorage
warnings.warn(deprecation_warning, DeprecationWarning)
/Users/rhennebrown/Plone522py37/buildout-cache/eggs/plone.app.textfield-1.3.4-py3.7.egg/plone/app/textfield/utils.py:10: DeprecationWarning: ComponentLookupError is deprecated. Import from zope.interface.interfaces
from zope.component.interfaces import ComponentLookupError
/Users/rhennebrown/Plone522py37/buildout-cache/eggs/plone.app.upgrade-2.0.34-py3.7.egg/plone/app/upgrade/__init__.py:167: DeprecationWarning: LockItem is deprecated. Please import from OFS.LockItem.
from webdav.LockItem import LockItem
/Users/rhennebrown/Plone522py37/buildout-cache/eggs/plone.subrequest-1.9.2-py3.7.egg/plone/subrequest/__init__.py:18: DeprecationWarning: zope.site.hooks has moved to zope.component.hooks. Import of zope.site.hooks will become unsupported in Version 5.0
from zope.site.hooks import getSite
/Users/rhennebrown/Plone522py37/buildout-cache/eggs/plone.scale-3.1.1-py3.7.egg/plone/scale/storage.py:5: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3,and in 3.9 it will stop working
from collections import MutableMapping
/Users/rhennebrown/Plone522py37/buildout-cache/eggs/zope.configuration-4.4.0-py3.7.egg/zope/configuration/config.py:241: DeprecationWarning: IObjectEvent is deprecated. Import from zope.interface.interfaces
obj = getattr(mod, oname)
/Users/rhennebrown/Plone522py37/buildout-cache/eggs/plone.app.content-3.8.6-py3.7.egg/plone/app/content/browser/vocabulary.py:10: DeprecationWarning: IFieldPermissionChecker is deprecated. Import IFieldPermissionChecker from plone.app.z3cform.interfaces instead
from plone.app.widgets.interfaces import IFieldPermissionChecker
2021-02-10 12:01:44,479 INFO [chameleon.config:38][MainThread] directory cache: /Users/rhennebrown/Plone522py37/zinstance/var/cache.
/Users/rhennebrown/Plone522py37/buildout-cache/eggs/zope.configuration-4.4.0-py3.7.egg/zope/configuration/config.py:241: DeprecationWarning: IComponentRegistry is deprecated. Import from zope.interface.interfaces
obj = getattr(mod, oname)
/Users/rhennebrown/Plone522py37/buildout-cache/eggs/zope.configuration-4.4.0-py3.7.egg/zope/configuration/config.py:241: DeprecationWarning: LockableItem is deprecated. Please import from OFS.Lockable.
obj = getattr(mod, oname)
/Users/rhennebrown/Plone522py37/buildout-cache/eggs/plone.schemaeditor-3.0.1-py3.7.egg/plone/schemaeditor/utils.py:6: DeprecationWarning: ObjectEvent is deprecated. Import from zope.interface.interfaces
from zope.component.interfaces import ObjectEvent
/Users/rhennebrown/Plone522py37/buildout-cache/eggs/zope.configuration-4.4.0-py3.7.egg/zope/configuration/config.py:241: DeprecationWarning: LazyMap is deprecated. Please import from ZTUtils.Lazy.
obj = getattr(mod, oname)
/Users/rhennebrown/Plone522py37/buildout-cache/eggs/zope.configuration-4.4.0-py3.7.egg/zope/configuration/config.py:241: DeprecationWarning: LazyCat is deprecated. Please import from ZTUtils.Lazy.
obj = getattr(mod, oname)
/Users/rhennebrown/Plone522py37/buildout-cache/eggs/plone.app.upgrade-2.0.34-py3.7.egg/plone/app/upgrade/v50/betas.py:8: DeprecationWarning: ILanguageSchema is deprecated. It has been moved to plone.i18n.interfaces, import from there instead.
from Products.CMFPlone.interfaces import ILanguageSchema
/Users/rhennebrown/Plone522py37/buildout-cache/eggs/calmjs.parse-1.2.4-py3.7.egg/calmjs/parse/io.py:7: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3,and in 3.9 it will stop working
from collections import Iterable
/Users/rhennebrown/Plone522py37/buildout-cache/eggs/pyScss-1.3.7-py3.7.egg/scss/namespace.py:172: DeprecationWarning: inspect.getargspec() is deprecated since Python 3.0, use inspect.signature() or inspect.getfullargspec()
argspec = inspect.getargspec(function)
/Users/rhennebrown/Plone522py37/buildout-cache/eggs/pyScss-1.3.7-py3.7.egg/scss/selector.py:54: FutureWarning: Possible nested set at position 329
''', re.VERBOSE | re.MULTILINE)
2021-02-10 12:01:52,745 INFO [Zope:45][MainThread] Ready to handle requests
Starting server in PID 23101.
/Users/rhennebrown/Plone522py37/buildout-cache/eggs/waitress-1.4.4-py3.7.egg/waitress/adjustments.py:445: DeprecationWarning: In future versions of Waitress clear_untrusted_proxy_headers will be set to True by default. You may opt-out by setting this value to False, or opt-in explicitly by setting this to True.
DeprecationWarning,
Serving on http://0.0.0.0:8080
/Users/rhennebrown/Plone522py37/buildout-cache/eggs/zope.deprecation-4.4.0-py3.7.egg/zope/deprecation/deprecation.py:88: DeprecationWarning: isDefaultPage is deprecated. Import from Products.CMFPlone.defaultpage instead
name)
2021-02-10 12:03:06,554 ERROR [Zope.SiteErrorLog:252][waitress-1] 1612976586.5404280.6398224715325398 http://localhost:3000/api/admissions/POST_application_json_
Traceback (innermost last):
Module ZPublisher.WSGIPublisher, line 162, in transaction_pubevents
Module ZPublisher.WSGIPublisher, line 359, in publish_module
Module ZPublisher.WSGIPublisher, line 262, in publish
Module ZPublisher.mapply, line 85, in mapply
Module ZPublisher.WSGIPublisher, line 63, in call_object
Module plone.rest.service, line 22, in __call__
Module plone.restapi.services, line 21, in render
Module plone.restapi.services.content.add, line 54, in reply
Module plone.restapi.services.content.utils, line 63, in create
Module plone.dexterity.factory, line 45, in __call__
ValueError: Error whilst constructing content for admissions_docs using class yc.documents.content.admissions_docs.AdmissionsDocs: setTitle() takes 1 positional argument but 2 were given
My question is where do I need to start regarding solving this error? I have made attempts to create views and addons yet the problem still persists. I appreciate any help that can be provided regarding this problem.
Sincerely,
rbrown12