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

AttributeError: module 'zerorpc.gevent_zmq' has no attribute 'PUSH' #1143

Closed
4 tasks done
chew01 opened this issue May 24, 2022 · 0 comments
Closed
4 tasks done

AttributeError: module 'zerorpc.gevent_zmq' has no attribute 'PUSH' #1143

chew01 opened this issue May 24, 2022 · 0 comments
Labels
bug / 缺陷 Something isn't working installation / 安装 Installation issues

Comments

@chew01
Copy link

chew01 commented May 24, 2022

Before you asking

  • I have searched the existing issues
  • I spend at least 5 minutes for thinking and preparing
  • I checked Frequently Asked Questions (FAQ) in Wiki page
  • I am using the latest version of Alas

Describe the bug

I tried to set up a docker container in Linux (Fedora Workstation 36) as per the wiki page, but encountered a dependency issue with zerorpc and pyzmq.
Traced it down to zerorpc-python and found an existing issue filed there.
As mentioned in the issue, this is caused by breaking changes in pyzmq >= 23.0.0.

I have temporarily fixed my installation by adding the line pyzmq==22.3.0 to the end of my requirements-in.txt while waiting for the pull request in zerorpc-python to be approved.
For posterity, please.

To Reproduce

  1. Installed Docker Engine
  2. Run dev_tools/Docker-run.sh

Expected behavior

No response

Relevant log output

═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
                                                         START                                                         
═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
INFO     2022-05-24 08:47:22.808 │ <<< LAUNCHER CONFIG >>>                                                             
INFO     2022-05-24 08:47:22.809 │ [Host] 0.0.0.0                                                                      
INFO     2022-05-24 08:47:22.810 │ [Port] 22267                                                                        
INFO     2022-05-24 08:47:22.811 │ [Address reuse] True                                                                
INFO     2022-05-24 08:47:22.812 │ [Electron] False                                                                    
INFO     2022-05-24 08:47:22.813 │ [Reload] True                                                                       
INFO:     Will watch for changes in these directories: ['/app/AzurLaneAutoScript/config']
INFO:     Uvicorn running on http://0.0.0.0:22267 (Press CTRL+C to quit)
INFO:     Started reloader process [7] using watchgod
═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
                                                         START                                                         
═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Process SpawnProcess-1:
Traceback (most recent call last):
  File "/app/pyroot/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap
    self.run()
  File "/app/pyroot/lib/python3.7/multiprocessing/process.py", line 99, in run
    self._target(*self._args, **self._kwargs)
  File "/app/pyroot/lib/python3.7/site-packages/uvicorn/subprocess.py", line 76, in subprocess_started
    target(sockets=sockets)
  File "/app/pyroot/lib/python3.7/site-packages/uvicorn/server.py", line 60, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "/app/pyroot/lib/python3.7/asyncio/runners.py", line 43, in run
    return loop.run_until_complete(main)
  File "uvloop/loop.pyx", line 1501, in uvloop.loop.Loop.run_until_complete
  File "/app/pyroot/lib/python3.7/site-packages/uvicorn/server.py", line 67, in serve
    config.load()
  File "/app/pyroot/lib/python3.7/site-packages/uvicorn/config.py", line 458, in load
    self.loaded_app = import_from_string(self.app)
  File "/app/pyroot/lib/python3.7/site-packages/uvicorn/importer.py", line 21, in import_from_string
    module = importlib.import_module(module_str)
  File "/app/pyroot/lib/python3.7/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/app/AzurLaneAutoScript/module/webui/app.py", line 23, in <module>
    from module.ocr.rpc import start_ocr_server_process, stop_ocr_server_process
  File "/app/AzurLaneAutoScript/module/ocr/rpc.py", line 7, in <module>
    import zerorpc
  File "/app/pyroot/lib/python3.7/site-packages/zerorpc/__init__.py", line 33, in <module>
    from .core import *
  File "/app/pyroot/lib/python3.7/site-packages/zerorpc/core.py", line 314, in <module>
    class Pusher(SocketBase):
  File "/app/pyroot/lib/python3.7/site-packages/zerorpc/core.py", line 316, in Pusher
    def __init__(self, context=None, zmq_socket=zmq.PUSH):
AttributeError: module 'zerorpc.gevent_zmq' has no attribute 'PUSH'

Screenshots

No response

Anything else?

No response

@chew01 chew01 added the bug / 缺陷 Something isn't working label May 24, 2022
@LmeSzinc LmeSzinc added the installation / 安装 Installation issues label May 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug / 缺陷 Something isn't working installation / 安装 Installation issues
Projects
None yet
Development

No branches or pull requests

2 participants