discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] problem with a fresh pybombs build


From: Marcus Müller
Subject: Re: [Discuss-gnuradio] problem with a fresh pybombs build
Date: Fri, 7 Oct 2016 17:05:23 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0

Hi Jason,

the --user flag installs into a user directory suitable for the user
calling pip – by using sudo, that user is root; recommendation: remove
this install again, and then run the same command without sudo :)

Best regards,

Marcus


On 07.10.2016 16:59, Jason Matusiak wrote:
> Alright, after some mucking about I may have made a bit more
> progress.  running: sudo pip install -I --user pybombs
>
> nets me:
> Collecting pybombs
> Collecting PyYAML (from pybombs)
> Collecting requests (from pybombs)
>   Using cached requests-2.11.1-py2.py3-none-any.whl
> Collecting six (from pybombs)
>   Using cached six-1.10.0-py2.py3-none-any.whl
> Collecting future (from pybombs)
> Collecting setuptools (from pybombs)
>   Using cached setuptools-28.2.0-py2.py3-none-any.whl
> Installing collected packages: PyYAML, requests, six, future,
> setuptools, pybombs
> Successfully installed PyYAML-3.12 future-0.15.2 pybombs-2.2.0
> requests-2.11.1 setuptools-28.2.0 six-1.10.0
>
> But it didn't put it into ~/.local/bin nor any other place in my
> path.  I see it installed in /usr/local/bin again.
>
> On 10/07/2016 10:18 AM, Koslowski, Sebastian (CEL) wrote:
>> Looks like its clashing with you first attempt. Maybe remove that first.
>> Also, if you do install with --user you need to add $HOME/.local/bin to
>> your PATH variable.
>>
>> Sebastian
>>
>> On 10/07/2016 04:09 PM, Jason Matusiak wrote:
>>> Running pip install --user pybombs
>>> returns:
>>> Collecting pybombs
>>> Requirement already satisfied: PyYAML in
>>> /usr/local/lib/python2.7/dist-packages (from pybombs)
>>> Requirement already satisfied: requests in
>>> /usr/local/lib/python2.7/dist-packages (from pybombs)
>>> Requirement already satisfied: six in /usr/lib/python2.7/dist-packages
>>> (from pybombs)
>>> Requirement already satisfied: future in
>>> /usr/local/lib/python2.7/dist-packages (from pybombs)
>>> Requirement already satisfied: setuptools in
>>> /usr/local/lib/python2.7/dist-packages (from pybombs)
>>> Installing collected packages: pybombs
>>> Successfully installed pybombs
>>>
>>> But if I type pybombs on the command line, I get:
>>> bash: /usr/local/bin/pybombs: No such file or directory
>>>
>>> On 10/07/2016 09:39 AM, Koslowski, Sebastian (CEL) wrote:
>>>> Python usually doesn't look for packages in /usr/local/....
>>>> That can be changed, of course.
>>>> However, maybe you should consider installing pybombs somewhere else.
>>>>
>>>> For example,
>>>>       pip install --user pybombs
>>>> or
>>>>       pip install --user PATH_TO_YOUR_PYBOMBS_CLONE_OR_TARBALL
>>>> should work nicely.
>>>>
>>>> Sebastian
>>>>
>>>> On 10/07/2016 03:07 PM, Jason Matusiak wrote:
>>>>>>> ls -lh /usr/local/bin/pybombs
>>>>>>> My suspicion is that pip for some reason didn't set the executable
>>>>> flag
>>>>>>> on the pybombs program file. If that's the case, you can fix
>>>>>>> that by
>>>>>>> sudo chmod a+x /usr/local/bin/pybombs
>>>>> That was indeed my first issue.  I don't know that I would blame pip
>>>>> for it just yet (we use a wonky version of sudo here at work). 
>>>>> Once i
>>>>> made the fix though, I get the following error:
>>>>> $ pybombs recipes add gr-recipes
>>>>> git+https://github.com/gnuradio/gr-recipes.git
>>>>> Traceback (most recent call last):
>>>>>     File "/usr/local/bin/pybombs", line 11, in <module>
>>>>>       load_entry_point('PyBOMBS==2.2.0', 'console_scripts',
>>>>> 'pybombs')()
>>>>> File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py",
>>>>> line 542, in load_entry_point
>>>>>       return get_distribution(dist).load_entry_point(group, name)
>>>>> File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py",
>>>>> line 2568, in load_entry_point
>>>>>       raise ImportError("Entry point %r not found" % ((group,
>>>>> name),))
>>>>> ImportError: Entry point ('console_scripts', 'pybombs') not found
>>>>>
>>>>> That last line sort of makes me feel like it isn't aware of pybombs.
>>>>> Should all of this work with 16.04 (my only change from before)?
>>>>>
>>>>> _______________________________________________
>>>>> Discuss-gnuradio mailing list
>>>>> address@hidden
>>>>> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>
>
> _______________________________________________
> Discuss-gnuradio mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio




reply via email to

[Prev in Thread] Current Thread [Next in Thread]