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

Docker run output errors #145

Closed
sydoluciani opened this issue Dec 5, 2020 · 4 comments
Closed

Docker run output errors #145

sydoluciani opened this issue Dec 5, 2020 · 4 comments

Comments

@sydoluciani
Copy link

Running below command as explained here:

docker run -it --rm --name=plone -p 8080:8080 -e SITE=Plone -e ADDONS="kitconcept.volto" -e ZCML="kitconcept.volto.cors" -e PROFILES="kitconcept.volto:default-homepage" plone

Throws below errors:

/plone/buildout-cache/eggs/plone.app.contenttypes-2.1.10-py3.8.egg/plone/app/contenttypes/migration/utils.py:482: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if source_type is 'DX':
/plone/buildout-cache/eggs/plone.app.contenttypes-2.1.10-py3.8.egg/plone/app/contenttypes/migration/utils.py:483: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if target_type is 'AT' and not is_referenceable(source_obj):
  File "/plone/buildout-cache/eggs/plone.staticresources-1.3.2-py3.8.egg/plone/staticresources/static/components/jqtree/_entries/insert.py", line 44
    print 'rename %s to %s' % (old_filename, new_filename)
          ^
SyntaxError: invalid syntax

  File "/plone/buildout-cache/eggs/plone.staticresources-1.3.2-py3.8.egg/plone/staticresources/static/components/jqtree/_entries/renumber.py", line 36
    print 'rename %s to %s' % (old_filename, new_filename)
          ^
SyntaxError: invalid syntax

  File "/plone/buildout-cache/eggs/zodbpickle-2.0.0-py3.8-linux-x86_64.egg/zodbpickle/pickletools_2.py", line 1803
    print "skipping %r: it doesn't look like an opcode name" % name
          ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("skipping %r: it doesn't look like an opcode name" % name)?

  File "/plone/buildout-cache/eggs/zodbpickle-2.0.0-py3.8-linux-x86_64.egg/zodbpickle/pickle_2.py", line 882
    except _Stop, stopinst:
                ^
SyntaxError: invalid syntax

  File "/plone/buildout-cache/eggs/zodbpickle-2.0.0-py3.8-linux-x86_64.egg/zodbpickle/tests/pickletester_2.py", line 433
    x = [0, 1L, 2.0, 3.0+0j]
             ^
SyntaxError: invalid syntax
@avoinea
Copy link
Sponsor Member

avoinea commented Dec 5, 2020

@sydoluciani It's just a warning. As I can see the the Docker container continues to run and eventually you are able to access: http://localhost:8080/Plone

@avoinea avoinea closed this as completed Dec 5, 2020
@sydoluciani
Copy link
Author

@avoinea You are right, docker starts, and I can access http://localhost:8080/Plone with no problem, however those are actually errors, they are not affecting the docker startup since these syntax errors either in test, or just print statement syntax error, but one is in pickle and it might affect plone functionality later on.

Those two related to zodbpickle needs to be reported to zodbpickle,
please let me know if I should report the issue, but you need to fix print statement that is missing parentheses.

@sydoluciani
Copy link
Author

@avoinea This is syntax error, and it won't affect docker startup, since the syntax error is in except statement and probably never happens, but still it is the quality of code to maintain.

File "/plone/buildout-cache/eggs/zodbpickle-2.0.0-py3.8-linux-x86_64.egg/zodbpickle/pickle_2.py", line 882
    except _Stop, stopinst:
                ^
SyntaxError: invalid syntax

@avoinea
Copy link
Sponsor Member

avoinea commented Dec 6, 2020

@sydoluciani Thank you. Please report the issues on zodbpickle and plone.staticresources repos with reference to this one.

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

2 participants