Not working due to jaraco.functools dependency?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Not working due to jaraco.functools dependency?

Jerzy Jalocha N
Hello all,
I am not sure if this is the right place to ask.
I am unable to start a cherrypy instance since an update a few days ago.
This is the trace:

Traceback (most recent call last):
  File "webserver.py", line 22, in <module>
    import cherrypy
  File "/usr/lib/python3.6/site-packages/cherrypy/__init__.py", line 76, in <module>
    from . import _cprequest, _cpserver, _cptree, _cplogging, _cpconfig
  File "/usr/lib/python3.6/site-packages/cherrypy/_cpserver.py", line 8, in <module>
    from cherrypy.process.servers import ServerAdapter
  File "/usr/lib/python3.6/site-packages/cherrypy/process/__init__.py", line 14, in <module>
    from . import plugins, servers
  File "/usr/lib/python3.6/site-packages/cherrypy/process/servers.py", line 126, in <module>
    import portend
  File "/usr/lib/python3.6/site-packages/portend.py", line 18, in <module>
    from tempora import timing
  File "/usr/lib/python3.6/site-packages/tempora/timing.py", line 137, in <module>
    class BackoffDelay(six.Iterator):
  File "/usr/lib/python3.6/site-packages/tempora/timing.py", line 225, in BackoffDelay
    @jaraco.functools.save_method_args
AttributeError: module 'jaraco.functools' has no attribute 'save_method_args'


I'm surprised that this has not been mentioned here.
It seems to me that there's something wrong in cherrypy or in jaraco.
Does anyone know what to do about this?

Running under Arch Linux:
 * Python 3.6.6
 * Cherrypy 16.0.3-1
 * python-jaraco 2017.11.25-1

--
You received this message because you are subscribed to the Google Groups "cherrypy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/cherrypy-users.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Not working due to jaraco.functools dependency?

Tim Roberts
Jerzy Jalocha wrote:

I am not sure if this is the right place to ask.
I am unable to start a cherrypy instance since an update a few days ago.
This is the trace:

Traceback (most recent call last):
  File "webserver.py", line 22, in <module>
    import cherrypy
  File "/usr/lib/python3.6/site-packages/cherrypy/__init__.py", line 76, in <module>
    from . import _cprequest, _cpserver, _cptree, _cplogging, _cpconfig
  File "/usr/lib/python3.6/site-packages/cherrypy/_cpserver.py", line 8, in <module>
    from cherrypy.process.servers import ServerAdapter
  File "/usr/lib/python3.6/site-packages/cherrypy/process/__init__.py", line 14, in <module>
    from . import plugins, servers
  File "/usr/lib/python3.6/site-packages/cherrypy/process/servers.py", line 126, in <module>
    import portend
  File "/usr/lib/python3.6/site-packages/portend.py", line 18, in <module>
    from tempora import timing
  File "/usr/lib/python3.6/site-packages/tempora/timing.py", line 137, in <module>
    class BackoffDelay(six.Iterator):
  File "/usr/lib/python3.6/site-packages/tempora/timing.py", line 225, in BackoffDelay
    @jaraco.functools.save_method_args
AttributeError: module 'jaraco.functools' has no attribute 'save_method_args'


I'm surprised that this has not been mentioned here.
It seems to me that there's something wrong in cherrypy or in jaraco.
Does anyone know what to do about this?

As was cautioned in the pull request that added the "portend" dependency 4 years ago, this is the reason why it's dangerous to rely on relatively minor third-party packages.  CherryPy now depends on portend, which depends on tempora, which depends on jaraco.  The "save_method_args" option was added to jaraco two weeks ago.  Your jaraco version is now too old.
-- 
Tim Roberts, [hidden email]
Providenza & Boekelheide, Inc.

--
You received this message because you are subscribed to the Google Groups "cherrypy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/cherrypy-users.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Not working due to jaraco.functools dependency?

Jerzy Jalocha N


On Wednesday, July 18, 2018 at 2:34:49 PM UTC-4, Tim Roberts wrote:
Jerzy Jalocha wrote:

I am not sure if this is the right place to ask.
I am unable to start a cherrypy instance since an update a few days ago.
This is the trace:

Traceback (most recent call last):
  File "webserver.py", line 22, in <module>
    import cherrypy
  File "/usr/lib/python3.6/site-packages/cherrypy/__init__.py", line 76, in <module>
    from . import _cprequest, _cpserver, _cptree, _cplogging, _cpconfig
  File "/usr/lib/python3.6/site-packages/cherrypy/_cpserver.py", line 8, in <module>
    from cherrypy.process.servers import ServerAdapter
  File "/usr/lib/python3.6/site-packages/cherrypy/process/__init__.py", line 14, in <module>
    from . import plugins, servers
  File "/usr/lib/python3.6/site-packages/cherrypy/process/servers.py", line 126, in <module>
    import portend
  File "/usr/lib/python3.6/site-packages/portend.py", line 18, in <module>
    from tempora import timing
  File "/usr/lib/python3.6/site-packages/tempora/timing.py", line 137, in <module>
    class BackoffDelay(six.Iterator):
  File "/usr/lib/python3.6/site-packages/tempora/timing.py", line 225, in BackoffDelay
    @jaraco.functools.save_method_args
AttributeError: module 'jaraco.functools' has no attribute 'save_method_args'


I'm surprised that this has not been mentioned here.
It seems to me that there's something wrong in cherrypy or in jaraco.
Does anyone know what to do about this?

As was cautioned in the pull request that added the "portend" dependency 4 years ago, this is the reason why it's dangerous to rely on relatively minor third-party packages.  CherryPy now depends on portend, which depends on tempora, which depends on jaraco.  The "save_method_args" option was added to jaraco two weeks ago.  Your jaraco version is now too old.
-- 
Tim Roberts, <a href="javascript:" target="_blank" gdf-obfuscated-mailto="x7qD_rWdBwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">ti...@...
Providenza & Boekelheide, Inc.

Hello Tim,
Thank you so much for your clear and detailed answer!
Since this is not a CherryPy issue, I will try to mark this topic as Solved and take the issue to Arch, where the python-jaraco package should be updated.
Best regards,
J

--
You received this message because you are subscribed to the Google Groups "cherrypy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/cherrypy-users.
For more options, visit https://groups.google.com/d/optout.