Giter VIP home page Giter VIP logo

Comments (6)

benallard avatar benallard commented on June 17, 2024

you had the python-request package installed on the other system ?

from galileo.

dhdurgee avatar dhdurgee commented on June 17, 2024

You are correct, I missed installing your prerequsites. It has been long enough since I installed your package I forgot what was involved.

I now have managed to shoot myself in the foot and perhaps you can tell me how to correct it. I decided it might be simpler to use pip to install your package and requirements. I checked and found linux mint had python-pip in their repository, so I installed it. They do not have pyusb or requests, so I was going to have to use pip to retrieve them. I started with a pip list, which told me that since mint installed 8.1.1 that I should use pip to upgrade itself via "pip install --upgrade pip" to do so. I ran this via sudo and got a message: "The directory '/home/dhdurgee/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/dhdurgee/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag." and it then went on to install the new pip. Unfortunately since then I find pip unusable. Attempting to run it yields "dhdurgee@DG41TY ~/Downloads $ pip list
Traceback (most recent call last):
File "/usr/bin/pip", line 11, in
sys.exit(main())
File "/usr/local/lib/python2.7/dist-packages/pip/init.py", line 16, in main
from pip._internal.utils.entrypoints import _wrapper
File "/usr/local/lib/python2.7/dist-packages/pip/_internal/utils/entrypoints.py", line 3, in
from pip._internal.cli.main import main
File "/usr/local/lib/python2.7/dist-packages/pip/_internal/cli/main.py", line 60
sys.stderr.write(f"ERROR: {exc}")
^
SyntaxError: invalid syntax
dhdurgee@DG41TY ~/Downloads $"

I also just noticed in the install output the following: "Installing collected packages: pip
Found existing installation: pip 8.1.1
Not uninstalling pip at /usr/lib/python2.7/dist-packages, outside environment /usr
Running setup.py install for pip ... done
Successfully installed pip-21.0.1
dhdurgee@DG41TY ~/Downloads $ "

Looking around I see pip related files in /usr/local/bin and I have a ~.cache/pip directory with files in it.

How do I undo this mess? How should I have updated pip to get the new version installed in /usr/bin?

from galileo.

benallard avatar benallard commented on June 17, 2024

I don't believe pip can install itself in /usr/bin. that directory is reserved for official packages of your distribution you shouldn't have needed to update pip. as a thumb of rule, what you install via packages remains as package and shouldn't be updated / installed otherwise. an older version of pip usually is okay.

from galileo.

dhdurgee avatar dhdurgee commented on June 17, 2024

Unfortunately I did attempt to update pip and have now damaged my ability to use pip at all. How can I undo this mess? Can I simply remove that ~/.cache/pip directory and the /usr/local/bin entries, or are there some other environment or configuration files that need to be corrected or removed?

from galileo.

dhdurgee avatar dhdurgee commented on June 17, 2024

I have worked around this problem by determining how to install the dependencies by hand. I was just able to sync fitbits with your package.

I should note error that I had to correct. The "99-fitbit.rules" as provided cannot just be copied to the udev rules directory. I found I had to edit it to match the line issued by the package as it ran, which is 'SUBSYSTEM=="usb", ATTR{idVendor}=="2687", ATTR{idProduct}=="fb01", SYMLINK+="fitbit", MODE="0666"' instead.

from galileo.

dhdurgee avatar dhdurgee commented on June 17, 2024

yet another note, in my case I had to issue "sudo udevadm control -R" to reload the udev rules.

from galileo.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.