Original exception was:
Traceback (most recent call last):
  File "/usr/bin/pip", line 11, in <module>
    load_entry_point('pip==20.0.2', 'console_scripts', 'pip')()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 490, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2854, in load_entry_point
    return ep.load()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2445, in load
    return self.resolve()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2451, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/lib/python3/dist-packages/pip/_internal/cli/main.py", line 10, in <module>
    from pip._internal.cli.autocompletion import autocomplete
  File "/usr/lib/python3/dist-packages/pip/_internal/cli/autocompletion.py", line 9, in <module>
    from pip._internal.cli.main_parser import create_main_parser
  File "/usr/lib/python3/dist-packages/pip/_internal/cli/main_parser.py", line 7, in <module>
    from pip._internal.cli import cmdoptions
  File "/usr/lib/python3/dist-packages/pip/_internal/cli/cmdoptions.py", line 24, in <module>
    from pip._internal.exceptions import CommandError
  File "/usr/lib/python3/dist-packages/pip/_internal/exceptions.py", line 10, in <module>
    from pip._vendor.six import iteritems
  File "/usr/lib/python3/dist-packages/pip/_vendor/__init__.py", line 65, in <module>
    vendored("cachecontrol")
  File "/usr/lib/python3/dist-packages/pip/_vendor/__init__.py", line 36, in vendored
    __import__(modulename, globals(), locals(), level=0)
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 655, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 618, in _load_backward_compatible
  File "<frozen zipimport>", line 259, in load_module
  File "/usr/share/python-wheels/CacheControl-0.12.6-py2.py3-none-any.whl/cachecontrol/__init__.py", line 9, in <module>
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 655, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 618, in _load_backward_compatible
  File "<frozen zipimport>", line 259, in load_module
  File "/usr/share/python-wheels/CacheControl-0.12.6-py2.py3-none-any.whl/cachecontrol/wrapper.py", line 1, in <module>
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked


__ Top


[ ](./index.php?sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0 "Board index")


Code:  Select all


###  [ Re: pip3 - an invalid version and will not be supported in a future
release
](./viewtopic.php?p=2279732&sid=c29dfe945ad3e8c75d45f864f02a8653#p2279732)


OK, next question: do you have ` pip ` or ` pip3 ` installed? What about `
python3.7-distutils ` ?


[ endlisnis
](./memberlist.php?mode=viewprofile&u=159404&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)


Jump to  __


###  [ Re: pip3 - an invalid version and will not be supported in a future
release
](./viewtopic.php?p=2279859&sid=c29dfe945ad3e8c75d45f864f02a8653#p2279859)


Skip to main content
colcon build failed in example "Failed <<< examples_rclcpp_minimal_subscriber" ANSWER : r/ROS


Mundane-Explanation6
OP
•
1y ago
Hey, Happy I could be of help


     Level 2
![Level 2](./images/ranks/2.gif)


Upvote
1


** gm10  **


###  [ Re: python3.7 distutils broken on last update
](./viewtopic.php?p=1555458&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0#p1555458)


    $ apt install python3.7-distutils
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Note, selecting 'python3-distutils' instead of 'python3.7-distutils'
    python3-distutils is already the newest version (3.6.7-1~18.04).
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.


[ __ Post
](./viewtopic.php?p=2279707&sid=c29dfe945ad3e8c75d45f864f02a8653#p2279707
"Post") by **[ JonDoe12345
](./memberlist.php?mode=viewprofile&u=322258&sid=c29dfe945ad3e8c75d45f864f02a8653)
** »  Sat Jan 07, 2023 10:03 am


after this follow the blogpost here https://blog.csdn.net/tanmx219/article/details/126211384.


__ Top


[ __ Post
](./viewtopic.php?p=2279763&sid=c29dfe945ad3e8c75d45f864f02a8653#p2279763
"Post") by **[ JonDoe12345
](./memberlist.php?mode=viewprofile&u=322258&sid=c29dfe945ad3e8c75d45f864f02a8653)
** »  Sat Jan 07, 2023 11:58 am


     **Posts:** [ 40 ](./search.php?author_id=322258&sr=posts&sid=c29dfe945ad3e8c75d45f864f02a8653)
     **Joined:** Fri Mar 18, 2022 1:13 pm


** ajgringo619  **


Code:  Select all


__ __


I don't see any package named ` python3.7-distutils `


    *     * [ __ Unanswered topics  ](./search.php?search_id=unanswered&sid=c29dfe945ad3e8c75d45f864f02a8653)
    * [ __ Active topics  ](./search.php?search_id=active_topics&sid=c29dfe945ad3e8c75d45f864f02a8653)
    *     * [ __ Search  ](./search.php?sid=c29dfe945ad3e8c75d45f864f02a8653)
    *   * [ __ FAQ  ](/app.php/help/faq?sid=c29dfe945ad3e8c75d45f864f02a8653 "Frequently Asked Questions")
  * [ __ Login  ](./ucp.php?mode=login&redirect=viewtopic.php%3Ft%3D388853&sid=c29dfe945ad3e8c75d45f864f02a8653 "Login")
  * [ __ Register  ](./ucp.php?mode=register&sid=c29dfe945ad3e8c75d45f864f02a8653)


Ever since the most recent update of python3.7, I've had trouble running
almost any complicated program including "pip". The included "distutils"
package doesn't seem to contain a "sysconfig" entry.

I'm running "python3.7/bionic-updates,now 3.7.1-1~18.04 amd64 [installed]"


Mundane-Explanation6
OP
•
6mo ago
welcome


[ __ Post
](./viewtopic.php?p=2279845&sid=c29dfe945ad3e8c75d45f864f02a8653#p2279845
"Post") by **[ JonDoe12345
](./memberlist.php?mode=viewprofile&u=322258&sid=c29dfe945ad3e8c75d45f864f02a8653)
** »  Sat Jan 07, 2023 2:24 pm


Welcome to the Linux Mint forums!


###  [ Re: python3.7 distutils broken on last update
](./viewtopic.php?p=1555459&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0#p1555459)


7 posts • Page **1** of **1**


  * [ __ Board index  ](./index.php?sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)
  * All times are  UTC-04:00
  * [ __ Delete cookies  ](./ucp.php?mode=delete_cookies&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)
  * [ __ Contact us  ](./memberlist.php?mode=contactadmin&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)


    $ pip --version
    pip 18.1 from /usr/local/lib/python3.6/dist-packages/pip (python 3.6)

    $ pip3 --version
    pip 18.1 from /usr/local/lib/python3.6/dist-packages/pip (python 3.6)


[ __ Post
](./viewtopic.php?p=2279841&sid=c29dfe945ad3e8c75d45f864f02a8653#p2279841
"Post") by **[ spamegg
](./memberlist.php?mode=viewprofile&u=261886&sid=c29dfe945ad3e8c75d45f864f02a8653)
** »  Sat Jan 07, 2023 2:19 pm


        class-ID: 0403
      Sound Server-1: ALSA v: k5.15.0-57-generic running: yes
      Sound Server-2: PulseAudio v: 15.99.1 running: yes
      Sound Server-3: PipeWire v: 0.3.48 running: yes
    Network:
      Device-1: Intel Ethernet I219-LM vendor: Dell driver: e1000e v: kernel
        port: N/A bus-ID: 00:1f.6 chip-ID: 8086:15d7 class-ID: 0200
      IF: enp0s31f6 state: down mac: <filter>
      Device-2: Intel Wireless 8265 / 8275 driver: iwlwifi v: kernel pcie:
        speed: 2.5 GT/s lanes: 1 bus-ID: 02:00.0 chip-ID: 8086:24fd class-ID: 0280
      IF: wlp2s0 state: up mac: <filter>
    RAID:
      Hardware-1: Intel 82801 Mobile SATA Controller [RAID mode] driver: ahci
        v: 3.0 port: f060 bus-ID: 00:17.0 chip-ID: 8086:282a rev: N/A
        class-ID: 0104
    Drives:
      Local Storage: total: 506.24 GiB used: 53.36 GiB (10.5%)
      ID-1: /dev/sda vendor: Micron model: 1100 SATA 512GB size: 476.94 GiB
        speed: 6.0 Gb/s type: SSD serial: <filter> rev: L022 scheme: GPT
      ID-2: /dev/sdb type: USB vendor: Intenso model: Premium Line
        size: 29.3 GiB type: N/A serial: <filter> rev: PMAP scheme: GPT
    Partition:
      ID-1: / size: 29.96 GiB used: 17.44 GiB (58.2%) fs: ext4 dev: /dev/sda4
      ID-2: /home size: 84.15 GiB used: 35.92 GiB (42.7%) fs: ext4
        dev: /dev/sda5
    Swap:
      ID-1: swap-1 type: partition size: 9.89 GiB used: 0 KiB (0.0%) priority: -2
        dev: /dev/sda6
    Sensors:
      System Temperatures: cpu: 25.0 C pch: 33.5 C mobo: N/A
      Fan Speeds (RPM): cpu: 0
    Repos:
      Packages: apt: 3384
      No active apt repos in: /etc/apt/sources.list
      Active apt repos in: /etc/apt/sources.list.d/deadsnakes-ppa-jammy.list
        1: deb http://ppa.launchpad.net/deadsnakes/ppa/ubuntu jammy main
      Active apt repos in: /etc/apt/sources.list.d/google-chrome.list
        1: deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
      Active apt repos in: /etc/apt/sources.list.d/jcfp-nobetas-jammy.list
        1: deb http://ppa.launchpad.net/jcfp/nobetas/ubuntu jammy main


     **Posts:** [ 5038 ](./search.php?author_id=261886&sr=posts&sid=c29dfe945ad3e8c75d45f864f02a8653)
     **Joined:** Mon Oct 28, 2019 2:34 am
     **Contact:**


[ JonDoe12345
](./memberlist.php?mode=viewprofile&u=322258&sid=c29dfe945ad3e8c75d45f864f02a8653)


[ __ Post
](./viewtopic.php?p=1555458&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0#p1555458
"Post") by **[ endlisnis
](./memberlist.php?mode=viewprofile&u=159404&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)
** »  Wed Nov 21, 2018 11:20 pm


> [ spamegg
> ](./memberlist.php?mode=viewprofile&u=261886&sid=c29dfe945ad3e8c75d45f864f02a8653)
> wrote: [ ⤴
> ](./viewtopic.php?p=2279841&sid=c29dfe945ad3e8c75d45f864f02a8653#p2279841)
> Sat Jan 07, 2023 2:19 pm  Do you have a ` /usr/bin/pip ` or ` /usr/bin/pip3
> ` file? Can you show
>


###  [ Re: python3.7 distutils broken on last update
](./viewtopic.php?p=1555725&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0#p1555725)


Code:  Select all


  * [ Status ](https://www.githubstatus.com/)
  * [ Docs ](https://docs.github.com/)
  * [ Contact ](https://support.github.com?tags=dotcom-footer)
  * Manage cookies
  * Do not share my personal information
You can’t perform that action at this time.


###  [ Re: python3.7 distutils broken on last update
](./viewtopic.php?p=1555461&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0#p1555461)


    $ apt list *distutils*
    Listing... Done
    python-distutils-extra/bionic,bionic 2.41ubuntu1 all
    python-stsci.distutils/bionic,bionic 0.3.7-4 all
    python3-distutils/bionic-updates,bionic-updates,now 3.6.7-1~18.04 all [installed,automatic]
    python3-distutils-extra/bionic,bionic 2.41ubuntu1 all
    python3-stsci.distutils/bionic,bionic 0.3.7-4 all


Downvote
Reply
reply


[ __ Post
](./viewtopic.php?p=2279862&sid=c29dfe945ad3e8c75d45f864f02a8653#p2279862
"Post") by **[ JonDoe12345
](./memberlist.php?mode=viewprofile&u=322258&sid=c29dfe945ad3e8c75d45f864f02a8653)
** »  Sat Jan 07, 2023 3:10 pm


I tried removing every single python3.7 package and re-installed. I ended up
in the exact same situation. If my installation is somehow broken in a way
that's not easy to get out of, I'm not above re-installing my OS, but I just
want to make sure that's really what's going on here before I go that far. I
might try a Linux Mint 19 docker container to see if I can reproduce this on a
fresh image.


     Level 1
![Level 1](./images/ranks/1.gif)


__ __


My system shows it:


    $ cat /usr/local/bin/pip3
    #!/usr/bin/python3
    # EASY-INSTALL-ENTRY-SCRIPT: 'pip==9.0.1','console_scripts','pip3'
    __requires__ = 'pip==9.0.1'
    import re
    import sys
    from pkg_resources import load_entry_point

    if __name__ == '__main__':
        sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
        sys.exit(
            load_entry_point('pip==9.0.1', 'console_scripts', 'pip3')()
        )


* [ __ Print view  ](./viewtopic.php?t=388853&sid=c29dfe945ad3e8c75d45f864f02a8653&view=print "Print view")


Share
Share


If everything looks OK, then you can make an alias to use the right version.
Add this to ` .bash_aliases ` :


     **Posts:** [ 40 ](./search.php?author_id=322258&sr=posts&sid=c29dfe945ad3e8c75d45f864f02a8653)
     **Joined:** Fri Mar 18, 2022 1:13 pm


[ __ Post
](./viewtopic.php?p=1555463&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0#p1555463
"Post") by ** ajgringo619  ** »  Wed Nov 21, 2018 11:43 pm


###  [ Re: python3.7 distutils broken on last update
](./viewtopic.php?p=1555463&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0#p1555463)


    *     * [ __ Unanswered topics  ](./search.php?search_id=unanswered&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)
    * [ __ Active topics  ](./search.php?search_id=active_topics&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)
    *     * [ __ Search  ](./search.php?sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)
    *   * [ __ FAQ  ](/app.php/help/faq?sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0 "Frequently Asked Questions")
  * [ __ Login  ](./ucp.php?mode=login&redirect=viewtopic.php%3Ft%3D282012&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0 "Login")
  * [ __ Register  ](./ucp.php?mode=register&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)


woooee
•
1y ago
Use pip3, not pip.


Upvote
1


     Level 14
![Level 14](./images/ranks/12.gif)


Downvote
Reply
reply


[ __ Post
](./viewtopic.php?p=1555745&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0#p1555745
"Post") by ** gm10  ** »  Thu Nov 22, 2018 3:04 pm


Well, which places the problem either with docker or with the pip version
you're installing instead of using the official packages.

The supported way is only this:


dr_Ceng
•
9mo ago
did you solve the problem? i faced the same problem i don't know how to solve it


__ Contact spamegg


** ajgringo619  **


Based on the error message, the suggestion I found was to install `
python3.7-dev ` .


[ ![User
avatar](//secure.gravatar.com/avatar/ef8358afee83a4713242d5cb4c6dbdb3?s=120)
](./memberlist.php?mode=viewprofile&u=261886&sid=c29dfe945ad3e8c75d45f864f02a8653)


###  [ Re: pip3 - an invalid version and will not be supported in a future
release
](./viewtopic.php?p=2279845&sid=c29dfe945ad3e8c75d45f864f02a8653#p2279845)


Code:  Select all


  * 1
  * [ 2 ](./viewtopic.php?t=282012&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0&start=20)
  * [ __ Next  ](./viewtopic.php?t=282012&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0&start=20)


Get app
Log In


__ Top


Share
Share


     Level 2
![Level 2](./images/ranks/2.gif)


###  [ [SOLVED] pip3 - an invalid version and will not be supported in a
future release
](./viewtopic.php?p=2279707&sid=c29dfe945ad3e8c75d45f864f02a8653#p2279707)


[ __ Post
](./viewtopic.php?p=2279859&sid=c29dfe945ad3e8c75d45f864f02a8653#p2279859
"Post") by **[ spamegg
](./memberlist.php?mode=viewprofile&u=261886&sid=c29dfe945ad3e8c75d45f864f02a8653)
** »  Sat Jan 07, 2023 2:58 pm


Downvote
Reply
reply


    $ pip --version
    /usr/lib/python3/dist-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: 1.1build1 is an invalid version and will not be supported in a future release
      warnings.warn(
    /usr/lib/python3/dist-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: 0.1.43ubuntu1 is an invalid version and will not be supported in a future release
      warnings.warn(
    Traceback (most recent call last):
      File "/usr/local/bin/pip", line 6, in <module>
        from pkg_resources import load_entry_point
      File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3267, in <module>
        def _initialize_master_working_set():
      File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3241, in _call_aside
        f(*args, **kwargs)
      File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3279, in _initialize_master_working_set
        working_set = WorkingSet._build_master()
      File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 573, in _build_master
        ws.require(__requires__)
      File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 891, in require
        needed = self.resolve(parse_requirements(requirements))
      File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 777, in resolve
        raise DistributionNotFound(req, requirers)
    pkg_resources.DistributionNotFound: The 'pip==9.0.1' distribution was not found and is required by the application


Upvote
1


So you have 2 versions of Python 3.10 and I'm guessing that ` pip ` is
pointing at the wrong one? I could be wrong though.

Let's take a look at these:


32 posts


Best
u/OGChoolinChad avatar
OGChoolinChad
•
2y ago
I’ve seen this before too. Ended up deleting the package that failed cause I didn’t use it and didn’t see an issue after. Not sure if that helps in your case though


Mundane-Explanation6
OP
•
2y ago
Hey I am glad I was able to help. I am still learning ros. so, project is on kind of hold.


we need to downgrade the setuptools to 58.2.0 by running this pip3 install setuptools==58.2.0


Questions about applications and software


###  [ Re: python3.7 distutils broken on last update
](./viewtopic.php?p=1555714&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0#p1555714)


###  [ Re: python3.7 distutils broken on last update
](./viewtopic.php?p=1555739&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0#p1555739)


There is probably a way to make ` pip ` point at the right place directly
without using an alias (using ` update-alternatives ` maybe?) but I'll have to
look into it, don't know it too well.


__ Search  [ __ Advanced search
](./search.php?sid=c29dfe945ad3e8c75d45f864f02a8653 "Advanced search")


Share
Share


     **Posts:** [ 61 ](./search.php?author_id=159404&sr=posts&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)
     **Joined:** Tue Jan 27, 2015 10:59 am


Do you have a ` /usr/bin/pip ` or ` /usr/bin/pip3 ` file? Can you show


[ Website  ](https://github.com/spamegg1/ "Website")


Code:  Select all


apt install python3-pip


**Forum rules**
Before you post read [ how to get help
](https://forums.linuxmint.com/viewtopic.php?f=17&t=83444) . Topics in this
forum are automatically closed 6 months after creation.


    $ cat /usr/local/bin/pip
    #!/usr/bin/python3
    # EASY-INSTALL-ENTRY-SCRIPT: 'pip==9.0.1','console_scripts','pip'
    __requires__ = 'pip==9.0.1'
    import re
    import sys
    from pkg_resources import load_entry_point

    if __name__ == '__main__':
        sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
        sys.exit(
            load_entry_point('pip==9.0.1', 'console_scripts', 'pip')()
        )


[ endlisnis
](./memberlist.php?mode=viewprofile&u=159404&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)


[ __ Return to “Software & Applications”
](./viewforum.php?f=47&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)


[ __ Post
](./viewtopic.php?p=1555725&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0#p1555725
"Post") by **[ endlisnis
](./memberlist.php?mode=viewprofile&u=159404&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)
** »  Thu Nov 22, 2018 2:15 pm


###  [ Re: python3.7 distutils broken on last update
](./viewtopic.php?p=1555468&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0#p1555468)


r/arduino
bug in code 0f "Arduino based UV sterilization box" Please help me out immediately! The servo motors are not working properly
3 comments
r/arduino
hii can some1 help me stop the buzzer? i tried using noTone but i get an error message which I included at the bottom
1 upvote · 4 comments
r/symfony
How to resolve ERR_CONNECTION_REFUSED error
4 comments
TOP POSTS
Reddit
reReddit: Top posts of August 25, 2022
Reddit
reReddit: Top posts of August 2022
Reddit
reReddit: Top posts of 2022


Upvote
1


[ __ Post
](./viewtopic.php?p=1555737&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0#p1555737
"Post") by **[ endlisnis
](./memberlist.php?mode=viewprofile&u=159404&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)
** »  Thu Nov 22, 2018 2:51 pm


     **Posts:** [ 5038 ](./search.php?author_id=261886&sr=posts&sid=c29dfe945ad3e8c75d45f864f02a8653)
     **Joined:** Mon Oct 28, 2019 2:34 am
     **Contact:**


This might be due to the Deadsnakes PPA you added.


* [ __ Print view  ](./viewtopic.php?t=282012&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0&view=print "Print view")


[ __ Post
](./viewtopic.php?p=1555758&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0#p1555758
"Post") by **[ endlisnis
](./memberlist.php?mode=viewprofile&u=159404&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)
** »  Thu Nov 22, 2018 3:43 pm


###  [ Re: python3.7 distutils broken on last update
](./viewtopic.php?p=1555737&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0#p1555737)


    $ inxi -Fxxxrz
    System:
      Kernel: 5.15.0-57-generic x86_64 bits: 64 compiler: gcc v: 11.3.0
        Desktop: Cinnamon 5.4.12 tk: GTK 3.24.33 wm: Mutter vt: 7
        dm: LightDM 1.30.0 Distro: Linux Mint 21 Vanessa base: Ubuntu 22.04 jammy
    Machine:
      Type: Laptop System: Dell product: Latitude 7490 v: N/A
        serial: <superuser required> Chassis: type: 10 serial: <superuser required>
      Mobo: Dell model: 0KP0FT v: A00 serial: <superuser required> UEFI: Dell
        v: 1.30.0 date: 11/20/2022
    Battery:
      ID-1: BAT0 charge: 43.2 Wh (89.1%) condition: 48.5/60.0 Wh (80.9%)
        volts: 7.8 min: 7.6 model: SMP DELL DW3WC64 type: Li-poly serial: <filter>
        status: Discharging
    CPU:
      Info: quad core model: Intel Core i7-8650U bits: 64 type: MT MCP
        smt: enabled arch: Coffee Lake rev: A cache: L1: 256 KiB L2: 1024 KiB
        L3: 8 MiB
      Speed (MHz): avg: 848 high: 900 min/max: 400/4200 cores: 1: 898 2: 816
        3: 900 4: 882 5: 856 6: 836 7: 800 8: 800 bogomips: 33599
      Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
    Graphics:
      Device-1: Intel UHD Graphics 620 vendor: Dell driver: i915 v: kernel ports:
        active: eDP-1 empty: DP-1, DP-2, HDMI-A-1, HDMI-A-2 bus-ID: 00:02.0
        chip-ID: 8086:5917 class-ID: 0300
      Device-2: Microdia Integrated_Webcam_HD type: USB driver: uvcvideo
        bus-ID: 1-5:2 chip-ID: 0c45:6717 class-ID: 0e02
      Display: x11 server: X.Org v: 1.21.1.3 driver: X: loaded: modesetting
        unloaded: fbdev,vesa gpu: i915 display-ID: :0 screens: 1
      Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.0x11.2")
        s-diag: 582mm (22.9")
      Monitor-1: eDP-1 model: LG res: 1920x1080 hz: 60 dpi: 158
        size: 309x174mm (12.2x6.9") diag: 355mm (14") modes: 1920x1080
      OpenGL: renderer: Mesa Intel UHD Graphics 620 (KBL GT2)
        v: 4.6 Mesa 22.0.5 direct render: Yes
    Audio:
      Device-1: Intel Sunrise Point-LP HD Audio vendor: Dell
        driver: snd_hda_intel v: kernel bus-ID: 00:1f.3 chip-ID: 8086:9d71


__ Top


    Active apt repos in: /etc/apt/sources.list.d/deadsnakes-ppa-jammy.list
        1: deb http://ppa.launchpad.net/deadsnakes/ppa/ubuntu jammy main


    Packages: apt: 3354
      No active apt repos in: /etc/apt/sources.list
      Active apt repos in: /etc/apt/sources.list.d/google-chrome.list
        1: deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
      Active apt repos in: /etc/apt/sources.list.d/linrunner-tlp-focal.list
        1: deb http://ppa.launchpad.net/linrunner/tlp/ubuntu jammy main
      Active apt repos in: /etc/apt/sources.list.d/linuxuprising-apps-focal.list
        1: deb http://ppa.launchpad.net/linuxuprising/apps/ubuntu jammy main
      Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list
        1: deb http://linux-mint.froonix.org vanessa main upstream import backport
        2: deb http://archive.ubuntu.com/ubuntu jammy main restricted universe multiverse
        3: deb http://archive.ubuntu.com/ubuntu jammy-updates main restricted universe multiverse
        4: deb http://archive.ubuntu.com/ubuntu jammy-backports main restricted universe multiverse
        5: deb http://security.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse
      No active apt repos in: /etc/apt/sources.list.d/pulb-mailnag-focal.list
      Active apt repos in: /etc/apt/sources.list.d/signal-xenial.list
        1: deb [arch=amd64 signed-by=/usr/share/keyrings/signal-desktop-keyring.gpg] https://updates.signal.org/desktop/apt xenial main
      Active apt repos in: /etc/apt/sources.list.d/skype-stable.list
        1: deb [arch=amd64] https://repo.skype.com/deb stable main
      Active apt repos in: /etc/apt/sources.list.d/slimbook-slimbook-focal.list
        1: deb http://ppa.launchpad.net/slimbook/slimbook/ubuntu jammy main
      Active apt repos in: /etc/apt/sources.list.d/spotify.list
        1: deb http://repository.spotify.com stable non-free
      No active apt repos in: /etc/apt/sources.list.d/systray-x.list
      Active apt repos in: /etc/apt/sources.list.d/vscode.list
        1: deb [arch=amd64,arm64,armhf signed-by=/etc/apt/trusted.gpg.d/packages.microsoft.gpg] https://packages.microsoft.com/repos/code stable main
      Active apt repos in: /etc/apt/sources.list.d/yarn.list
        1: deb https://dl.yarnpkg.com/debian/ stable main


[ __ Post
](./viewtopic.php?p=1555459&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0#p1555459
"Post") by ** ajgringo619  ** »  Wed Nov 21, 2018 11:26 pm


     **Posts:** [ 40 ](./search.php?author_id=322258&sr=posts&sid=c29dfe945ad3e8c75d45f864f02a8653)
     **Joined:** Fri Mar 18, 2022 1:13 pm


     **Posts:** [ 61 ](./search.php?author_id=159404&sr=posts&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)
     **Joined:** Tue Jan 27, 2015 10:59 am


Code:  Select all


__ __


* [ __ Print view  ](./viewtopic.php?t=388853&sid=c29dfe945ad3e8c75d45f864f02a8653&view=print "Print view")


Texas_Technician
OP
•
1y ago
Thank you. I'll give this a go.


     ➜ /usr/bin/pip --version
    pip 22.0.2 from /usr/lib/python3/dist-packages/pip (python 3.10)

     ➜ /usr/bin/pip3 --version
    pip 22.0.2 from /usr/lib/python3/dist-packages/pip (python 3.10)


Finished <<< examples_rclcpp_minimal_composition [1min 7s]
Finished <<< examples_rclcpp_minimal_action_client [1min 8s]
Finished <<< examples_rclcpp_cbg_executor [1min 9s]
Finished <<< examples_rclcpp_minimal_publisher [1min 19s]
[Processing: examples_rclcpp_minimal_subscriber, examples_rclcpp_wait_set]ber:build - 1min 48.6s] ...
--- stderr: examples_rclcpp_minimal_subscriber
CMake Error at ament_cmake_symlink_install/ament_cmake_symlink_install.cmake:267 (message):
  ament_cmake_symlink_install_targets() can't find
  'C:/dev/ros2_ws/build/examples_rclcpp_minimal_subscriber/Release/wait_set_subscriber_library.lib'
Call Stack (most recent call first):
  ament_cmake_symlink_install_targets_3_Release.cmake:1 (ament_cmake_symlink_install_targets)
  ament_cmake_symlink_install/ament_cmake_symlink_install.cmake:323 (include)
  cmake_install.cmake:36 (include)


I think there used to be a ` python3.7-distutils ` . I'm pretty sure I had it
installed back when I had a working python3.7. The most recent upgrade
(originally) failed to install because the core python3.7 package contained
files that were also in ` python3.7-distutils ` . I figured someone was re-
arranging the packages, so I removed everything and tried to re-install from
scratch, which got me in this situation.


Downvote
Reply
reply


[ __ Post
](./viewtopic.php?p=1555739&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0#p1555739
"Post") by ** gm10  ** »  Thu Nov 22, 2018 2:54 pm


Welcome to the Linux Mint forums!


###  [ Re: python3.7 distutils broken on last update
](./viewtopic.php?p=1555758&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0#p1555758)


[ Locked  __
](./posting.php?mode=reply&t=282012&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0 "This
topic is locked, you cannot edit posts or make further replies.")


I have not changed anything. Only made the update from 20.3 to 21. Before
everything worked.
Deadsnakes PPA was only for testing. Did not work before. It is already gone
again.


    $ apt search distutils
    p   python-distutils-extra                                                              - enhancements to the Python build system
    p   python-stsci.distutils                                                              - Python packaging utilities for STScI's packages
    i A python3-distutils                                                                   - distutils package for Python 3.x
    v   python3-distutils:i386                                                              -
    p   python3-distutils-extra                                                             - enhancements to the Python3 build system
    p   python3-stsci.distutils                                                             - Python3 packaging utilities for STScI's packages
    v   python3.6-distutils                                                                 -
    v   python3.7-distutils


Back
r/learnpython icon
Go to learnpython
r/learnpython
•
1 yr. ago
Texas_Technician


###  [ Re: pip3 - an invalid version and will not be supported in a future
release
](./viewtopic.php?p=2279841&sid=c29dfe945ad3e8c75d45f864f02a8653#p2279841)


If you must install packages "globally" you should install to your user site packages with the --user flag like pip install --user.


Share
Share


__ Top


     Level 14
![Level 14](./images/ranks/12.gif)


Code:  Select all


Ad Post Creative Image Thumbnail
Hard drives won't keep up with AI demands for long. Don't let underperforming data storage hold you back from your AI goals.
solidigm.com
Learn More


I cannot run "pip" as root or a sudo user in ubuntu and I don't know why, please help.
I'm getting this when I try to run pip as root or as a sudo user:


###  [ Re: pip3 - an invalid version and will not be supported in a future
release
](./viewtopic.php?p=2279763&sid=c29dfe945ad3e8c75d45f864f02a8653#p2279763)


Best
u/Frankelstner avatar
Frankelstner
•
1y ago
Apparently you need to navigate into /usr/lib/python3/dist-packages/OpenSSL/crypto.py and comment out line 1573. Then pip install/upgrade the offending package (pyopenssl). https://stackoverflow.com/a/73932621


Upvote
7


u/thugmunch avatar
thugmunch
•
10mo ago
For those that can't access the Chinese website in step 3: tldr: go to /src/examples/rclcpp/topics/minimul_subscriber/CMakeLists.txt


u/Jugleer avatar
Jugleer
•
1y ago
Absolute legend! Thanks for this. Saved me a lot of time :)


[ __ Post
](./viewtopic.php?p=1555744&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0#p1555744
"Post") by **[ endlisnis
](./memberlist.php?mode=viewprofile&u=159404&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)
** »  Thu Nov 22, 2018 3:00 pm


[ endlisnis
](./memberlist.php?mode=viewprofile&u=159404&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)


[ __ Post
](./viewtopic.php?p=1555434&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0#p1555434
"Post") by **[ endlisnis
](./memberlist.php?mode=viewprofile&u=159404&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)
** »  Wed Nov 21, 2018 8:20 pm


* __ Quick links


Downvote
Reply
reply


[ __ Post
](./viewtopic.php?p=1555726&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0#p1555726
"Post") by ** gm10  ** »  Thu Nov 22, 2018 2:23 pm


** gm10  **


[ spamegg
](./memberlist.php?mode=viewprofile&u=261886&sid=c29dfe945ad3e8c75d45f864f02a8653)


    ~$ which python
    ~$ which python3
    /usr/bin/python3
    ~$ which python3.10
    /usr/bin/python3.10
    ~$ which pip
    /usr/local/bin/pip
    ~$ which pip3
    /usr/local/bin/pip3


[ JonDoe12345
](./memberlist.php?mode=viewprofile&u=322258&sid=c29dfe945ad3e8c75d45f864f02a8653)


     Level 2
![Level 2](./images/ranks/2.gif)


As I said, it's provided by ` libpython3.7-stdlib ` , which is a hard
dependency of ` python3.7 ` , so if you installed the regular packages from
Ubuntu's repositories you must have it.


    sudo python3 --version
    Python 3.10.6


    /usr/local/bin$ ls
    2to3-3.6	  easy_install-3.6  n	  pip2.7    python3.6	       yelp
    apt		  electrum	    node  pip3	    python3.6m
    arduino		  gnome-help	    npm   pip3.4    python3.6m-config
    easy_install	  highlight-mint    npx   pip3.5    pyvenv-3.6
    easy_install-2.7  idle3.6	    pip   pip3.6    qr
    easy_install-3.4  mint-sha256sum    pip2  pydoc3.6  search


Add a Comment
Sort by:


Skip to main content
I cannot run "pip" as root or a sudo user in ubuntu and I don't know why, please help. : r/learnpython


  * [ ↳ Your Artwork  ](./viewforum.php?f=19&sid=c29dfe945ad3e8c75d45f864f02a8653)
  * [ Chat  ](./viewforum.php?f=4&sid=c29dfe945ad3e8c75d45f864f02a8653)
  * [ ↳ Introduce Yourself  ](./viewforum.php?f=180&sid=c29dfe945ad3e8c75d45f864f02a8653)
  * [ ↳ Chat about Linux Mint  ](./viewforum.php?f=60&sid=c29dfe945ad3e8c75d45f864f02a8653)
  * [ ↳ Chat about Linux  ](./viewforum.php?f=61&sid=c29dfe945ad3e8c75d45f864f02a8653)
  * [ ↳ Open Chat  ](./viewforum.php?f=58&sid=c29dfe945ad3e8c75d45f864f02a8653)
  * [ ↳ Suggestions & Feedback  ](./viewforum.php?f=29&sid=c29dfe945ad3e8c75d45f864f02a8653)
  * [ International  ](./viewforum.php?f=62&sid=c29dfe945ad3e8c75d45f864f02a8653)
  * [ ↳ Translations  ](./viewforum.php?f=43&sid=c29dfe945ad3e8c75d45f864f02a8653)
  * [ ↳ Deutsch - German  ](./viewforum.php?f=64&sid=c29dfe945ad3e8c75d45f864f02a8653)
  * [ ↳ Español - Spanish  ](./viewforum.php?f=68&sid=c29dfe945ad3e8c75d45f864f02a8653)
  * [ ↳ Français - French  ](./viewforum.php?f=63&sid=c29dfe945ad3e8c75d45f864f02a8653)
  * [ ↳ Italiano - Italian  ](./viewforum.php?f=65&sid=c29dfe945ad3e8c75d45f864f02a8653)
  * [ ↳ Nederlands - Dutch  ](./viewforum.php?f=67&sid=c29dfe945ad3e8c75d45f864f02a8653)
  * [ ↳ Português - Portuguese  ](./viewforum.php?f=72&sid=c29dfe945ad3e8c75d45f864f02a8653)
  * [ ↳ Русский - Russian  ](./viewforum.php?f=75&sid=c29dfe945ad3e8c75d45f864f02a8653)
  * [ ↳ Suomi - Finnish  ](./viewforum.php?f=71&sid=c29dfe945ad3e8c75d45f864f02a8653)
  * [ ↳ Other Languages  ](./viewforum.php?f=258&sid=c29dfe945ad3e8c75d45f864f02a8653)
  * [ ↳ Čeština-Slovenčina - Czech-Slovak  ](./viewforum.php?f=259&sid=c29dfe945ad3e8c75d45f864f02a8653)
  * [ ↳ Magyar - Hungarian  ](./viewforum.php?f=260&sid=c29dfe945ad3e8c75d45f864f02a8653)
  * [ ↳ 日本語 - Japanese  ](./viewforum.php?f=261&sid=c29dfe945ad3e8c75d45f864f02a8653)
  * [ ↳ Polski - Polish  ](./viewforum.php?f=262&sid=c29dfe945ad3e8c75d45f864f02a8653)
  * [ ↳ Svenska - Swedish  ](./viewforum.php?f=263&sid=c29dfe945ad3e8c75d45f864f02a8653)
  * [ ↳ Українська - Ukrainian  ](./viewforum.php?f=264&sid=c29dfe945ad3e8c75d45f864f02a8653)


     **Posts:** [ 61 ](./search.php?author_id=159404&sr=posts&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)
     **Joined:** Tue Jan 27, 2015 10:59 am


Code:  Select all


###  [ Re: python3.7 distutils broken on last update
](./viewtopic.php?p=1555441&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0#p1555441)


###  [ Re: python3.7 distutils broken on last update
](./viewtopic.php?p=1555575&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0#p1555575)


Downvote
Reply
reply


__ Top


You should not use pip as root though. You should (as a normal user) do sudo -H pip install ... if you need something similar.


#  Linux Mint Forums


    Traceback (most recent call last):
      File "get-pip.py", line 20890, in <module>
        main()
      File "get-pip.py", line 197, in main
        bootstrap(tmpdir=tmpdir)
      File "get-pip.py", line 82, in bootstrap
        import pip._internal
      File "/tmp/tmpjlo_jzrg/pip.zip/pip/_internal/__init__.py", line 40, in <module>
      File "/tmp/tmpjlo_jzrg/pip.zip/pip/_internal/cli/autocompletion.py", line 8, in <module>
      File "/tmp/tmpjlo_jzrg/pip.zip/pip/_internal/cli/main_parser.py", line 8, in <module>
      File "/tmp/tmpjlo_jzrg/pip.zip/pip/_internal/cli/cmdoptions.py", line 17, in <module>
      File "/tmp/tmpjlo_jzrg/pip.zip/pip/_internal/locations.py", line 10, in <module>
    ImportError: cannot import name 'sysconfig' from 'distutils' (/usr/lib/python3.7/distutils/__init__.py)


Powered by [ phpBB ](https://www.phpbb.com/) ® Forum Software © phpBB Limited


[ Privacy  ](./ucp.php?mode=privacy&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0
"Privacy") | [ Terms
](./ucp.php?mode=terms&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0 "Terms")


__ Search  [ __ Advanced search
](./search.php?sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0 "Advanced search")


###  [ Re: python3.7 distutils broken on last update
](./viewtopic.php?p=1555717&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0#p1555717)


[ __ Post
](./viewtopic.php?p=1555575&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0#p1555575
"Post") by **[ endlisnis
](./memberlist.php?mode=viewprofile&u=159404&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)
** »  Thu Nov 22, 2018 8:32 am


Display:  All posts  1 day  7 days  2 weeks  1 month  3 months  6 months  1
year  Sort by:  Author  Post time  Subject  Direction:  Ascending  Descending


Share
Share


Downvote


  * [ __ Board index  ](./index.php?sid=c29dfe945ad3e8c75d45f864f02a8653)
  * All times are  UTC-04:00
  * [ __ Delete cookies  ](./ucp.php?mode=delete_cookies&sid=c29dfe945ad3e8c75d45f864f02a8653)
  * [ __ Contact us  ](./memberlist.php?mode=contactadmin&sid=c29dfe945ad3e8c75d45f864f02a8653)


[ __ Post
](./viewtopic.php?p=1555714&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0#p1555714
"Post") by ** ajgringo619  ** »  Thu Nov 22, 2018 1:51 pm


[ endlisnis
](./memberlist.php?mode=viewprofile&u=159404&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)


> [ endlisnis
> ](./memberlist.php?mode=viewprofile&u=159404&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)
> wrote: [ ⤴
> ](./viewtopic.php?p=1555725&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0#p1555725)
> Thu Nov 22, 2018 2:15 pm  I tried removing every single python3.7 package
> and re-installed. I ended up in the exact same situation. If my installation
> is somehow broken in a way that's not easy to get out of, I'm not above re-
> installing my OS, but I just want to make sure that's really what's going on
> here before I go that far. I might try a Linux Mint 19 docker container to
> see if I can reproduce this on a fresh image.


     Level 2
![Level 2](./images/ranks/2.gif)


__ Top


[ __ Post
](./viewtopic.php?p=1555461&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0#p1555461
"Post") by **[ endlisnis
](./memberlist.php?mode=viewprofile&u=159404&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)
** »  Wed Nov 21, 2018 11:39 pm


Code:  Select all


Mundane-Explanation6
OP
•
2y ago
I was building the example , I was going through the ros2 documentation tutorial.


[ spamegg
](./memberlist.php?mode=viewprofile&u=261886&sid=c29dfe945ad3e8c75d45f864f02a8653)


    $ apt version libpython3.7-stdlib
    3.7.1-1~18.04
    $ python3.7 -m pip

    Usage:
      /usr/bin/python3.7 -m pip <command> [options]


[ bug  ](/pypa/setuptools/labels/bug) [ Needs Triage
](/pypa/setuptools/labels/Needs%20Triage) Issues that need to be evaluated for
severity and status.  [ Waiting User Feedback
](/pypa/setuptools/labels/Waiting%20User%20Feedback)
##  Comments
[ ![@owend](https://avatars.githubusercontent.com/u/89825?s=80&v=4) ](/owend)
Copy link
###
**[ owend ](/owend) ** commented  Sep 12, 2023  •
edited
###  setuptools version
68.2.0
###  Python version
3.10
###  OS
Ubuntu
###  Additional environment information
_No response_
###  Description
This recent change in setuptools for 68.2.0 described as "Record normalized
requirements in dist.metadata object"
[ ` a641c78 `
](https://github.com/pypa/setuptools/commit/a641c78c7c4e91d85a8772434d046db56abd1576)
Probably breaks all downstream python packages built for ros2 using colcon.
[ colcon/colcon-python-setup-py#56 (comment)
](https://github.com/colcon/colcon-python-setup-py/issues/56#issue-1888257679)
This is going to cause a bunch of cascading failures in other projects. For
example:
[ ArduPilot/ardupilot#24862 (comment)
](https://github.com/ArduPilot/ardupilot/issues/24862#issuecomment-1714048295)
Stack Overflow is about to get really busy because the tutorials are also
broken.
[ https://robotics.stackexchange.com/questions/104054/building-example-
library-of-ros-2
](https://robotics.stackexchange.com/questions/104054/building-example-
library-of-ros-2)
This design flaw in colcon has been "known" since 2021:
[ colcon/colcon-core#454 ](https://github.com/colcon/colcon-core/issues/454)
But the ROS ecosystem is very large and this will probably take a while to
fix.


Downvote
Reply
reply


  File "/usr/share/python-wheels/requests-2.22.0-py2.py3-none-any.whl/requests/__init__.py", line 95, in <module>
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 655, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 618, in _load_backward_compatible
  File "<frozen zipimport>", line 259, in load_module
  File "/usr/share/python-wheels/urllib3-1.25.8-py2.py3-none-any.whl/urllib3/contrib/pyopenssl.py", line 46, in <module>
  File "/usr/lib/python3/dist-packages/OpenSSL/__init__.py", line 8, in <module>
    from OpenSSL import crypto, SSL
  File "/usr/lib/python3/dist-packages/OpenSSL/crypto.py", line 1553, in <module>
    class X509StoreFlags(object):
  File "/usr/lib/python3/dist-packages/OpenSSL/crypto.py", line 1573, in X509StoreFlags
    CB_ISSUER_CHECK = _lib.X509_V_FLAG_CB_ISSUER_CHECK
AttributeError: module 'lib' has no attribute 'X509_V_FLAG_CB_ISSUER_CHECK'


![@abravalheri](https://avatars.githubusercontent.com/u/320755?s=40&u=5105b96061b543d9d959ef085b769768e84014c3&v=4)
](/abravalheri) [ abravalheri ](/abravalheri) added the [ Waiting User
Feedback ](/pypa/setuptools/labels/Waiting%20User%20Feedback) label  Sep 12,
2023
[
![@asasine](https://avatars.githubusercontent.com/u/5421969?s=80&u=47b217da8b6c7d5db54b4b4616ae5a6664685b85&v=4)
](/asasine)
Copy link
###
**[ asasine ](/asasine) ** commented  Sep 12, 2023
[ @abravalheri ](https://github.com/abravalheri) I can confirm 68.2.1
mitigates the issue.

---

👍  2  abravalheri and owend reacted with thumbs up emoji
All reactions
  * 👍  2 reactions
Sorry, something went wrong.
[
![@abravalheri](https://avatars.githubusercontent.com/u/320755?s=80&u=5105b96061b543d9d959ef085b769768e84014c3&v=4)
](/abravalheri)
Copy link
Contributor
###
**[ abravalheri ](/abravalheri) ** commented  Sep 12, 2023
Thank you very much [ @asasine ](https://github.com/asasine) for confirming.
[ @owend ](https://github.com/owend) , please let me know if that is enough
for this issue. If that is OK, we can go ahead and close.

---

All reactions
Sorry, something went wrong.
[ ![@owend](https://avatars.githubusercontent.com/u/89825?s=80&v=4) ](/owend)
Copy link
Author
###
**[ owend ](/owend) ** commented  Sep 12, 2023
Fixed with 68.2.1, thanks!


     Level 1
![Level 1](./images/ranks/1.gif)


PS. this error output is after downgrading the setuptools , if you are on setuptools 59.0.0 you will also recieve warning that buidling from setup.py is depreciated. this is the main reason for downgrading.


__ Search  [ __ Advanced search
](./search.php?sid=c29dfe945ad3e8c75d45f864f02a8653 "Advanced search")


32 posts


Jump to  __


Upvote
1


__ Contact spamegg


     **Posts:** [ 40 ](./search.php?author_id=322258&sr=posts&sid=c29dfe945ad3e8c75d45f864f02a8653)
     **Joined:** Fri Mar 18, 2022 1:13 pm


Get app
Log In


Share
Share


r/ROS
Current search is within r/ROS
Remove r/ROS filter and expand search to all of Reddit
Search in r/ROS


[ ![User
avatar](//secure.gravatar.com/avatar/ef8358afee83a4713242d5cb4c6dbdb3?s=120)
](./memberlist.php?mode=viewprofile&u=261886&sid=c29dfe945ad3e8c75d45f864f02a8653)


[ JonDoe12345
](./memberlist.php?mode=viewprofile&u=322258&sid=c29dfe945ad3e8c75d45f864f02a8653)


** gm10  **


> [ endlisnis
> ](./memberlist.php?mode=viewprofile&u=159404&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)
> wrote: [ ⤴
> ](./viewtopic.php?p=1555717&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0#p1555717)
> Thu Nov 22, 2018 1:56 pm  If Python3.7 is fundamentally broken, shouldn't
> that be fixed? I'm assuming that this was an Ubuntu package not customized
> for Linux Mint. I guess I should report it to Ubuntu?


[ __ Post
](./viewtopic.php?p=2279732&sid=c29dfe945ad3e8c75d45f864f02a8653#p2279732
"Post") by **[ spamegg
](./memberlist.php?mode=viewprofile&u=261886&sid=c29dfe945ad3e8c75d45f864f02a8653)
** »  Sat Jan 07, 2023 10:43 am


The best option would be to make a virtual env for each project. This will also keep you from ending up with hundreds or thousands of packages in one environment and confusion over version requirements.


u/aarivera avatar
aarivera
•
2y ago
Thank you! This worked for me. How's your project going?


Code:  Select all


Skip to content


  * [ Important Notices  ](./viewforum.php?f=9&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)
  * [ ↳ Rules & Notices  ](./viewforum.php?f=17&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)
  * [ ↳ Releases & Announcements  ](./viewforum.php?f=143&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)
  * [ ↳ Main Edition Support  ](./viewforum.php?f=126&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)
  * [ ↳ Beginner Questions  ](./viewforum.php?f=90&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)
  * [ ↳ Installation & Boot  ](./viewforum.php?f=46&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)
  * [ ↳ Software & Applications  ](./viewforum.php?f=47&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)
  * [ ↳ Hardware Support  ](./viewforum.php?f=49&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)
  * [ ↳ Graphics Cards & Monitors  ](./viewforum.php?f=59&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)
  * [ ↳ Printers & Scanners  ](./viewforum.php?f=51&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)
  * [ ↳ Storage  ](./viewforum.php?f=50&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)
  * [ ↳ Sound  ](./viewforum.php?f=48&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)
  * [ ↳ Networking  ](./viewforum.php?f=52&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)
  * [ ↳ Virtual Machines  ](./viewforum.php?f=231&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)
  * [ ↳ Desktop & Window Managers  ](./viewforum.php?f=54&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)
  * [ ↳ Cinnamon  ](./viewforum.php?f=208&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)
  * [ ↳ MATE  ](./viewforum.php?f=206&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)
  * [ ↳ Xfce  ](./viewforum.php?f=57&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)
  * [ ↳ Other topics  ](./viewforum.php?f=18&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)
  * [ ↳ Non-technical Questions  ](./viewforum.php?f=6&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)
  * [ ↳ Tutorials  ](./viewforum.php?f=42&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)
  * [ Debian Edition Support  ](./viewforum.php?f=114&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)
  * [ ↳ LMDE Forums  ](./viewforum.php?f=244&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)
  * [ ↳ Beginner Questions  ](./viewforum.php?f=245&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)
  * [ ↳ Installation & Boot  ](./viewforum.php?f=246&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)
  * [ ↳ Software & Applications  ](./viewforum.php?f=247&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)
  * [ ↳ Hardware Support  ](./viewforum.php?f=248&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)
  * [ ↳ Networking  ](./viewforum.php?f=249&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)
  * [ ↳ Tutorials  ](./viewforum.php?f=250&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)
  * [ ↳ Other Topics & Open Discussion  ](./viewforum.php?f=251&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)
  * [ ↳ LMDE Archive  ](./viewforum.php?f=235&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)
  * [ Interests  ](./viewforum.php?f=255&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)
  * [ ↳ Gaming  ](./viewforum.php?f=225&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)
  * [ ↳ Scripts & Bash  ](./viewforum.php?f=213&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)
  * [ ↳ Programming & Development  ](./viewforum.php?f=120&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)
  * [ ↳ Cinnamon on Wayland  ](./viewforum.php?f=266&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)
  * [ Customization  ](./viewforum.php?f=210&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)
  * [ ↳ Themes, Icons & Wallpaper  ](./viewforum.php?f=211&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)
  * [ ↳ Compiz, Conky, Docks & Widgets  ](./viewforum.php?f=212&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)
  * [ ↳ Screenshots  ](./viewforum.php?f=214&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)


###  [ Re: python3.7 distutils broken on last update
](./viewtopic.php?p=1555744&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0#p1555744)


Back
r/ROS icon
Go to ROS
r/ROS
•
2 yr. ago
Mundane-Explanation6


    which python
    which python3
    which python3.10
    which pip
    which pip3
    pip --version
    pip3 --version


[ __ Post
](./viewtopic.php?p=1555468&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0#p1555468
"Post") by ** ajgringo619  ** »  Wed Nov 21, 2018 11:59 pm


     **Posts:** [ 61 ](./search.php?author_id=159404&sr=posts&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)
     **Joined:** Tue Jan 27, 2015 10:59 am


Questions about applications and software


---
Failed   <<< examples_rclcpp_minimal_subscriber [1min 53s, exited with code 1]
Aborted  <<< examples_rclcpp_wait_set [2min 2s]


Last edited by [ LockBot
](./memberlist.php?mode=viewprofile&u=338753&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)
on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
**Reason:** _Topic automatically closed 6 months after creation. New replies
are no longer allowed._


Upvote
1


Share
Share


Upvote
8


If Python3.7 is fundamentally broken, shouldn't that be fixed? I'm assuming
that this was an Ubuntu package not customized for Linux Mint. I guess I
should report it to Ubuntu?


###  [ Re: python3.7 distutils broken on last update
](./viewtopic.php?p=1555726&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0#p1555726)


    $ cat /usr/bin/pip
    #!/usr/bin/python3
    # -*- coding: utf-8 -*-
    import re
    import sys
    from pip._internal.cli.main import main
    if __name__ == "__main__":
        sys.argv[0] = re.sub(r"(-script\.pyw|\.exe)?$", "", sys.argv[0])
        sys.exit(main())


  * [ ↳ Your Artwork  ](./viewforum.php?f=19&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)
  * [ Chat  ](./viewforum.php?f=4&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)
  * [ ↳ Introduce Yourself  ](./viewforum.php?f=180&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)
  * [ ↳ Chat about Linux Mint  ](./viewforum.php?f=60&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)
  * [ ↳ Chat about Linux  ](./viewforum.php?f=61&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)
  * [ ↳ Open Chat  ](./viewforum.php?f=58&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)
  * [ ↳ Suggestions & Feedback  ](./viewforum.php?f=29&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)
  * [ International  ](./viewforum.php?f=62&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)
  * [ ↳ Translations  ](./viewforum.php?f=43&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)
  * [ ↳ Deutsch - German  ](./viewforum.php?f=64&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)
  * [ ↳ Español - Spanish  ](./viewforum.php?f=68&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)
  * [ ↳ Français - French  ](./viewforum.php?f=63&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)
  * [ ↳ Italiano - Italian  ](./viewforum.php?f=65&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)
  * [ ↳ Nederlands - Dutch  ](./viewforum.php?f=67&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)
  * [ ↳ Português - Portuguese  ](./viewforum.php?f=72&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)
  * [ ↳ Русский - Russian  ](./viewforum.php?f=75&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)
  * [ ↳ Suomi - Finnish  ](./viewforum.php?f=71&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)
  * [ ↳ Other Languages  ](./viewforum.php?f=258&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)
  * [ ↳ Čeština-Slovenčina - Czech-Slovak  ](./viewforum.php?f=259&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)
  * [ ↳ Magyar - Hungarian  ](./viewforum.php?f=260&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)
  * [ ↳ 日本語 - Japanese  ](./viewforum.php?f=261&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)
  * [ ↳ Polski - Polish  ](./viewforum.php?f=262&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)
  * [ ↳ Svenska - Swedish  ](./viewforum.php?f=263&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)
  * [ ↳ Українська - Ukrainian  ](./viewforum.php?f=264&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)


#  Linux Mint Forums


Unfortunately the root cause is that colcon is feeding output from setup.py
into a compiler and expected compilable code but now gets a string
representation which is not compilable. The extra <> characters now cause a
syntax error.
###  Expected behavior
Builds using 68.1 do work. Since this is an internal meta-data structure
change which seems to be an optimization? I would expect the easiest fix is to
revert.
###  How to Reproduce
Try to build any ROS2 python package built with 68.2
Can add more details in a bit.
###  Output

     '_normalized_install_requires': {'setuptools': <Requirement('setuptools')>}
                                                    ^
    SyntaxError: invalid syntax

---

The text was updated successfully, but these errors were encountered:

👍  1  asasine reacted with thumbs up emoji
All reactions
  * 👍  1 reaction
[ ![@owend](https://avatars.githubusercontent.com/u/89825?s=40&v=4) ](/owend)
[ owend ](/owend) added [ bug ](/pypa/setuptools/labels/bug) [ Needs Triage
](/pypa/setuptools/labels/Needs%20Triage) Issues that need to be evaluated for
severity and status.  labels  Sep 12, 2023
[ ![@owend](https://avatars.githubusercontent.com/u/89825?s=40&v=4) ](/owend)
[ owend ](/owend) changed the title ~~[BUG]~~ [BUG] Internal 68.2.0 change
breaks all ROS2 python packages  Sep 12, 2023
[
![@abravalheri](https://avatars.githubusercontent.com/u/320755?s=80&u=5105b96061b543d9d959ef085b769768e84014c3&v=4)
](/abravalheri)
Copy link
Contributor
###
**[ abravalheri ](/abravalheri) ** commented  Sep 12, 2023  •


Code:  Select all


14
comments


     Level 2
![Level 2](./images/ranks/2.gif)


__ Top


Thanks for the response. I tried that out ` apt install python3.7-dev ` . That
install succeeded, but it didn't fix the underlying python pip problem. Exact
same output as before.


[ __ Post
](./viewtopic.php?p=1555717&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0#p1555717
"Post") by **[ endlisnis
](./memberlist.php?mode=viewprofile&u=159404&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)
** »  Thu Nov 22, 2018 1:56 pm


Upvote
7


4 upvotes · 3 comments
r/golang
[code review request] Coming from Java world, want to make sure I'm not getting lost doing Golang
26 upvotes · 28 comments
r/seedboxes
Need Some Assistance, FeralHosting and Updating Qbittorrent-nox
3 upvotes · 7 comments
r/sveltejs
Can people outside my app fetch from +page.server.js?
20 upvotes · 16 comments
r/TomatoFTW
python3 errors in tomato-nvram
4 upvotes · 7 comments
TOP POSTS
Reddit
reReddit: Top posts of January 23, 2023
Reddit
reReddit: Top posts of January 2023
Reddit
reReddit: Top posts of 2023


OK, it looks like ` /usr/local/bin/pip ` and ` /usr/local/bin/pip3 ` are the
problems. Whereas your ` /usr/bin/pip ` and ` /usr/bin/pip3 ` look exactly
like mine.

Just to be sure, run ` /usr/bin/pip --version ` on the Terminal. It should
look like this:


ll /usr/lib/python3.7/distutils/__init__.py


###  [ python3.7 distutils broken on last update
](./viewtopic.php?p=1555434&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0#p1555434)


Upvote
1


[ spamegg
](./memberlist.php?mode=viewprofile&u=261886&sid=c29dfe945ad3e8c75d45f864f02a8653)


Summary: 20 packages finished [2min 4s]
  1 package failed: examples_rclcpp_minimal_subscriber
  1 package aborted: examples_rclcpp_wait_set
  1 package had stderr output: examples_rclcpp_minimal_subscriber
follow these steps-


###  [ Re: pip3 - an invalid version and will not be supported in a future
release
](./viewtopic.php?p=2279862&sid=c29dfe945ad3e8c75d45f864f02a8653#p2279862)


[ Locked  __
](./posting.php?mode=reply&t=388853&sid=c29dfe945ad3e8c75d45f864f02a8653 "This
topic is locked, you cannot edit posts or make further replies.")


In the line "add_library(wait_set_subscriber_library SHARED", Replace "SHARED" with "STATIC" That's it and build again. I pasted the imgur link of the screenshot of the page if you wanna see the translated English version.


FYI: "python3-pip" only installs pip for python3.6 (or really just the default
system python3 version). If you need pip for any other python version that you
have installed, then you must install it using "get-pip" or similar
mechanisms.


  * [ __ Board index  ](./index.php?sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0) [ Main Edition Support  ](./viewforum.php?f=126&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0) [ Software & Applications  ](./viewforum.php?f=47&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)
  * [ __ Search  ](./search.php?sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0 "View the advanced search options")


if you have any problem or question feel free to DM or messege me


There is nothing broken about it, you likely just removed ` python3-distutils
` (which provides the virtual package you are looking for) and/or `
libpython3.7-stdlib ` (which provides the file you are missing) and/or
otherwise broke your install. In case of doubt remove all of python3.7 and
reinstall the whole thing.


     **Posts:** [ 61 ](./search.php?author_id=159404&sr=posts&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)
     **Joined:** Tue Jan 27, 2015 10:59 am


Although it does seem like it's the openssl package that needs reinstalling, or at least updating.


__ Top


Downvote
Reply
reply


__ __


**Forum rules**
Before you post read [ how to get help
](https://forums.linuxmint.com/viewtopic.php?f=17&t=83444) . Topics in this
forum are automatically closed 6 months after creation.


    ~$ pip --version
    /usr/lib/python3/dist-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: 1.1build1 is an invalid version and will not be supported in a future release
      warnings.warn(
    /usr/lib/python3/dist-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: 0.1.43ubuntu1 is an invalid version and will not be supported in a future release
      warnings.warn(
    Traceback (most recent call last):
      File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 573, in _build_master
        ws.require(__requires__)
      File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 891, in require
        needed = self.resolve(parse_requirements(requirements))
      File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 782, in resolve
        raise VersionConflict(dist, req).with_context(dependent_req)
    pkg_resources.VersionConflict: (pip 22.0.2 (/usr/lib/python3/dist-packages), Requirement.parse('pip==9.0.1'))

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "/usr/local/bin/pip", line 6, in <module>
        from pkg_resources import load_entry_point
      File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3267, in <module>
        def _initialize_master_working_set():
      File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3241, in _call_aside
        f(*args, **kwargs)
      File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3279, in _initialize_master_working_set
        working_set = WorkingSet._build_master()
      File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 575, in _build_master
        return cls._build_from_requirements(__requires__)
      File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 588, in _build_from_requirements
        dists = ws.resolve(reqs, Environment())
      File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 777, in resolve
        raise DistributionNotFound(req, requirers)
    pkg_resources.DistributionNotFound: The 'pip==9.0.1' distribution was not found and is required by the application


r/learnpython
Current search is within r/learnpython
Remove r/learnpython filter and expand search to all of Reddit
Search in r/learnpython


check setuptools version by running pip3 list | findstr setuptools if output is setuptools 58.2.0 then go to 3rd step otherwise follow through 2nd step


    ~$ pip3 --version
    /usr/lib/python3/dist-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: 1.1build1 is an invalid version and will not be supported in a future release
      warnings.warn(
    /usr/lib/python3/dist-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: 0.1.43ubuntu1 is an invalid version and will not be supported in a future release
      warnings.warn(
    Traceback (most recent call last):
      File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 573, in _build_master
        ws.require(__requires__)
      File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 891, in require
        needed = self.resolve(parse_requirements(requirements))
      File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 782, in resolve
        raise VersionConflict(dist, req).with_context(dependent_req)
    pkg_resources.VersionConflict: (pip 22.0.2 (/usr/lib/python3/dist-packages), Requirement.parse('pip==9.0.1'))

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "/usr/local/bin/pip3", line 6, in <module>
        from pkg_resources import load_entry_point
      File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3267, in <module>
        def _initialize_master_working_set():
      File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3241, in _call_aside
        f(*args, **kwargs)
      File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3279, in _initialize_master_working_set
        working_set = WorkingSet._build_master()
      File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 575, in _build_master
        return cls._build_from_requirements(__requires__)
      File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 588, in _build_from_requirements
        dists = ws.resolve(reqs, Environment())
      File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 777, in resolve
        raise DistributionNotFound(req, requirers)
    pkg_resources.DistributionNotFound: The 'pip==9.0.1' distribution was not found and is required by the application


Code:  Select all


works, thanks. ![:D](./images/smilies/icon_biggrin.gif)
I'll leave it like that for now. If it still causes problems, I'll get back to
you. ![;\)](./images/smilies/icon_wink.gif)


u/sgthoppy avatar
sgthoppy
•
1y ago
As others have said, don't use pip as root, especially on *nix systems, as the system package manager has its own python packages that you won't want to interfere with.


root@localhost:~# pip -v
Traceback (most recent call last):
  File "/usr/bin/pip", line 11, in <module>
    load_entry_point('pip==20.0.2', 'console_scripts', 'pip')()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 490, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2854, in load_entry_point
    return ep.load()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2445, in load
    return self.resolve()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2451, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/lib/python3/dist-packages/pip/_internal/cli/main.py", line 10, in <module>
    from pip._internal.cli.autocompletion import autocomplete
  File "/usr/lib/python3/dist-packages/pip/_internal/cli/autocompletion.py", line 9, in <module>
    from pip._internal.cli.main_parser import create_main_parser
  File "/usr/lib/python3/dist-packages/pip/_internal/cli/main_parser.py", line 7, in <module>
    from pip._internal.cli import cmdoptions
  File "/usr/lib/python3/dist-packages/pip/_internal/cli/cmdoptions.py", line 24, in <module>
    from pip._internal.exceptions import CommandError
  File "/usr/lib/python3/dist-packages/pip/_internal/exceptions.py", line 10, in <module>
    from pip._vendor.six import iteritems
  File "/usr/lib/python3/dist-packages/pip/_vendor/__init__.py", line 65, in <module>
    vendored("cachecontrol")
  File "/usr/lib/python3/dist-packages/pip/_vendor/__init__.py", line 36, in vendored
    __import__(modulename, globals(), locals(), level=0)
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 655, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 618, in _load_backward_compatible
  File "<frozen zipimport>", line 259, in load_module
  File "/usr/share/python-wheels/CacheControl-0.12.6-py2.py3-none-any.whl/cachecontrol/__init__.py", line 9, in <module>
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 655, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 618, in _load_backward_compatible
  File "<frozen zipimport>", line 259, in load_module
  File "/usr/share/python-wheels/CacheControl-0.12.6-py2.py3-none-any.whl/cachecontrol/wrapper.py", line 1, in <module>
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked


###  [ Re: python3.7 distutils broken on last update
](./viewtopic.php?p=1555719&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0#p1555719)


  * [ Actions  ](/pypa/setuptools/actions)
  * [ Projects  0  ](/pypa/setuptools/projects)
  * [ Wiki  ](/pypa/setuptools/wiki)
  * [ Security  ](/pypa/setuptools/security)
  * [ Insights  ](/pypa/setuptools/pulse)
Additional navigation options
  * [ Code  ](/pypa/setuptools)
  * [ Issues  ](/pypa/setuptools/issues)
  * [ Pull requests  ](/pypa/setuptools/pulls)
  * [ Discussions  ](/pypa/setuptools/discussions)
  * [ Actions  ](/pypa/setuptools/actions)
  * [ Projects  ](/pypa/setuptools/projects)
  * [ Wiki  ](/pypa/setuptools/wiki)
  * [ Security  ](/pypa/setuptools/security)
  * [ Insights  ](/pypa/setuptools/pulse)
New issue
**Have a question about this project?** Sign up for a free GitHub account to
open an issue and contact its maintainers and the community.
Pick a username

Email Address

Password

Sign up for GitHub
By clicking “Sign up for GitHub”, you agree to our [ terms of service
](https://docs.github.com/terms) and [ privacy statement
](https://docs.github.com/privacy) . We’ll occasionally send you account
related emails.
Already on GitHub? [ Sign in
](/login?return_to=%2Fpypa%2Fsetuptools%2Fissues%2Fnew%2Fchoose) to your
account
Jump to bottom
#  [BUG] Internal 68.2.0 change breaks all ROS2 python packages  #4046
Closed
[ owend ](/owend) opened this issue  Sep 12, 2023  · 5 comments
Closed
#  [BUG] Internal 68.2.0 change breaks all ROS2 python packages  #4046
[ owend ](/owend) opened this issue  Sep 12, 2023  · 5 comments
Labels


* __ Quick links


Got no problems here.


  * [ Important Notices  ](./viewforum.php?f=9&sid=c29dfe945ad3e8c75d45f864f02a8653)
  * [ ↳ Rules & Notices  ](./viewforum.php?f=17&sid=c29dfe945ad3e8c75d45f864f02a8653)
  * [ ↳ Releases & Announcements  ](./viewforum.php?f=143&sid=c29dfe945ad3e8c75d45f864f02a8653)
  * [ ↳ Main Edition Support  ](./viewforum.php?f=126&sid=c29dfe945ad3e8c75d45f864f02a8653)
  * [ ↳ Beginner Questions  ](./viewforum.php?f=90&sid=c29dfe945ad3e8c75d45f864f02a8653)
  * [ ↳ Installation & Boot  ](./viewforum.php?f=46&sid=c29dfe945ad3e8c75d45f864f02a8653)
  * [ ↳ Software & Applications  ](./viewforum.php?f=47&sid=c29dfe945ad3e8c75d45f864f02a8653)
  * [ ↳ Hardware Support  ](./viewforum.php?f=49&sid=c29dfe945ad3e8c75d45f864f02a8653)
  * [ ↳ Graphics Cards & Monitors  ](./viewforum.php?f=59&sid=c29dfe945ad3e8c75d45f864f02a8653)
  * [ ↳ Printers & Scanners  ](./viewforum.php?f=51&sid=c29dfe945ad3e8c75d45f864f02a8653)
  * [ ↳ Storage  ](./viewforum.php?f=50&sid=c29dfe945ad3e8c75d45f864f02a8653)
  * [ ↳ Sound  ](./viewforum.php?f=48&sid=c29dfe945ad3e8c75d45f864f02a8653)
  * [ ↳ Networking  ](./viewforum.php?f=52&sid=c29dfe945ad3e8c75d45f864f02a8653)
  * [ ↳ Virtual Machines  ](./viewforum.php?f=231&sid=c29dfe945ad3e8c75d45f864f02a8653)
  * [ ↳ Desktop & Window Managers  ](./viewforum.php?f=54&sid=c29dfe945ad3e8c75d45f864f02a8653)
  * [ ↳ Cinnamon  ](./viewforum.php?f=208&sid=c29dfe945ad3e8c75d45f864f02a8653)
  * [ ↳ MATE  ](./viewforum.php?f=206&sid=c29dfe945ad3e8c75d45f864f02a8653)
  * [ ↳ Xfce  ](./viewforum.php?f=57&sid=c29dfe945ad3e8c75d45f864f02a8653)
  * [ ↳ Other topics  ](./viewforum.php?f=18&sid=c29dfe945ad3e8c75d45f864f02a8653)
  * [ ↳ Non-technical Questions  ](./viewforum.php?f=6&sid=c29dfe945ad3e8c75d45f864f02a8653)
  * [ ↳ Tutorials  ](./viewforum.php?f=42&sid=c29dfe945ad3e8c75d45f864f02a8653)
  * [ Debian Edition Support  ](./viewforum.php?f=114&sid=c29dfe945ad3e8c75d45f864f02a8653)
  * [ ↳ LMDE Forums  ](./viewforum.php?f=244&sid=c29dfe945ad3e8c75d45f864f02a8653)
  * [ ↳ Beginner Questions  ](./viewforum.php?f=245&sid=c29dfe945ad3e8c75d45f864f02a8653)
  * [ ↳ Installation & Boot  ](./viewforum.php?f=246&sid=c29dfe945ad3e8c75d45f864f02a8653)
  * [ ↳ Software & Applications  ](./viewforum.php?f=247&sid=c29dfe945ad3e8c75d45f864f02a8653)
  * [ ↳ Hardware Support  ](./viewforum.php?f=248&sid=c29dfe945ad3e8c75d45f864f02a8653)
  * [ ↳ Networking  ](./viewforum.php?f=249&sid=c29dfe945ad3e8c75d45f864f02a8653)
  * [ ↳ Tutorials  ](./viewforum.php?f=250&sid=c29dfe945ad3e8c75d45f864f02a8653)
  * [ ↳ Other Topics & Open Discussion  ](./viewforum.php?f=251&sid=c29dfe945ad3e8c75d45f864f02a8653)
  * [ ↳ LMDE Archive  ](./viewforum.php?f=235&sid=c29dfe945ad3e8c75d45f864f02a8653)
  * [ Interests  ](./viewforum.php?f=255&sid=c29dfe945ad3e8c75d45f864f02a8653)
  * [ ↳ Gaming  ](./viewforum.php?f=225&sid=c29dfe945ad3e8c75d45f864f02a8653)
  * [ ↳ Scripts & Bash  ](./viewforum.php?f=213&sid=c29dfe945ad3e8c75d45f864f02a8653)
  * [ ↳ Programming & Development  ](./viewforum.php?f=120&sid=c29dfe945ad3e8c75d45f864f02a8653)
  * [ ↳ Cinnamon on Wayland  ](./viewforum.php?f=266&sid=c29dfe945ad3e8c75d45f864f02a8653)
  * [ Customization  ](./viewforum.php?f=210&sid=c29dfe945ad3e8c75d45f864f02a8653)
  * [ ↳ Themes, Icons & Wallpaper  ](./viewforum.php?f=211&sid=c29dfe945ad3e8c75d45f864f02a8653)
  * [ ↳ Compiz, Conky, Docks & Widgets  ](./viewforum.php?f=212&sid=c29dfe945ad3e8c75d45f864f02a8653)
  * [ ↳ Screenshots  ](./viewforum.php?f=214&sid=c29dfe945ad3e8c75d45f864f02a8653)


     Level 14
![Level 14](./images/ranks/12.gif)


[ Privacy  ](./ucp.php?mode=privacy&sid=c29dfe945ad3e8c75d45f864f02a8653
"Privacy") | [ Terms
](./ucp.php?mode=terms&sid=c29dfe945ad3e8c75d45f864f02a8653 "Terms")


###  [ Re: python3.7 distutils broken on last update
](./viewtopic.php?p=1555745&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0#p1555745)


Upvote
2


  File "<frozen importlib._bootstrap>", line 655, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 618, in _load_backward_compatible
  File "<frozen zipimport>", line 259, in load_module
  File "/usr/share/python-wheels/CacheControl-0.12.6-py2.py3-none-any.whl/cachecontrol/adapter.py", line 5, in <module>
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 655, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 618, in _load_backward_compatible
  File "<frozen zipimport>", line 259, in load_module
  File "/usr/share/python-wheels/requests-2.22.0-py2.py3-none-any.whl/requests/__init__.py", line 95, in <module>
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 655, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 618, in _load_backward_compatible
  File "<frozen zipimport>", line 259, in load_module
  File "/usr/share/python-wheels/urllib3-1.25.8-py2.py3-none-any.whl/urllib3/contrib/pyopenssl.py", line 46, in <module>
  File "/usr/lib/python3/dist-packages/OpenSSL/__init__.py", line 8, in <module>
    from OpenSSL import crypto, SSL
  File "/usr/lib/python3/dist-packages/OpenSSL/crypto.py", line 1553, in <module>
    class X509StoreFlags(object):
  File "/usr/lib/python3/dist-packages/OpenSSL/crypto.py", line 1573, in X509StoreFlags
    CB_ISSUER_CHECK = _lib.X509_V_FLAG_CB_ISSUER_CHECK
AttributeError: module 'lib' has no attribute 'X509_V_FLAG_CB_ISSUER_CHECK'
root@localhost:~#
I don't know where to start troubleshooting this. I am using a password protected ssh key to authenticate with this server.


r/learnpython
Join
Python Education
Subreddit for posting questions and asking for general advice about your python code.
803K
Members
271
 Online
Top 1%
Rank by size
r/fortinet icon
r/fortinet
Need help on programatically pulling the default local-in policy in FortiOS
8 upvotes · 22 comments
r/linux4noobs
How do I install "some packages from rpmfusion"?
3 upvotes · 10 comments
r/voidlinux icon
r/voidlinux
Problem with sudo xbps-install -su and shlibs
14 upvotes · 15 comments
r/termux icon
r/termux
Guys! I have a problem. Actually I cleared data in termux before using it and when I am trying to do code, this happens. Please help m🙏.
r/termux - Guys! I have a problem. Actually I cleared data in termux before using it and when I am trying to do code, this happens. Please help m🙏.
4 upvotes · 21 comments
r/linuxquestions
Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
2 comments
r/sveltejs
Getting the lightweight WYSIWYG editor, Quill, to work with Svelte is not going great :(
7 upvotes · 8 comments
r/dotnet
ASP.NET Core - how to properly make a GET request?
9 comments
r/godot
Can't use OS.execute on VPS
3 upvotes · 7 comments
r/cpp_questions
Trying to use libcpr, linking errors - newbie...


__ Top


Downvote


Code:  Select all


[ __ Post
](./viewtopic.php?p=1555742&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0#p1555742
"Post") by **[ endlisnis
](./memberlist.php?mode=viewprofile&u=159404&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)
** »  Thu Nov 22, 2018 2:59 pm


[ ![User
avatar](//secure.gravatar.com/avatar/ef8358afee83a4713242d5cb4c6dbdb3?s=120)
](./memberlist.php?mode=viewprofile&u=261886&sid=c29dfe945ad3e8c75d45f864f02a8653)


Downvote
Reply
reply


##  [ python3.7 distutils broken on last update
](./viewtopic.php?t=282012&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)


Expand user menu
Skip to NavigationSkip to Right Sidebar


The reason why my docker recipe wasn't working was because I hadn't installed
"python3-distutils" in the docker image. Once I realized that, I tried
reinstalling my python3-distutils and that fixed my problem.


Upvote
1


     Level 2
![Level 2](./images/ranks/2.gif)


eleqtriq
•
1y ago
Please don't pip as root


###  [ Re: python3.7 distutils broken on last update
](./viewtopic.php?p=1555466&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0#p1555466)


[ __ Post
](./viewtopic.php?p=1555719&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0#p1555719
"Post") by ** gm10  ** »  Thu Nov 22, 2018 2:04 pm


##  [ [SOLVED] pip3 - an invalid version and will not be supported in a future
release ](./viewtopic.php?t=388853&sid=c29dfe945ad3e8c75d45f864f02a8653)


Upvote
2


[ __ Post
](./viewtopic.php?p=1555466&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0#p1555466
"Post") by **[ endlisnis
](./memberlist.php?mode=viewprofile&u=159404&sid=9bb88cb41f0b83e4b9cdc89cc1ab52b0)
** »  Wed Nov 21, 2018 11:49 pm


View license


##  Comments


    gas_patxo@ideapad-l340:~/ws_moveit2$ colcon build --mixin release --parallel-workers 4 --continue-on-error
    Starting >>> moveit_common
    Starting >>> moveit_resources_panda_description
    Starting >>> moveit_configs_utils
    Starting >>> moveit_resources_fanuc_description
    --- stderr: moveit_common
    CMake Error at CMakeLists.txt:4 (find_package):
      By not providing "Findament_cmake.cmake" in CMAKE_MODULE_PATH this project
      has asked CMake to find a package configuration file provided by
      "ament_cmake", but CMake did not find one.

      Could not find a package configuration file provided by "ament_cmake" with
      any of the following names:

        ament_cmakeConfig.cmake
        ament_cmake-config.cmake

      Add the installation prefix of "ament_cmake" to CMAKE_PREFIX_PATH or set
      "ament_cmake_DIR" to a directory containing one of the above files.  If
      "ament_cmake" provides a separate development package or SDK, be sure it
      has been installed.

    ---
    Failed   <<< moveit_common [0.21s, exited with code 1]
    Starting >>> controller_manager_msgs
    --- stderr: moveit_resources_panda_description
    CMake Error at CMakeLists.txt:3 (find_package):
      By not providing "Findament_cmake.cmake" in CMAKE_MODULE_PATH this project
      has asked CMake to find a package configuration file provided by
      "ament_cmake", but CMake did not find one.

      Could not find a package configuration file provided by "ament_cmake" with
      any of the following names:

        ament_cmakeConfig.cmake
        ament_cmake-config.cmake


not found:
"/home/erik/install/controller_manager/share/controller_manager/local_setup.bash"
[connext_cmake_module] Warning: The location at which Connext was found when
the workspace was built [[/opt/rti.com/rti_connext_dds-5.3.1]] does not point
to a valid directory, and the NDDSHOME environment variable has not been set.
Support for Connext will not be available.
user@ubuntu:~/workspace/ros_ur_driver$

---

All reactions


(I'm new to ROS, so I apologize if my issue statement comes off amateur)

---

The text was updated successfully, but these errors were encountered:


Search


By default, OpenMower is supposed to run on an ARM-based Raspberry boards: [
https://x-tech.online/2022/01/installing-ros-noetic-on-a-headless-raspberry-
pi-4-with-ubuntu-20-04/ ](https://x-tech.online/2022/01/installing-ros-noetic-
on-a-headless-raspberry-pi-4-with-ubuntu-20-04/)


[ UniversalRobots ](/UniversalRobots) /  **[ Universal_Robots_ROS2_Driver
](/UniversalRobots/Universal_Robots_ROS2_Driver) ** Public


Query


08-08-2023  02:56 PM


Copy link


    * [ Gaming Forums ](/t5/Gaming-Forums/ct-p/gaming-community)
    * [ Intel® ARC™ Graphics ](/t5/Intel-ARC-Graphics/bd-p/arc-graphics)
    * [ Gaming on Intel® Processors with Intel® Graphics ](/t5/Gaming-on-Intel-Processors-with/bd-p/processors-with-intel-graphics)
    * [ Developing Games on Intel Graphics ](/t5/Developing-Games-on-Intel/bd-p/developing-games-graphics)


[
![@3ngineerit](https://avatars.githubusercontent.com/u/31911036?s=80&u=10372def4a8ff8372105263f311248ea7d14a245&v=4)
](/3ngineerit)


[ Notifications ](/login?return_to=%2FClemensElflein%2Fopen_mower_ros)


{{ message }}


#  ClemensElflein/open_mower_ros


* [ GitHub Sponsors  Fund open source developers  ](/sponsors)


  * [ Code  ](/UniversalRobots/Universal_Robots_ROS2_Driver)
  * [ Issues  ](/UniversalRobots/Universal_Robots_ROS2_Driver/issues)
  * [ Pull requests  ](/UniversalRobots/Universal_Robots_ROS2_Driver/pulls)
  * [ Discussions  ](/UniversalRobots/Universal_Robots_ROS2_Driver/discussions)
  * [ Actions  ](/UniversalRobots/Universal_Robots_ROS2_Driver/actions)
  * [ Projects  ](/UniversalRobots/Universal_Robots_ROS2_Driver/projects)
  * [ Security  ](/UniversalRobots/Universal_Robots_ROS2_Driver/security)
  * [ Insights  ](/UniversalRobots/Universal_Robots_ROS2_Driver/pulse)


Success! Subscription added.


  * [ Terms ](https://docs.github.com/site-policy/github-terms/github-terms-of-service)
  * [ Privacy ](https://docs.github.com/site-policy/privacy-policies/github-privacy-statement)
  * [ Security ](/security)
  * [ Status ](https://www.githubstatus.com/)
  * [ Docs ](https://docs.github.com/)
  * [ Contact ](https://support.github.com?tags=dotcom-footer)
  * Manage cookies
  * Do not share my personal information


  * Mark as New
  * Bookmark
  * Subscribe
  * Mute
  *   * [ Subscribe to RSS Feed ](https://community.intel.com/rss/message?board.id=edge-software-hub&message.id=1867)
  *   * [ Permalink ](/t5/Intel-Edge-Software-Hub/Error-running-docker-compose-tutorial-for-Edge-Insights-for/m-p/1505038/highlight/true#M1867)
  * [ Print ](/t5/forums/forumtopicprintpage/board-id/edge-software-hub/message-id/1867/print-single-message/true/page/1)
  *   * [ Report Inappropriate Content ](/t5/notifications/notifymoderatorpage/message-uid/1505038)


Intel® Edge Software Hub


install MoveIt and all of its dependencies


#  Unable to locate definitions for rosdep install using latest Foxy release
#193


Post Reply


[ aa53  ](https://community.intel.com/t5/user/viewprofilepage/user-id/303011)


I recently installed the latest release of Foxy ROS2 (via debian packages) on
my Ubuntu 20.04 VM on my system. My end goal is to get my system configured to
start using the UR5e robots I have here in the lab.


Sorry, you must verify to complete this action. Please click the verification
link in your email. You may re-send via your [ profile
](/t5/user/myprofilepage/tab/personal-profile:email) .


[ Solved  Jump to solution ](/t5/Intel-Edge-Software-Hub/Error-running-docker-
compose-tutorial-for-Edge-Insights-for/m-p/1506721#M1875)


edited


#  Provide feedback


I double checked and setup.bash does exist in the install/ directory under the
path listed on the error. No errors were reported in the COLCON build.


Name


[ **103** forks ](/ClemensElflein/open_mower_ros/forks)


All reactions


Closed


None yet


Intel does not verify all solutions, including but not limited to any file
transfers that may appear in this community. Accordingly, Intel disclaims all
express and implied warranties, including without limitation, the implied
warranties of merchantability, fitness for a particular purpose, and non-
infringement, as well as any warranty arising from course of performance,
course of dealing, or usage in trade.


[ Sign up for free ](/join?source=comment-repo) **to join this conversation on
GitHub** . Already have an account? [ Sign in to comment
](/login?return_to=https%3A%2F%2Fgithub.com%2FUniversalRobots%2FUniversal_Robots_ROS2_Driver%2Fissues%2F193)


Copy link


[ Reply ]()


ament_cmakeConfig.cmake
ament_cmake-config.cmake)
happens when you haven't sourced ROS. For every terminal you open make sure
you have sourced it. For example: source/opt/ros/foxy/setup.bash
Hope this will work for you. I have the drivers also installed on foxy so it
should work in some way :)

---

All reactions


Last commit message


You also mentioned that the package was successfully installed using
./edgesoftware install, is there a reason why you need to re-build the package
from source?


[ 3ngineerit ](/3ngineerit) opened this issue  Oct 3, 2021  · 8 comments


Build workspace errors


ament_cmakeConfig.cmake
ament_cmake-config.cmake


##  user@ubuntu:~/workspace/ros_ur_driver$ colcon build --cmake-args
-DCMAKE_BUILD_TYPE=Release
Starting >>> control_msgs
Starting >>> ros2_control_test_assets
Starting >>> controller_manager_msgs
Starting >>> diffbot_description
Finished <<< ros2_control_test_assets [3.08s]
Starting >>> ros2_control_test_nodes
Finished <<< diffbot_description [4.15s]
Starting >>> rrbot_description
Finished <<< ros2_control_test_nodes [11.2s]
Starting >>> ur_client_library
Finished <<< rrbot_description [26.0s]
Starting >>> ur_dashboard_msgs
[Processing: control_msgs, controller_manager_msgs, ur_client_library,
ur_dashboard_msgs]
Finished <<< controller_manager_msgs [1min 21s]
Starting >>> ur_msgs
Finished <<< ur_client_library [1min 19s]
Starting >>> ur_description
Finished <<< ur_description [4.96s]
Starting >>> ur_moveit_config
Finished <<< ur_moveit_config [2.43s]
Finished <<< control_msgs [1min 41s]
Starting >>> hardware_interface
Finished <<< ur_dashboard_msgs [1min 30s]
Finished <<< ur_msgs [56.3s]
Finished <<< hardware_interface [1min 5s]
Starting >>> controller_interface
Starting >>> ros2_control_demo_hardware
Starting >>> transmission_interface
\--- stderr: ros2_control_demo_hardware
In file included from
/home/erik/workspace/ros_ur_driver/src/ros2_control_demos/ros2_control_demo_hardware/src/diffbot_system.cpp:15:
/home/erik/workspace/ros_ur_driver/src/ros2_control_demos/ros2_control_demo_hardware/include/ros2_control_demo_hardware/diffbot_system.hpp:22:10:
fatal error: hardware_interface/base_interface.hpp: No such file or directory
22 | #include "hardware_interface/base_interface.hpp"
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/ros2_control_demo_hardware.dir/build.make:63:


Is there missing dependencies in the ros-base docker image?


    * [ Enterprise ](/enterprise)
    * [ Teams ](/team)
    * [ Startups ](/enterprise/startups)
    * [ Education  ](https://education.github.com)


Include my email address so I can be contacted


  * install ROS(2)
  * source /opt/${ROS_DISTRO}/setup.bash
  * rosdep install ...
  * colcon build ...
  * source ~/ros_ws/install/setup.bash


roslaunch open_mower open_mower.launch


Resources


[ Dockerfile ](/ClemensElflein/open_mower_ros/blob/main/Dockerfile
"Dockerfile")


##  Footer


Copy link


Success! Subscription removed.


#  Search code, repositories, users, issues, pull requests...


Copy the settings for **Build directory** and **CMake options** . Everything
else can stay the same. This is all you need!


**[ 3ngineerit ](/3ngineerit) ** commented  Oct 3, 2021  •


    gas_patxo@ideapad-l340:~/ws_moveit2/src$ sudo apt update && rosdep install -r --from-paths . --ignore-src --rosdistro $ROS_DISTRO -y
    [sudo] password for gas_patxo:
    Hit:1 https://packages.microsoft.com/repos/ms-teams stable InRelease
    Hit:2 http://mirror.tedra.es/ubuntu jammy InRelease
    Hit:3 http://mirror.tedra.es/ubuntu jammy-updates InRelease
    Hit:4 http://mirror.tedra.es/ubuntu jammy-backports InRelease
    Hit:5 http://packages.ros.org/ros2/ubuntu jammy InRelease
    Hit:6 http://mirror.tedra.es/ubuntu jammy-security InRelease
    Reading package lists... Done
    Building dependency tree... Done
    Reading state information... Done
    5 packages can be upgraded. Run 'apt list --upgradable' to see them.
    WARNING: ROS_PYTHON_VERSION is unset. Defaulting to 3
    ERROR: the following packages/stacks could not have their rosdep keys resolved
    to system dependencies:
    moveit_configs_utils: Cannot locate rosdep definition for [ament_lint_common]
    moveit_resources_prbt_support: Cannot locate rosdep definition for [ament_cmake]
    moveit: Cannot locate rosdep definition for [ament_lint_common]
    moveit_planners_chomp: Cannot locate rosdep definition for [rclcpp]
    moveit_resources_fanuc_moveit_config: Cannot locate rosdep definition for [ament_cmake]
    moveit_task_constructor_visualization: Cannot locate rosdep definition for [rviz2]
    moveit_setup_srdf_plugins: Cannot locate rosdep definition for [pluginlib]
    rviz_marker_tools: Cannot locate rosdep definition for [visualization_msgs]
    moveit_planners_ompl: Cannot locate rosdep definition for [pluginlib]
    moveit_resources_prbt_moveit_config: Cannot locate rosdep definition for [ament_cmake]
    moveit_resources_pr2_description: Cannot locate rosdep definition for [ament_cmake]
    moveit_resources_panda_moveit_config: Cannot locate rosdep definition for [ament_cmake]
    moveit_visual_tools: Cannot locate rosdep definition for [visualization_msgs]
    moveit_common: Cannot locate rosdep definition for [backward_ros]
    controller_manager: Cannot locate rosdep definition for [ros2run]
    ros2_control: Cannot locate rosdep definition for [ament_cmake]
    moveit_ros_perception: Cannot locate rosdep definition for [tf2_ros]
    moveit_ros_warehouse: Cannot locate rosdep definition for [tf2_ros]
    moveit_setup_assistant: Cannot locate rosdep definition for [rclcpp]
    pilz_industrial_motion_planner: Cannot locate rosdep definition for [tf2_ros]
    moveit_ros_planning_interface: Cannot locate rosdep definition for [tf2_ros]
    moveit_ros_visualization: Cannot locate rosdep definition for [tf2_eigen]
    hardware_interface: Cannot locate rosdep definition for [tinyxml2_vendor]


No releases published


  * [ Code  ](/UniversalRobots/Universal_Robots_ROS2_Driver)
  * [ Issues  107  ](/UniversalRobots/Universal_Robots_ROS2_Driver/issues)
  * [ Pull requests  24  ](/UniversalRobots/Universal_Robots_ROS2_Driver/pulls)
  * [ Discussions  ](/UniversalRobots/Universal_Robots_ROS2_Driver/discussions)
  * [ Actions  ](/UniversalRobots/Universal_Robots_ROS2_Driver/actions)
  * [ Projects  1  ](/UniversalRobots/Universal_Robots_ROS2_Driver/projects)
  * [ Security  ](/UniversalRobots/Universal_Robots_ROS2_Driver/security)
  * [ Insights  ](/UniversalRobots/Universal_Robots_ROS2_Driver/pulse)


0  Kudos


Author


1,451 Views


[ Solved  Jump to solution ](/t5/Intel-Edge-Software-Hub/Error-running-docker-
compose-tutorial-for-Edge-Insights-for/m-p/1506721#M1875)


OpenMower requires ROS Noetic. ( [ installation instruction
](http://wiki.ros.org/noetic/Installation) ) There is no distributed release
package yet, for development and test purpose it's best to build the workspace
on your own.


    * [ Product Support Forums ](/t5/Product-Support-Forums/ct-p/product-support-forums)
    * [ FPGA ](/t5/FPGA/ct-p/fpga)
    * [ Memory & Storage ](/t5/Memory-Storage/ct-p/memory-storage)
    * [ Visual Computing ](/t5/Visual-Computing/ct-p/visual-computing)
    * [ Embedded Products ](/t5/Embedded-Products/ct-p/embedded-products)
    * [ Graphics ](/t5/Graphics/bd-p/graphics)
    * [ Processors ](/t5/Processors/bd-p/processors)
    * [ Wireless ](/t5/Wireless/bd-p/wireless)
    * [ Ethernet Products ](/t5/Ethernet-Products/bd-p/ethernet-products)
    * [ Server Products ](/t5/Server-Products/bd-p/server-products)
    * [ Intel vPro® Platform ](/t5/Intel-vPro-Platform/bd-p/vpro-platform)
    * [ Intel® Unison™ App ](/t5/Intel-Unison-App/bd-p/unison-app)
    * [ Intel® QuickAssist Technology (Intel® QAT) ](/t5/Intel-QuickAssist-Technology/bd-p/IntelQuickAssistTechnology)
    * [ Intel® Trusted Execution Technology (Intel® TXT) ](/t5/Intel-Trusted-Execution/bd-p/trusted-execution-technology)
    * [ Intel® Enpirion® Power Solutions ](/t5/Intel-Enpirion-Power-Solutions/bd-p/enpirion-power-solutions)


**1.Error summary:**


##  Contribution


[ The Construct ROS Community ](/)


Cancel  Submit feedback


###  Resources


Milestone


**[ 3ngineerit ](/3ngineerit) ** commented  Oct 4, 2021  •


    * [ CI/CD & Automation ](/solutions/ci-cd/)
    * [ DevOps ](/solutions/devops/)
    * [ DevSecOps  ](https://resources.github.com/devops/fundamentals/devsecops/)


  * Mark as New
  * Bookmark
  * Subscribe
  * Mute
  *   * [ Subscribe to RSS Feed ](https://community.intel.com/rss/message?board.id=edge-software-hub&message.id=1875)
  *   * [ Permalink ](/t5/Intel-Edge-Software-Hub/Error-running-docker-compose-tutorial-for-Edge-Insights-for/m-p/1506721/highlight/true#M1875)
  * [ Print ](/t5/forums/forumtopicprintpage/board-id/edge-software-hub/message-id/1875/print-single-message/true/page/1)
  *   * [ Report Inappropriate Content ](/t5/notifications/notifymoderatorpage/message-uid/1506721)


TBD (no automated image build yet)


Toggle navigation


[ Report repository ](/contact/report-
content?content_url=https%3A%2F%2Fgithub.com%2FClemensElflein%2Fopen_mower_ros&report=ClemensElflein+%28user%29)


[ assets ](/ClemensElflein/open_mower_ros/tree/main/assets "assets")


Go to file


That seemed to work, thanks a ton for that.


Include my email address so I can be contacted


It looks like the COLCON build functioned nominally.


#  Notes / ToDos


Getting the pre-built image from ./edgesoftware install is working fine.


1,482 Views


* [ The ReadME Project  GitHub community articles  ](/readme)


* [ Product Support Forums ](/t5/Product-Support-Forums/ct-p/product-support-forums)


##  Getting started


[ Reply ]()


##  Use saved searches to filter your results more quickly


* [ GitHub Sponsors  Fund open source developers  ](/sponsors)


      By not providing "Findament_cmake.cmake" in CMAKE_MODULE_PATH this project
      has asked CMake to find a package configuration file provided by
      "ament_cmake", but CMake did not find one.

      Could not find a package configuration file provided by "ament_cmake" with
      any of the following names:

        ament_cmakeConfig.cmake
        ament_cmake-config.cmake

      Add the installation prefix of "ament_cmake" to CMAKE_PREFIX_PATH or set
      "ament_cmake_DIR" to a directory containing one of the above files.  If
      "ament_cmake" provides a separate development package or SDK, be sure it
      has been installed.

    ---
    Failed   <<< moveit_task_constructor_msgs [0.27s, exited with code 1]
    Starting >>> moveit_resources_prbt_support
    --- stderr: rviz_marker_tools
    CMake Error at CMakeLists.txt:4 (find_package):
      By not providing "Findament_cmake.cmake" in CMAKE_MODULE_PATH this project
      has asked CMake to find a package configuration file provided by
      "ament_cmake", but CMake did not find one.

      Could not find a package configuration file provided by "ament_cmake" with
      any of the following names:

        ament_cmakeConfig.cmake
        ament_cmake-config.cmake

      Add the installation prefix of "ament_cmake" to CMAKE_PREFIX_PATH or set
      "ament_cmake_DIR" to a directory containing one of the above files.  If
      "ament_cmake" provides a separate development package or SDK, be sure it
      has been installed.

    ---
    Failed   <<< rviz_marker_tools [0.27s, exited with code 1]
    Starting >>> joint_limits


Cancel  Create saved search


###  License


##  [ Contributors  16  ](/ClemensElflein/open_mower_ros/graphs/contributors)


[ Sign in
](/login?return_to=https%3A%2F%2Fgithub.com%2FClemensElflein%2Fopen_mower_ros)


Author


Copy link


Could not find a package configuration file provided by "ament_cmake" with
any of the following names:


[ roalgoal  ](https://get-help.theconstruct.ai/u/roalgoal) September 30, 2022,
7:32am  2


**Community support is provided during standard business hours (Monday to
Friday 7AM - 5PM PST). Other contact methods are available[ here
](https://www.intel.com/content/www/us/en/support/contact-intel.html) . **


####  Launch OpenMower


* [ Community ](/)


gripper_controllers: Cannot locate rosdep definition for [ament_cmake_gmock]
joint_trajectory_controller: Cannot locate rosdep definition for
[ament_cmake_gtest]
ur_bringup: Cannot locate rosdep definition for [xacro]
ros2_controllers: Cannot locate rosdep definition for [ament_cmake]
ur_msgs: Cannot locate rosdep definition for [ament_lint_common]
rrbot_description: Cannot locate rosdep definition for [rviz2]
Continuing to install resolvable dependencies...
#All required rosdeps installed successfully
user@ubuntu:~/workspace/ros_ur_driver$


Before running ` colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release ` try to
exceute ` source /opt/${ROS_DISTRO}/setup.bash ` and then try the build
command.

---

👍  1  jkoubs reacted with thumbs up emoji


[ Solved  Jump to solution ](/t5/Intel-Edge-Software-Hub/Error-running-docker-
compose-tutorial-for-Edge-Insights-for/m-p/1506721#M1875)


=> CACHED [nav2-pre 1/9] WORKDIR /home/eiforamr/ros2_ws 0.0s
=> CACHED [nav2-pre 2/9] RUN git clone -b foxy-devel [ https://github.com/ros-
planning/navigati ](https://github.com/ros-planning/navigati) 0.0s
=> CACHED [nav2-pre 3/9] COPY artifacts/01_amr/nav2/* src/navigation2/ 0.0s
=> CACHED [nav2-pre 4/9] COPY
artifacts/01_amr/amr_its_planner/install/its_planner /home/eifo 0.0s
=> ERROR [nav2-pre 5/9] RUN chmod +x -R
/home/eiforamr/ros2_ws/install/its_planner 15.4s
\------
> [nav2-pre 5/9] RUN chmod +x -R /home/eiforamr/ros2_ws/install/its_planner &&
> cd src/navigation2 && git checkout 60043d4067b9dbff73be65291f5df6aaa286cc61
> && git apply 0001-Catch-send_goal-failed-exception.patch && git apply
> 0001-Fix-action-node-in-endless-loop.patch && git apply 0001-Wait-for-valid-
> costmap-before-computing-trajectory.patch && git apply 0001-Backport-fix-
> for-straight-path-issue.patch && cd /home/eiforamr/ros2_ws && apt-get update
> && rosdep update && rosdep install -i --from-path src/navigation2
> --rosdistro foxy -y && source /opt/ros/foxy/setup.bash && colcon build && rm
> -rf /home/eiforamr/ros2_ws/build/* /home/eiforamr/ros2_ws/src/*
> /home/eiforamr/ros2_ws/log/*:
#0 0.236 + chmod +x -R /home/eiforamr/ros2_ws/install/its_planner
#0 0.308 + cd src/navigation2
#0 0.308 + git checkout 60043d4067b9dbff73be65291f5df6aaa286cc61
#0 0.502 Note: switching to '60043d4067b9dbff73be65291f5df6aaa286cc61'.
#0 0.502
#0 0.502 You are in 'detached HEAD' state. You can look around, make
experimental
#0 0.502 changes and commit them, and you can discard any commits you make in
this
#0 0.502 state without impacting any branches by switching back to a branch.
#0 0.502
#0 0.502 If you want to create a new branch to retain commits you create, you
may
#0 0.502 do so (now or later) by using -c with the switch command. Example:
#0 0.502
#0 0.502 git switch -c <new-branch-name>
#0 0.502
#0 0.502 Or undo this operation with:
#0 0.502
#0 0.502 git switch -
#0 0.502


  * [ JavaScript  88.0%  ](/ClemensElflein/open_mower_ros/search?l=javascript)
  * [ C++  9.0%  ](/ClemensElflein/open_mower_ros/search?l=c%2B%2B)
  * [ CMake  2.1%  ](/ClemensElflein/open_mower_ros/search?l=cmake)
  * [ C  0.2%  ](/ClemensElflein/open_mower_ros/search?l=c)
  * [ Shell  0.2%  ](/ClemensElflein/open_mower_ros/search?l=shell)
  * [ Dockerfile  0.2%  ](/ClemensElflein/open_mower_ros/search?l=dockerfile)
  * Other  0.3%


Beginner


1,517 Views


Sorry, something went wrong.


[
](https://community.intel.com/t5/forums/v5/forumtopicpage.kudosbuttonv2.kudoentity:kudoentity/kudosable-
gid/1505937?t:ac=board-id/edge-software-hub/message-id/1867/thread-
id/1867&t:cp=kudos/contributions/tapletcontributionspage "Click here to give
kudos to this post.")


For


When I came to performing the installation steps for this ROS2 driver, I
followed the procedures and ensured that I cloned the foxy branch of the repo.
However, when I run the rosdep install step of the installation steps, I get
the following errors:


[ LICENSE ](/ClemensElflein/open_mower_ros/blob/main/LICENSE "LICENSE")


[ ](https://github.com "GitHub") © 2024 GitHub, Inc.


[
![@3ngineerit](https://avatars.githubusercontent.com/u/31911036?s=80&u=10372def4a8ff8372105263f311248ea7d14a245&v=4)
](/3ngineerit)


    * [ Blogs ](/t5/Blogs/ct-p/blogs)
    * [ @Intel ](/t5/Intel/ct-p/intel)
    * [ Products and Solutions ](/t5/Products-and-Solutions/ct-p/products-solutions)
    * [ Tech Innovation ](/t5/Tech-Innovation/ct-p/tech-innovation)
    * [ Thought Leadership ](/t5/Thought-Leadership/ct-p/thought-leadership)


Announcements


Name  |  Name  |


  * Mark as New
  * Bookmark
  * Subscribe
  * Mute
  *   * [ Subscribe to RSS Feed ](https://community.intel.com/rss/message?board.id=edge-software-hub&message.id=1870)
  *   * [ Permalink ](/t5/Intel-Edge-Software-Hub/Error-running-docker-compose-tutorial-for-Edge-Insights-for/m-p/1505937/highlight/true#M1870)
  * [ Print ](/t5/forums/forumtopicprintpage/board-id/edge-software-hub/message-id/1870/print-single-message/true/page/1)
  *   * [ Report Inappropriate Content ](/t5/notifications/notifymoderatorpage/message-uid/1505937)


[
![@livanov93](https://avatars.githubusercontent.com/u/26708124?s=80&u=98bb55f5350d54711dcfa05d6682937a12264443&v=4)
](/livanov93)


I am looking into this and will let you know when I have more information.