Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: a new-style class can't have only classic bases (pyenv and plone-5.2.x.cfg) #123

Open
registroforzado opened this issue Oct 18, 2020 · 0 comments

Comments

@registroforzado
Copy link

Is there a way to solve this? Thank you

$ bin/instance fg
/home/plone/bda.plone.shop/eggs/Products.GenericSetup-2.0.2-py2.7.egg/Products/GenericSetup/registry.py:16: ImportWarning: Not importing directory '/home/plone/bda.plone.shop/eggs/Products.GenericSetup-2.0.2-py2.7.egg/Products/GenericSetup/xml': missing init.py
from xml.sax import parseString
2020-10-18 03:12:34,957 WARNING [Init:89][MainThread] Class Products.CMFFormController.ControllerPythonScript.ControllerPythonScript has a security declaration for nonexistent method 'ZPythonScriptHTML_changePrefs'
2020-10-18 03:12:34,964 WARNING [Init:89][MainThread] Class Products.CMFFormController.ControllerValidator.ControllerValidator has a security declaration for nonexistent method 'ZPythonScriptHTML_changePrefs'
/home/plone/bda.plone.shop/eggs/Products.CMFPlacefulWorkflow-2.0.2-py2.7.egg/Products/CMFPlacefulWorkflow/permissions.py:5: DeprecationWarning: setDefaultRoles is deprecated. Please use addPermission from AccessControl.Permission.
from Products.CMFCore.permissions import setDefaultRoles
/home/plone/bda.plone.shop/eggs/Products.PortalTransforms-3.1.8-py2.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
2020-10-18 03:12:35,847 INFO [ZODB.blob:355][MainThread] (25410) Blob directory /home/plone/bda.plone.shop/var/blobstorage is unused and has no layout marker set. Selected bushy layout.
2020-10-18 03:12:35,848 INFO [ZODB.blob:355][MainThread] (25410) Blob temporary directory '/home/plone/bda.plone.shop/var/blobstorage/tmp' does not exist. Created new directory.
2020-10-18 03:12:35,849 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 zopefoundation/tempstorage#8
and https://github.com/zopefoundation/tempstorage

/home/plone/bda.plone.shop/eggs/tempstorage-5.1-py2.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 zopefoundation/tempstorage#8
and https://github.com/zopefoundation/tempstorage

warnings.warn(deprecation_warning, DeprecationWarning)
Traceback (most recent call last):
File "/home/plone/bda.plone.shop/parts/instance/bin/interpreter", line 317, in
exec(compile(__file__f.read(), file, "exec"))
File "/home/plone/bda.plone.shop/eggs/Zope-4.5.1-py2.7.egg/Zope2/Startup/serve.py", line 255, in
sys.exit(main() or 0)
File "/home/plone/bda.plone.shop/eggs/Zope-4.5.1-py2.7.egg/Zope2/Startup/serve.py", line 251, in main
return command.run()
File "/home/plone/bda.plone.shop/eggs/Zope-4.5.1-py2.7.egg/Zope2/Startup/serve.py", line 190, in run
global_conf=vars)
File "/home/plone/bda.plone.shop/eggs/Zope-4.5.1-py2.7.egg/Zope2/Startup/serve.py", line 220, in loadapp
return loadapp(app_spec, name=name, relative_to=relative_to, **kw)
File "/home/plone/bda.plone.shop/eggs/PasteDeploy-2.1.0-py2.7.egg/paste/deploy/loadwsgi.py", line 253, in loadapp
return loadobj(APP, uri, name=name, **kw)
File "/home/plone/bda.plone.shop/eggs/PasteDeploy-2.1.0-py2.7.egg/paste/deploy/loadwsgi.py", line 278, in loadobj
return context.create()
File "/home/plone/bda.plone.shop/eggs/PasteDeploy-2.1.0-py2.7.egg/paste/deploy/loadwsgi.py", line 715, in create
return self.object_type.invoke(self)
File "/home/plone/bda.plone.shop/eggs/PasteDeploy-2.1.0-py2.7.egg/paste/deploy/loadwsgi.py", line 209, in invoke
app = context.app_context.create()
File "/home/plone/bda.plone.shop/eggs/PasteDeploy-2.1.0-py2.7.egg/paste/deploy/loadwsgi.py", line 715, in create
return self.object_type.invoke(self)
File "/home/plone/bda.plone.shop/eggs/PasteDeploy-2.1.0-py2.7.egg/paste/deploy/loadwsgi.py", line 152, in invoke
return fix_call(context.object, context.global_conf, **context.local_conf)
File "/home/plone/bda.plone.shop/eggs/PasteDeploy-2.1.0-py2.7.egg/paste/deploy/util.py", line 55, in fix_call
val = callable(*args, **kw)
File "/home/plone/bda.plone.shop/eggs/Zope-4.5.1-py2.7.egg/Zope2/Startup/run.py", line 71, in make_wsgi_app
starter.prepare()
File "/home/plone/bda.plone.shop/eggs/Zope-4.5.1-py2.7.egg/Zope2/Startup/starter.py", line 41, in prepare
self.startZope()
File "/home/plone/bda.plone.shop/eggs/Zope-4.5.1-py2.7.egg/Zope2/Startup/starter.py", line 99, in startZope
Zope2.startup_wsgi()
File "/home/plone/bda.plone.shop/eggs/Zope-4.5.1-py2.7.egg/Zope2/init.py", line 50, in startup_wsgi
_startup()
File "/home/plone/bda.plone.shop/eggs/Zope-4.5.1-py2.7.egg/Zope2/App/startup.py", line 143, in startup
load_zcml()
File "/home/plone/bda.plone.shop/eggs/Zope-4.5.1-py2.7.egg/Zope2/App/startup.py", line 58, in load_zcml
load_site()
File "/home/plone/bda.plone.shop/eggs/Zope-4.5.1-py2.7.egg/Zope2/App/zcml.py", line 45, in load_site
_context = xmlconfig.file(site_zcml)
File "/home/plone/bda.plone.shop/eggs/zope.configuration-4.4.0-py2.7.egg/zope/configuration/xmlconfig.py", line 657, in file
include(context, name, package)
File "/home/plone/bda.plone.shop/eggs/zope.configuration-4.4.0-py2.7.egg/zope/configuration/xmlconfig.py", line 557, in include
processxmlfile(f, context)
File "/home/plone/bda.plone.shop/eggs/zope.configuration-4.4.0-py2.7.egg/zope/configuration/xmlconfig.py", line 407, in processxmlfile
parser.parse(src)
File "/usr/lib/python2.7/xml/sax/expatreader.py", line 110, in parse
xmlreader.IncrementalParser.parse(self, source)
File "/usr/lib/python2.7/xml/sax/xmlreader.py", line 123, in parse
self.feed(buffer)
File "/usr/lib/python2.7/xml/sax/expatreader.py", line 213, in feed
self._parser.Parse(data, isFinal)
File "/usr/lib/python2.7/xml/sax/expatreader.py", line 365, in end_element_ns
self._cont_handler.endElementNS(pair, None)
File "/home/plone/bda.plone.shop/eggs/zope.configuration-4.4.0-py2.7.egg/zope/configuration/xmlconfig.py", line 393, in endElementNS
self._handle_exception(ex, info)
File "/home/plone/bda.plone.shop/eggs/zope.configuration-4.4.0-py2.7.egg/zope/configuration/xmlconfig.py", line 391, in endElementNS
self.context.end()
File "/home/plone/bda.plone.shop/eggs/zope.configuration-4.4.0-py2.7.egg/zope/configuration/config.py", line 704, in end
self.stack.pop().finish()
File "/home/plone/bda.plone.shop/eggs/zope.configuration-4.4.0-py2.7.egg/zope/configuration/config.py", line 869, in finish
actions = self.handler(context, **args)
File "/home/plone/bda.plone.shop/eggs/Zope-4.5.1-py2.7.egg/OFS/metaconfigure.py", line 47, in loadProducts
xmlconfig.include(_context, zcml, package=product)
File "/home/plone/bda.plone.shop/eggs/zope.configuration-4.4.0-py2.7.egg/zope/configuration/xmlconfig.py", line 557, in include
processxmlfile(f, context)
File "/home/plone/bda.plone.shop/eggs/zope.configuration-4.4.0-py2.7.egg/zope/configuration/xmlconfig.py", line 407, in processxmlfile
parser.parse(src)
File "/usr/lib/python2.7/xml/sax/expatreader.py", line 110, in parse
xmlreader.IncrementalParser.parse(self, source)
File "/usr/lib/python2.7/xml/sax/xmlreader.py", line 123, in parse
self.feed(buffer)
File "/usr/lib/python2.7/xml/sax/expatreader.py", line 213, in feed
self._parser.Parse(data, isFinal)
File "/usr/lib/python2.7/xml/sax/expatreader.py", line 365, in end_element_ns
self._cont_handler.endElementNS(pair, None)
File "/home/plone/bda.plone.shop/eggs/zope.configuration-4.4.0-py2.7.egg/zope/configuration/xmlconfig.py", line 393, in endElementNS
self._handle_exception(ex, info)
File "/home/plone/bda.plone.shop/eggs/zope.configuration-4.4.0-py2.7.egg/zope/configuration/xmlconfig.py", line 235, in _handle_exception
reraise(exc, None, sys.exc_info()[2])
File "/home/plone/bda.plone.shop/eggs/zope.configuration-4.4.0-py2.7.egg/zope/configuration/xmlconfig.py", line 391, in endElementNS
self.context.end()
File "/home/plone/bda.plone.shop/eggs/zope.configuration-4.4.0-py2.7.egg/zope/configuration/config.py", line 704, in end
self.stack.pop().finish()
File "/home/plone/bda.plone.shop/eggs/zope.configuration-4.4.0-py2.7.egg/zope/configuration/config.py", line 869, in finish
actions = self.handler(context, **args)
File "/home/plone/bda.plone.shop/eggs/z3c.autoinclude-0.4.0-py2.7.egg/z3c/autoinclude/zcml.py", line 119, in includePluginsDirective
info = PluginFinder(dotted_name).includableInfo(zcml_to_look_for)
File "/home/plone/bda.plone.shop/eggs/z3c.autoinclude-0.4.0-py2.7.egg/z3c/autoinclude/plugin.py", line 24, in includableInfo
groups = zcml_to_include(plugin_dottedname, zcml_to_look_for)
File "/home/plone/bda.plone.shop/eggs/z3c.autoinclude-0.4.0-py2.7.egg/z3c/autoinclude/plugin.py", line 52, in zcml_to_include
filename = resource_filename(dotted_name, zcmlgroup)
File "/home/libertad/.local/lib/python2.7/site-packages/pkg_resources/init.py", line 1144, in resource_filename
return get_provider(package_or_requirement).get_resource_filename(
File "/home/libertad/.local/lib/python2.7/site-packages/pkg_resources/init.py", line 361, in get_provider
import(moduleOrReq)
File "/home/plone/bda.plone.shop/src/bda/plone/shop/init.py", line 3, in
from bda.plone.shop.user.properties import UserPropertiesPASPlugin
File "/home/plone/bda.plone.shop/src/bda/plone/shop/user/properties.py", line 3, in
from bda.plone.checkout.vocabularies import get_pycountry_name
File "/home/plone/bda.plone.shop/devsrc/bda.plone.checkout/src/bda/plone/checkout/vocabularies.py", line 19, in
(country.numeric, safe_unicode(_c(country.name))) for country in pycountry.countries
File "/home/plone/bda.plone.shop/eggs/pycountry-20.7.3-py2.7.egg/pycountry/db.py", line 40, in load_if_needed
self._load()
File "/home/plone/bda.plone.shop/eggs/pycountry-20.7.3-py2.7.egg/pycountry/db.py", line 67, in _load
self.data_class_name, (self.data_class_base,), {})
zope.configuration.xmlconfig.ZopeXMLConfigurationError: File "/home/plone/bda.plone.shop/eggs/Products.CMFPlone-5.2.2-py2.7.egg/Products/CMFPlone/meta.zcml", line 38.4-42.10
File "/home/plone/bda.plone.shop/parts/instance/etc/site.zcml", line 12.2-12.39
TypeError: a new-style class can't have only classic bases

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant