Centos 설치 onedrive

5692 단어
Ubuntu 설치 Onedrive 강좌를 참고하여 Centos에서 onedrive를 설치하는 과정에서 문제가 발생했습니다. Error: setup script does not support your distro token centos, 현재 기록은 다음과 같습니다.
$ git clone https://github.com/xybu92/onedrive-d.git
$ cd onedrive-d

그리고
./install.sh
Error: setup script does not support your distro token centos.

구글은 비슷한 오류를 찾았습니다. I cant install on elementary OS #71은 대체로 이 버전을 쓰지 않았습니다.sh 파일,vi install.sh, case로 이동 $DISTRIB_ID, 풋내기로서 저는 페도라 뒤에서'sudo yum install'을 보았습니다. 페도라 뒤에 |centos를 추가했습니다. 저장하고 종료하고 실행합니다./install.sh, 설치에 성공했습니다.
case $DISTRIB_ID in # Debian/Ubuntu family elementaryos|debian|ubuntu|linuxmint|raspbian) PACKAGE_INST=‘sudo apt-get install’ PIP_PKG_NAME=‘python3-pip’ PYGOBJECT_PKG_NAME=‘python3-gi’ INOTIFY_PKG_NAME=‘inotify-tools’ PYTHON_DEV_PKG_NAME=‘python3-dev’ ;; fedora|centos) PACKAGE_INST=‘sudo yum install’ PIP_PKG_NAME=‘python3-pip’ PYGOBJECT_PKG_NAME=‘pygobject3’ INOTIFY_PKG_NAME=‘inotify-tools’ PYTHON_DEV_PKG_NAME=‘python3-devel’ ;; arch|archarm|manjarolinux) PACKAGE_INST=‘sudo pacman -S --needed’ PIP_PKG_NAME=‘python-pip’ PYGOBJECT_PKG_NAME=‘python-gobject’ INOTIFY_PKG_NAME=‘inotify-tools’ PYTHON_DEV_PKG_NAME=’’ ;; opensuse) PACKAGE_INST=‘sudo zypper install’ PIP_PKG_NAME=‘python3-pip’ PYGOBJECT_PKG_NAME=‘python3-gobject’ INOTIFY_PKG_NAME=‘inotify-tools’ PYTHON_DEV_PKG_NAME=‘python3-devel’
이후 Ubuntu에 따라 Onedrive 강좌를 설치하는 중 오류가 발생했습니다. 문제를 찾을 때 onedrive-dold를 포기하고 onedrived-dev를 사용하라는 의견이 있습니다.linux에서 onedrive 동기화 로깅 오류 참조:
pip3 install -e .

WARNING: Running pip install with root privileges is generally not a good idea. Try `pip3 install --user` instead.
Obtaining file:///root/onedrived-dev
Requirement already satisfied: setuptools>=30.0.0 in /usr/local/lib/python3.6/site-packages (from onedrived==2.0.0)
Collecting colorama>=0.3.7 (from onedrived==2.0.0)
  Downloading http://us1.mirrors.cloud.aliyuncs.com/pypi/packages/c9/dc/45cdef1b4d119eb96316b3117e6d5708a08029992b2fee2c143c7a0a5cc5/colorama-0.4.3-py2.py3-none-any.whl
Requirement already satisfied: click>=6.6 in /root/.local/lib/python3.6/site-packages/click-7.1.2-py3.6.egg (from onedrived==2.0.0)
Collecting onedrivesdk (from onedrived==2.0.0)
  Downloading http://us1.mirrors.cloud.aliyuncs.com/pypi/packages/b3/76/9a3fe5b36079f5c40b33c89ad6f7737e3b8609010a80c9ed24d762ddb93e/onedrivesdk-2.0.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "", line 1, in <module>
      File "/tmp/pip-build-h9xoxpeb/onedrivesdk/setup.py", line 9, in <module>
        with open(NOTICE, 'r', encoding='utf-8') as f:
    NotADirectoryError: [Errno 20] Not a directory: '/tmp/pip-build-h9xoxpeb/onedrivesdk/setup.py/../NOTICE.rst'
    
    ----------------------------------------

해결 방법 참조:https://github.com/OneDrive/onedrive-sdk-python/issues/167
pip install https://github.com/OneDrive/onedrive-sdk-python/archive/master.zip
onedrived-pref account add
Failed to save account: No recommended backend was available. Install a recommended 3rd party backend package; or, install the keyrings.alt package if you want to use the non-recommended backends. See https://pypi.org/project/keyring for details..

해결:
pip3 install keyrings.alt

ngrok 다운로드:
wget https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip

압축 해제:
unzip ngrok-stable-linux-amd64.zip 

시작:
NGROK=~/ngrok onedrived start

테스트 결과 동기화 가능

좋은 웹페이지 즐겨찾기