Repliscan安装错误:repliscan的建筑轮子(setup.py)...错误

时间:2020-09-09 13:48:29

标签: python-3.x macos pip setup.py

我正在尝试安装此软件包,但看到了我无法理解的错误。我已经按照开发人员的建议安装了依赖项。我已经向开发人员提出了有关该错误的问题,但是很遗憾无法从他那里得到答复。有人可以建议我该怎么解决错误?预先感谢。

环境:

OSX卡塔利娜 点20.2.2 python 3.6.8


saddams-MBP:src saddamhusain$ pip install --user git+https://github.com/zyndagj/repliscan.git
Collecting git+https://github.com/zyndagj/repliscan.git
  Cloning https://github.com/zyndagj/repliscan.git to /private/var/folders/y4/d8ny96tj4lq95881n6qy5rw80000gn/T/pip-req-build-ltzu32sc
Building wheels for collected packages: repliscan
  Building wheel for repliscan (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /Library/Frameworks/Python.framework/Versions/3.6/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/y4/d8ny96tj4lq95881n6qy5rw80000gn/T/pip-req-build-ltzu32sc/setup.py'"'"'; __file__='"'"'/private/var/folders/y4/d8ny96tj4lq95881n6qy5rw80000gn/T/pip-req-build-ltzu32sc/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/y4/d8ny96tj4lq95881n6qy5rw80000gn/T/pip-wheel-lfsee6wm
       cwd: /private/var/folders/y4/d8ny96tj4lq95881n6qy5rw80000gn/T/pip-req-build-ltzu32sc/
  Complete output (48 lines):
  make: Nothing to be done for `all'.
  running bdist_wheel
  running build
  running build_scripts
  creating build
  creating build/scripts-3.6
  copying and adjusting repliscan.py -> build/scripts-3.6
  copying and adjusting RATrap.py -> build/scripts-3.6
  Traceback (most recent call last):
    File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/tokenize.py", line 390, in find_cookie
      line_string = line.decode('utf-8')
  UnicodeDecodeError: 'utf-8' codec can't decode byte 0xcf in position 0: invalid continuation byte
  
  During handling of the above exception, another exception occurred:
  
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/private/var/folders/y4/d8ny96tj4lq95881n6qy5rw80000gn/T/pip-req-build-ltzu32sc/setup.py", line 21, in <module>
      scripts = ["repliscan.py","RATrap.py","wavelets"])
    File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/setuptools/__init__.py", line 143, in setup
      return distutils.core.setup(**attrs)
    File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/core.py", line 148, in setup
      dist.run_commands()
    File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py", line 955, in run_commands
      self.run_command(cmd)
    File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py", line 974, in run_command
      cmd_obj.run()
    File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/wheel/bdist_wheel.py", line 223, in run
      self.run_command('build')
    File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py", line 974, in run_command
      cmd_obj.run()
    File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/command/build.py", line 135, in run
      self.run_command(cmd_name)
    File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py", line 974, in run_command
      cmd_obj.run()
    File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/command/build_scripts.py", line 50, in run
      self.copy_scripts()
    File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/command/build_scripts.py", line 82, in copy_scripts
      encoding, lines = tokenize.detect_encoding(f.readline)
    File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/tokenize.py", line 431, in detect_encoding
      encoding = find_cookie(first)
    File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/tokenize.py", line 395, in find_cookie
      raise SyntaxError(msg)
  SyntaxError: invalid or missing encoding declaration for 'wavelets'
  ----------------------------------------
  ERROR: Failed building wheel for repliscan
  Running setup.py clean for repliscan
Failed to build repliscan
DEPRECATION: Could not build wheels for repliscan which do not use PEP 517. pip will fall back to legacy 'setup.py install' for these. pip 21.0 will remove support for this functionality. A possible replacement is to fix the wheel build issue reported above. You can find discussion regarding this at https://github.com/pypa/pip/issues/8368.
Installing collected packages: repliscan
    Running setup.py install for repliscan ... error
    ERROR: Command errored out with exit status 1:
     command: /Library/Frameworks/Python.framework/Versions/3.6/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/y4/d8ny96tj4lq95881n6qy5rw80000gn/T/pip-req-build-ltzu32sc/setup.py'"'"'; __file__='"'"'/private/var/folders/y4/d8ny96tj4lq95881n6qy5rw80000gn/T/pip-req-build-ltzu32sc/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/y4/d8ny96tj4lq95881n6qy5rw80000gn/T/pip-record-6xhnt_jd/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /Users/saddamhusain/Library/Python/3.6/include/python3.6m/repliscan
         cwd: /private/var/folders/y4/d8ny96tj4lq95881n6qy5rw80000gn/T/pip-req-build-ltzu32sc/
    Complete output (50 lines):
    make: Nothing to be done for `all'.
    running install
    running build
    running build_scripts
    creating build
    creating build/scripts-3.6
    copying and adjusting repliscan.py -> build/scripts-3.6
    copying and adjusting RATrap.py -> build/scripts-3.6
    Traceback (most recent call last):
      File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/tokenize.py", line 390, in find_cookie
        line_string = line.decode('utf-8')
    UnicodeDecodeError: 'utf-8' codec can't decode byte 0xcf in position 0: invalid continuation byte
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/y4/d8ny96tj4lq95881n6qy5rw80000gn/T/pip-req-build-ltzu32sc/setup.py", line 21, in <module>
        scripts = ["repliscan.py","RATrap.py","wavelets"])
      File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/setuptools/__init__.py", line 143, in setup
        return distutils.core.setup(**attrs)
      File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/core.py", line 148, in setup
        dist.run_commands()
      File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py", line 955, in run_commands
        self.run_command(cmd)
      File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py", line 974, in run_command
        cmd_obj.run()
      File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/setuptools/command/install.py", line 61, in run
        return orig.install.run(self)
      File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/command/install.py", line 545, in run
        self.run_command('build')
      File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py", line 974, in run_command
        cmd_obj.run()
      File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/command/build.py", line 135, in run
        self.run_command(cmd_name)
      File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py", line 974, in run_command
        cmd_obj.run()
      File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/command/build_scripts.py", line 50, in run
        self.copy_scripts()
      File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/command/build_scripts.py", line 82, in copy_scripts
        encoding, lines = tokenize.detect_encoding(f.readline)
      File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/tokenize.py", line 431, in detect_encoding
        encoding = find_cookie(first)
      File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/tokenize.py", line 395, in find_cookie
        raise SyntaxError(msg)
    SyntaxError: invalid or missing encoding declaration for 'wavelets'
    ----------------------------------------
ERROR: Command errored out with exit status 1: /Library/Frameworks/Python.framework/Versions/3.6/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/y4/d8ny96tj4lq95881n6qy5rw80000gn/T/pip-req-build-ltzu32sc/setup.py'"'"'; __file__='"'"'/private/var/folders/y4/d8ny96tj4lq95881n6qy5rw80000gn/T/pip-req-build-ltzu32sc/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/y4/d8ny96tj4lq95881n6qy5rw80000gn/T/pip-record-6xhnt_jd/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /Users/saddamhusain/Library/Python/3.6/include/python3.6m/repliscan Check the logs for full command output.
saddams-MBP:src saddamhusain$ 

0 个答案:

没有答案