onedrived-dev icon indicating copy to clipboard operation
onedrived-dev copied to clipboard

Error installing onedrive-d involving setup tools.

Open morbidfun opened this issue 8 years ago • 5 comments

Hi. I have tried this on current versions of Linux Mint, Ubuntu, and Lubuntu. Each time I experience the exact same issue. The message I receive is: Reading package lists... Done Building dependency tree
Reading state information... Done python3-gi is already the newest version (3.20.0-0ubuntu1). inotify-tools is already the newest version (3.14-1ubuntu1). 0 upgraded, 0 newly installed, 0 to remove and 27 not upgraded. Traceback (most recent call last): File "setup.py", line 4, in from setuptools import setup, find_packages ImportError: No module named 'setuptools'

I have verified that I have setup tools. I also ran through the process of reinstalling setup tools, and a few other tricks mentioned on forums for Linux Mint, but no resolution to date. Does the community have any suggestions why this is occurring and how I can resolve it?

Thank you greatly.

Brian

morbidfun avatar May 28 '17 00:05 morbidfun

Had a similar problem, think it's to do with $PATH issues. New install of Mint 19.1 XFCE, Think I've got around it by doing the following: I added the to the $PATH:

PATH=$HOME/.local/bin:$PATH

Not sure if this fixed it, but then because pip or pip3 wasn't being found - defiantly had installed the latest:

python3 -m pip install --user --upgrade pip

I used python3 -m pip to install:

python3 -m pip install --user setuptools python3 -m pip install --user git+https://github.com/xybu/onedrived-dev.git

I then had to install the source manually:

git clone https://github.com/xybu/onedrived-dev.git cd ondrived-dev

Manually tested:

python3 ./setup.py test

Then installed:

python3 ./setup.py install --user

The last gotcha I encountered was with the ngrok setup, found I had to move ngrok:

sudo mv ~/ngrok /usr/bin/ngrok

I found that here: https://medium.com/@glmdev/onedrive-sync-for-linux-ubuntu-2bcbf6777ee4

abisdad avatar Jan 01 '19 03:01 abisdad

Can you put all the commands used to install it? There is a CI build that install the package every time without issue...

derrix060 avatar Jan 03 '19 00:01 derrix060

Sorry, just looked in .history, but don't have a record of them. I think I had 3 terminals open. Basically I believe that the above error was due to the $PATH not including pip3, since PIP3 was definitely installed, but as I mentioned, the following command would not run:

$ pip3 install --user git+https://github.com/xybu/onedrived-dev.git

But worked with:

python3 -m pip install

Hope that helps a little. As mentioned, fresh install of Mint 19.1 XFCE on an old Acer 1410 (a little bigger than an Acer One) with 2GB RAM.

Rob.

abisdad avatar Jan 06 '19 00:01 abisdad

Just setting up a machine for my daughter and came across these commands:

As mentioned above, feel that it's a $PATH issue, so I did this:

cat $PATH cat: '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games': No such file or directory

But just found this command too:

python3 -c 'import sys; print (sys.path)' ['', '/usr/lib/python36.zip', '/usr/lib/python3.6', '/usr/lib/python3.6/lib-dynload', '/usr/local/lib/python3.6/dist-packages', '/usr/lib/python3/dist-packages']

So it looks like the '/usr/lib' is not in the $PATH.

However, for my daughter's machine Onedrived installed without any issues. :-)

abisdad avatar Jan 11 '19 13:01 abisdad

@abisdad I'm a bit confused with your comment. Are you having the same issue that was reported? (ImportError: No module named 'setuptools' when trying to install the project).

Depending on your configuration, you might not have the link from pip3 to pip. If that's the case, you need to make sure you have the correct version: (example of my output:)

(onedriveEnv)  mario@mario-N43SM  ~  pip --version
pip 18.1 from /home/mario/.local/lib/python3.6/site-packages/pip (python 3.6)
(onedriveEnv)  mario@mario-N43SM  ~  pip3 --version
pip 18.1 from /home/mario/.local/lib/python3.5/site-packages/pip (python 3.5)
(onedriveEnv)  mario@mario-N43SM  ~  which pip
/home/mario/miniconda3/envs/onedriveEnv/bin/pip
(onedriveEnv)  mario@mario-N43SM  ~  which pip3
/home/mario/.local/bin/pip3

derrix060 avatar Jan 12 '19 03:01 derrix060