Closed Daryolo closed 6 years ago
Okay I fixed this error by moving the file with "sudo cp /home/pi/onedriveClient/onedrive_config.yml /usr/local/lib/python3.5/dist-packages/onedrived-2.0.0-py3.5.egg/"
Any idea why this isn't in the correct location after the installation?
Getting something very similar myself:
Traceback (most recent call last):
File "/usr/local/bin/onedrived-pref", line 11, in <module>
load_entry_point('onedrived==2.0.0', 'console_scripts', 'onedrived-pref')()
File "/usr/local/lib/python3.5/dist-packages/pkg_resources/__init__.py", line 572, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/local/lib/python3.5/dist-packages/pkg_resources/__init__.py", line 2752, in load_entry_point
return ep.load()
File "/usr/local/lib/python3.5/dist-packages/pkg_resources/__init__.py", line 2405, in load
return self.resolve()
File "/usr/local/lib/python3.5/dist-packages/pkg_resources/__init__.py", line 2411, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/usr/local/lib/python3.5/dist-packages/onedrived/od_pref.py", line 13, in <module>
from . import mkdir, get_resource, od_i18n, od_auth
File "/usr/local/lib/python3.5/dist-packages/onedrived/od_auth.py", line 26, in <module>
with open(os.path.abspath(path + '/onedrive_config.yml'), 'r', encoding='utf8') as yml:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/lib/python3.5/dist-packages/onedrive_config.yml'
Similar errors whatever onedrived or onedrived-pref command I run. I grabbed it from the repo and put it there, and now it seems to work.
I'm so sorry for the delay, I've been very busy since I've moved to New Zealand. I fixed it in the last commits, can you check to see if it's happening again?
I'm getting an error when I try to add a Account.
onedrived-pref account add -b
Traceback (most recent call last): File "/usr/local/bin/onedrived-pref", line 11, in
load_entry_point('onedrived==2.0.0', 'console_scripts', 'onedrived-pref')()
File "/usr/local/lib/python3.5/dist-packages/pkg_resources/init.py", line 570, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/local/lib/python3.5/dist-packages/pkg_resources/init.py", line 2755, in load_entry_point
return ep.load()
File "/usr/local/lib/python3.5/dist-packages/pkg_resources/init.py", line 2409, in load
return self.resolve()
File "/usr/local/lib/python3.5/dist-packages/pkg_resources/init.py", line 2415, in resolve
module = import(self.module_name, fromlist=['name'], level=0)
File "/usr/local/lib/python3.5/dist-packages/onedrived-2.0.0-py3.5.egg/onedrived/od_pref.py", line 13, in
from . import mkdir, get_resource, od_i18n, od_auth
File "/usr/local/lib/python3.5/dist-packages/onedrived-2.0.0-py3.5.egg/onedrived/od_auth.py", line 26, in
with open(os.path.abspath(path + '/onedrive_config.yml'), 'r', encoding='utf8') as yml:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/lib/python3.5/dist-packages/onedrived-2.0.0-py3.5.egg/onedrive_config.yml'