MiraiForum

    • Register
    • Login
    • Search
    • Popular
    • Recent
    • Unsolved
    • Tags
    • Groups
    • 友情链接

    ChatLearning——让bot学会你的群聊

    插件发布
    147
    818
    260142
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • 南栀沁寒
      南栀沁寒 last edited by

      This post is deleted!
      1 Reply Last reply Reply Quote 0
      • 南栀沁寒
        南栀沁寒 @lunailoli last edited by

        @lunailoli 同样的问题

        1 Reply Last reply Reply Quote 0
        • X
          Xzai @Koreyoshi last edited by

          @Koreyoshi python的依赖安装不上,设备是树莓派,是不支持armv7l吗?

          Koreyoshi 1 Reply Last reply Reply Quote 0
          • Koreyoshi
            Koreyoshi @lunailoli last edited by

            @lunailoli 导入的是什么词库

            X 1 Reply Last reply Reply Quote 0
            • Koreyoshi
              Koreyoshi @Xzai last edited by

              @Xzai 哪个依赖安装不上?

              X 2 Replies Last reply Reply Quote 0
              • X
                Xzai @Koreyoshi last edited by

                @Koreyoshi 是群里的cute

                1 Reply Last reply Reply Quote 0
                • X
                  Xzai @Koreyoshi last edited by

                  @Koreyoshi xlwt, cos_python_sdk_v5

                  Koreyoshi 1 Reply Last reply Reply Quote 0
                  • X
                    Xzai @Koreyoshi last edited by

                    @Koreyoshi 亲测windows没问题

                    1 Reply Last reply Reply Quote 0
                    • Koreyoshi
                      Koreyoshi @Xzai last edited by

                      @Xzai 用的是python3么

                      X 1 Reply Last reply Reply Quote 0
                      • X
                        Xzai @Koreyoshi last edited by

                        @Koreyoshi 3.9

                        root@raspberrypi:/opt/Chat/Source # pip install -r requirements.txt 
                        Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
                        Collecting cos_python_sdk_v5==1.9.15
                          Using cached cos_python_sdk_v5-1.9.15-py3-none-any.whl (59 kB)
                        WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='www.piwheels.org', port=443): Read timed out. (read timeout=15)")': /simple/nest-asyncio/
                        WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='www.piwheels.org', port=443): Read timed out. (read timeout=15)")': /simple/nest-asyncio/
                        WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='www.piwheels.org', port=443): Read timed out. (read timeout=15)")': /simple/nest-asyncio/
                        WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='www.piwheels.org', port=443): Read timed out. (read timeout=15)")': /simple/nest-asyncio/
                        Collecting nest_asyncio==1.5.4
                          Using cached https://www.piwheels.org/simple/nest-asyncio/nest_asyncio-1.5.4-py3-none-any.whl (5.1 kB)
                        Collecting prompt_toolkit==3.0.28
                          Using cached https://www.piwheels.org/simple/prompt-toolkit/prompt_toolkit-3.0.28-py3-none-any.whl (380 kB)
                        Collecting requests==2.26.0
                          Using cached https://www.piwheels.org/simple/requests/requests-2.26.0-py2.py3-none-any.whl (62 kB)
                        Requirement already satisfied: xlwt==1.3.0 in /usr/local/lib/python3.9/dist-packages (from -r requirements.txt (line 6)) (1.3.0)
                        Collecting jieba
                          Downloading https://www.piwheels.org/simple/jieba/jieba-0.42.1-py3-none-any.whl (19.3 MB)
                        ERROR: Exception:
                        Traceback (most recent call last):
                          File "/usr/share/python-wheels/resolvelib-0.5.4-py2.py3-none-any.whl/resolvelib/resolvers.py", line 171, in _merge_into_criterion
                            crit = self.state.criteria[name]
                        KeyError: 'jieba'
                        
                        During handling of the above exception, another exception occurred:
                        
                        Traceback (most recent call last):
                          File "/usr/share/python-wheels/urllib3-1.26.5-py2.py3-none-any.whl/urllib3/response.py", line 438, in _error_catcher
                            yield
                          File "/usr/share/python-wheels/urllib3-1.26.5-py2.py3-none-any.whl/urllib3/response.py", line 519, in read
                            data = self._fp.read(amt) if not fp_closed else b""
                          File "/usr/share/python-wheels/CacheControl-0.12.6-py2.py3-none-any.whl/cachecontrol/filewrapper.py", line 62, in read
                            data = self.__fp.read(amt)
                          File "/usr/lib/python3.9/http/client.py", line 458, in read
                            n = self.readinto(b)
                          File "/usr/lib/python3.9/http/client.py", line 502, in readinto
                            n = self.fp.readinto(b)
                          File "/usr/lib/python3.9/socket.py", line 704, in readinto
                            return self._sock.recv_into(b)
                          File "/usr/lib/python3.9/ssl.py", line 1241, in recv_into
                            return self.read(nbytes, buffer)
                          File "/usr/lib/python3.9/ssl.py", line 1099, in read
                            return self._sslobj.read(len, buffer)
                        socket.timeout: The read operation timed out
                        
                        During handling of the above exception, another exception occurred:
                        
                        Traceback (most recent call last):
                          File "/usr/lib/python3/dist-packages/pip/_internal/cli/base_command.py", line 223, in _main
                            status = self.run(options, args)
                          File "/usr/lib/python3/dist-packages/pip/_internal/cli/req_command.py", line 180, in wrapper
                            return func(self, options, args)
                          File "/usr/lib/python3/dist-packages/pip/_internal/commands/install.py", line 346, in run
                            requirement_set = resolver.resolve(
                          File "/usr/lib/python3/dist-packages/pip/_internal/resolution/resolvelib/resolver.py", line 122, in resolve
                            self._result = resolver.resolve(
                          File "/usr/share/python-wheels/resolvelib-0.5.4-py2.py3-none-any.whl/resolvelib/resolvers.py", line 453, in resolve
                            state = resolution.resolve(requirements, max_rounds=max_rounds)
                          File "/usr/share/python-wheels/resolvelib-0.5.4-py2.py3-none-any.whl/resolvelib/resolvers.py", line 318, in resolve
                            name, crit = self._merge_into_criterion(r, parent=None)
                          File "/usr/share/python-wheels/resolvelib-0.5.4-py2.py3-none-any.whl/resolvelib/resolvers.py", line 173, in _merge_into_criterion
                            crit = Criterion.from_requirement(self._p, requirement, parent)
                          File "/usr/share/python-wheels/resolvelib-0.5.4-py2.py3-none-any.whl/resolvelib/resolvers.py", line 82, in from_requirement
                            if not cands:
                          File "/usr/share/python-wheels/resolvelib-0.5.4-py2.py3-none-any.whl/resolvelib/structs.py", line 124, in __bool__
                            return bool(self._sequence)
                          File "/usr/lib/python3/dist-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 99, in __bool__
                            return any(self)
                          File "/usr/lib/python3/dist-packages/pip/_internal/resolution/resolvelib/factory.py", line 239, in iter_index_candidates
                            candidate = self._make_candidate_from_link(
                          File "/usr/lib/python3/dist-packages/pip/_internal/resolution/resolvelib/factory.py", line 167, in _make_candidate_from_link
                            self._link_candidate_cache[link] = LinkCandidate(
                          File "/usr/lib/python3/dist-packages/pip/_internal/resolution/resolvelib/candidates.py", line 296, in __init__
                            super(LinkCandidate, self).__init__(
                          File "/usr/lib/python3/dist-packages/pip/_internal/resolution/resolvelib/candidates.py", line 144, in __init__
                            self.dist = self._prepare()
                          File "/usr/lib/python3/dist-packages/pip/_internal/resolution/resolvelib/candidates.py", line 222, in _prepare
                            dist = self._prepare_distribution()
                          File "/usr/lib/python3/dist-packages/pip/_internal/resolution/resolvelib/candidates.py", line 307, in _prepare_distribution
                            return self._factory.preparer.prepare_linked_requirement(
                          File "/usr/lib/python3/dist-packages/pip/_internal/operations/prepare.py", line 480, in prepare_linked_requirement
                            return self._prepare_linked_requirement(req, parallel_builds)
                          File "/usr/lib/python3/dist-packages/pip/_internal/operations/prepare.py", line 503, in _prepare_linked_requirement
                            local_file = unpack_url(
                          File "/usr/lib/python3/dist-packages/pip/_internal/operations/prepare.py", line 253, in unpack_url
                            file = get_http_url(
                          File "/usr/lib/python3/dist-packages/pip/_internal/operations/prepare.py", line 130, in get_http_url
                            from_path, content_type = download(link, temp_dir.path)
                          File "/usr/lib/python3/dist-packages/pip/_internal/network/download.py", line 163, in __call__
                            for chunk in chunks:
                          File "/usr/lib/python3/dist-packages/pip/_internal/cli/progress_bars.py", line 168, in iter
                            for x in it:
                          File "/usr/lib/python3/dist-packages/pip/_internal/network/utils.py", line 64, in response_chunks
                            for chunk in response.raw.stream(
                          File "/usr/share/python-wheels/urllib3-1.26.5-py2.py3-none-any.whl/urllib3/response.py", line 576, in stream
                            data = self.read(amt=amt, decode_content=decode_content)
                          File "/usr/share/python-wheels/urllib3-1.26.5-py2.py3-none-any.whl/urllib3/response.py", line 541, in read
                            raise IncompleteRead(self._fp_bytes_read, self.length_remaining)
                          File "/usr/lib/python3.9/contextlib.py", line 135, in __exit__
                            self.gen.throw(type, value, traceback)
                          File "/usr/share/python-wheels/urllib3-1.26.5-py2.py3-none-any.whl/urllib3/response.py", line 443, in _error_catcher
                            raise ReadTimeoutError(self._pool, None, "Read timed out.")
                        urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='www.piwheels.org', port=443): Read timed out.
                        root@raspberrypi:/opt/Chat/Source # 
                        
                        Koreyoshi X 2 Replies Last reply Reply Quote 0
                        • Koreyoshi
                          Koreyoshi @Xzai last edited by

                          @Xzai 这看起来是连接超时啊,检查一下网络?或者有没有挂代理

                          X 2 Replies Last reply Reply Quote 0
                          • X
                            Xzai @Xzai last edited by

                            @Xzai 在 ChatLearning——让bot学会你的群聊(附带文字转换语音) 中说:

                            @Koreyoshi 3.9

                            root@raspberrypi:/opt/Chat/Source # pip install -r requirements.txt 
                            Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
                            Collecting cos_python_sdk_v5==1.9.15
                              Using cached cos_python_sdk_v5-1.9.15-py3-none-any.whl (59 kB)
                            WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='www.piwheels.org', port=443): Read timed out. (read timeout=15)")': /simple/nest-asyncio/
                            WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='www.piwheels.org', port=443): Read timed out. (read timeout=15)")': /simple/nest-asyncio/
                            WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='www.piwheels.org', port=443): Read timed out. (read timeout=15)")': /simple/nest-asyncio/
                            WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='www.piwheels.org', port=443): Read timed out. (read timeout=15)")': /simple/nest-asyncio/
                            Collecting nest_asyncio==1.5.4
                              Using cached https://www.piwheels.org/simple/nest-asyncio/nest_asyncio-1.5.4-py3-none-any.whl (5.1 kB)
                            Collecting prompt_toolkit==3.0.28
                              Using cached https://www.piwheels.org/simple/prompt-toolkit/prompt_toolkit-3.0.28-py3-none-any.whl (380 kB)
                            Collecting requests==2.26.0
                              Using cached https://www.piwheels.org/simple/requests/requests-2.26.0-py2.py3-none-any.whl (62 kB)
                            Requirement already satisfied: xlwt==1.3.0 in /usr/local/lib/python3.9/dist-packages (from -r requirements.txt (line 6)) (1.3.0)
                            Collecting jieba
                              Downloading https://www.piwheels.org/simple/jieba/jieba-0.42.1-py3-none-any.whl (19.3 MB)
                            ERROR: Exception:
                            Traceback (most recent call last):
                              File "/usr/share/python-wheels/resolvelib-0.5.4-py2.py3-none-any.whl/resolvelib/resolvers.py", line 171, in _merge_into_criterion
                                crit = self.state.criteria[name]
                            KeyError: 'jieba'
                            
                            During handling of the above exception, another exception occurred:
                            
                            Traceback (most recent call last):
                              File "/usr/share/python-wheels/urllib3-1.26.5-py2.py3-none-any.whl/urllib3/response.py", line 438, in _error_catcher
                                yield
                              File "/usr/share/python-wheels/urllib3-1.26.5-py2.py3-none-any.whl/urllib3/response.py", line 519, in read
                                data = self._fp.read(amt) if not fp_closed else b""
                              File "/usr/share/python-wheels/CacheControl-0.12.6-py2.py3-none-any.whl/cachecontrol/filewrapper.py", line 62, in read
                                data = self.__fp.read(amt)
                              File "/usr/lib/python3.9/http/client.py", line 458, in read
                                n = self.readinto(b)
                              File "/usr/lib/python3.9/http/client.py", line 502, in readinto
                                n = self.fp.readinto(b)
                              File "/usr/lib/python3.9/socket.py", line 704, in readinto
                                return self._sock.recv_into(b)
                              File "/usr/lib/python3.9/ssl.py", line 1241, in recv_into
                                return self.read(nbytes, buffer)
                              File "/usr/lib/python3.9/ssl.py", line 1099, in read
                                return self._sslobj.read(len, buffer)
                            socket.timeout: The read operation timed out
                            
                            During handling of the above exception, another exception occurred:
                            
                            Traceback (most recent call last):
                              File "/usr/lib/python3/dist-packages/pip/_internal/cli/base_command.py", line 223, in _main
                                status = self.run(options, args)
                              File "/usr/lib/python3/dist-packages/pip/_internal/cli/req_command.py", line 180, in wrapper
                                return func(self, options, args)
                              File "/usr/lib/python3/dist-packages/pip/_internal/commands/install.py", line 346, in run
                                requirement_set = resolver.resolve(
                              File "/usr/lib/python3/dist-packages/pip/_internal/resolution/resolvelib/resolver.py", line 122, in resolve
                                self._result = resolver.resolve(
                              File "/usr/share/python-wheels/resolvelib-0.5.4-py2.py3-none-any.whl/resolvelib/resolvers.py", line 453, in resolve
                                state = resolution.resolve(requirements, max_rounds=max_rounds)
                              File "/usr/share/python-wheels/resolvelib-0.5.4-py2.py3-none-any.whl/resolvelib/resolvers.py", line 318, in resolve
                                name, crit = self._merge_into_criterion(r, parent=None)
                              File "/usr/share/python-wheels/resolvelib-0.5.4-py2.py3-none-any.whl/resolvelib/resolvers.py", line 173, in _merge_into_criterion
                                crit = Criterion.from_requirement(self._p, requirement, parent)
                              File "/usr/share/python-wheels/resolvelib-0.5.4-py2.py3-none-any.whl/resolvelib/resolvers.py", line 82, in from_requirement
                                if not cands:
                              File "/usr/share/python-wheels/resolvelib-0.5.4-py2.py3-none-any.whl/resolvelib/structs.py", line 124, in __bool__
                                return bool(self._sequence)
                              File "/usr/lib/python3/dist-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 99, in __bool__
                                return any(self)
                              File "/usr/lib/python3/dist-packages/pip/_internal/resolution/resolvelib/factory.py", line 239, in iter_index_candidates
                                candidate = self._make_candidate_from_link(
                              File "/usr/lib/python3/dist-packages/pip/_internal/resolution/resolvelib/factory.py", line 167, in _make_candidate_from_link
                                self._link_candidate_cache[link] = LinkCandidate(
                              File "/usr/lib/python3/dist-packages/pip/_internal/resolution/resolvelib/candidates.py", line 296, in __init__
                                super(LinkCandidate, self).__init__(
                              File "/usr/lib/python3/dist-packages/pip/_internal/resolution/resolvelib/candidates.py", line 144, in __init__
                                self.dist = self._prepare()
                              File "/usr/lib/python3/dist-packages/pip/_internal/resolution/resolvelib/candidates.py", line 222, in _prepare
                                dist = self._prepare_distribution()
                              File "/usr/lib/python3/dist-packages/pip/_internal/resolution/resolvelib/candidates.py", line 307, in _prepare_distribution
                                return self._factory.preparer.prepare_linked_requirement(
                              File "/usr/lib/python3/dist-packages/pip/_internal/operations/prepare.py", line 480, in prepare_linked_requirement
                                return self._prepare_linked_requirement(req, parallel_builds)
                              File "/usr/lib/python3/dist-packages/pip/_internal/operations/prepare.py", line 503, in _prepare_linked_requirement
                                local_file = unpack_url(
                              File "/usr/lib/python3/dist-packages/pip/_internal/operations/prepare.py", line 253, in unpack_url
                                file = get_http_url(
                              File "/usr/lib/python3/dist-packages/pip/_internal/operations/prepare.py", line 130, in get_http_url
                                from_path, content_type = download(link, temp_dir.path)
                              File "/usr/lib/python3/dist-packages/pip/_internal/network/download.py", line 163, in __call__
                                for chunk in chunks:
                              File "/usr/lib/python3/dist-packages/pip/_internal/cli/progress_bars.py", line 168, in iter
                                for x in it:
                              File "/usr/lib/python3/dist-packages/pip/_internal/network/utils.py", line 64, in response_chunks
                                for chunk in response.raw.stream(
                              File "/usr/share/python-wheels/urllib3-1.26.5-py2.py3-none-any.whl/urllib3/response.py", line 576, in stream
                                data = self.read(amt=amt, decode_content=decode_content)
                              File "/usr/share/python-wheels/urllib3-1.26.5-py2.py3-none-any.whl/urllib3/response.py", line 541, in read
                                raise IncompleteRead(self._fp_bytes_read, self.length_remaining)
                              File "/usr/lib/python3.9/contextlib.py", line 135, in __exit__
                                self.gen.throw(type, value, traceback)
                              File "/usr/share/python-wheels/urllib3-1.26.5-py2.py3-none-any.whl/urllib3/response.py", line 443, in _error_catcher
                                raise ReadTimeoutError(self._pool, None, "Read timed out.")
                            urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='www.piwheels.org', port=443): Read timed out.
                            root@raspberrypi:/opt/Chat/Source # 
                            

                            这是报错

                            1 Reply Last reply Reply Quote 0
                            • X
                              Xzai @Koreyoshi last edited by

                              @Koreyoshi Windows不挂代理也可以下载

                              Koreyoshi 1 Reply Last reply Reply Quote 0
                              • X
                                Xzai @Koreyoshi last edited by

                                @Koreyoshi 我试试吧

                                1 Reply Last reply Reply Quote 0
                                • Koreyoshi
                                  Koreyoshi @Xzai last edited by

                                  @Xzai 有些是挂了代理下不了,或者换个国内镜像源

                                  X 1 Reply Last reply Reply Quote 0
                                  • X
                                    Xzai @Koreyoshi last edited by

                                    @Koreyoshi 今天试了,代理不行,清华镜像也不行

                                    Koreyoshi 1 Reply Last reply Reply Quote 0
                                    • Koreyoshi
                                      Koreyoshi @Xzai last edited by

                                      @Xzai 试试去pypi下然后本地安装?

                                      X 2 Replies Last reply Reply Quote 0
                                      • X
                                        Xzai @Koreyoshi last edited by

                                        @Koreyoshi ok,我正打算放弃qwq

                                        1 Reply Last reply Reply Quote 0
                                        • X
                                          Xzai @Koreyoshi last edited by

                                          @Koreyoshi 好了,谢谢你

                                          1 Reply Last reply Reply Quote 0
                                          • MC57348
                                            MC57348 @Koreyoshi last edited by

                                            @Koreyoshi 虽然我这边能正常用,但是每次启动就会有这个错误
                                            2023-02-23 00:05:30
                                            Traceback (most recent call last):
                                            File "ChatClass.py", line 407, in run
                                            File "ChatMerge.py", line 96, in main
                                            File "ChatMerge.py", line 78, in getfile
                                            File "ChatMerge.py", line 25, in Merge
                                            File "ChatClass.py", line 46, in pickle_load
                                            EOFError: Ran out of input

                                            Koreyoshi 1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 36
                                            • 37
                                            • 38
                                            • 39
                                            • 40
                                            • 41
                                            • 38 / 41
                                            • First post
                                              Last post
                                            Powered by Mamoe Technologies & NodeBB | 友情链接 | 服务监控 | Contact