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

2016-10-13 Thread Jason Matusiak

Nick,

Thank you for the info.  I've uninstalled pybombs everywhere, so I 
should be "clean" again.


I tried running your two easy_install commands and got an unexpected result:
jmat@jmat:~/Downloads$ easy_install --version
usage: easy_install [options] requirement_or_url ...
   or: easy_install --help

error: invalid command 'easy_install'
jmat@jmat:~/Downloads$ sudo easy_install --version
setuptools 28.3.0 from /usr/local/lib/python2.7/dist-packages (Python 2.7)

I sort of figured that the non-sudo version would give some sort of 
result based on your email.  Does this tell us something?


Thanks!
~Jason

On 10/12/2016 02:58 PM, Nicholas McCarthy wrote:

So If I look at sys.path in python, I do see
/usr/local/lib/python2.7/dist-packages
(and I didn't do anything special to make this happen.)

Also, which pybombs points to
/usr/local/bin/pybombs

And my install location for pybombs is
/usr/local/lib/python2.7/dist-packages

From the standpoint of a fresh install (which you certainly no longer 
have), I think the problem comes in when you fail to have permissions 
on the pybombs bin... I suspect that's something to do with your weird 
sudo script and not pip or pybombs, but I'm not sure.


If you could get back to the state you were in after your initial 
attempt to install, I'd like to know the value of your sys.path in 
python.


Right now, you have a frankenbuild for pybombs thanks to running sudo 
with the --user flag... I would uninstall that, for sure and get to 
where you have no pybombs installed anywhere.


So... as for why you can't pip install pybombs (no sudo)... this has 
to be a setuptools thing.


Maybe try
easy_install --version
and
sudo easy_install --version

to see if there's a difference. Because your sudo is broken, you may 
have to do a lot of "sudo which blah" and "which blah" to find out 
what your problem is.


You can probably try an install without any sudo use by first sudo 
apt-get remove --purge pip and then downloading and using get-pip.py.  
Then just pip install pybombs (no flags, no sudo, no nothing)... and 
try that one.


Cheers,
Nick M.



On Wed, Oct 12, 2016 at 1:13 PM Jason Matusiak 
> 
wrote:


Hi Nick!
I did.  When I run it I get:
Requirement already up-to-date: setuptools in
/usr/local/lib/python2.7/dist-packages

I am not on a thin client, I am on a fresh load of 16.04 on an
actual PC.  I do believe that sudo isn't actually sudo, but a
script.  That said, I wasn't having sudo issues before I reloaded
my machine (which was running 14.04).

Thanks!



On 10/12/2016 01:04 PM, Nicholas McCarthy wrote:

Jason, did you try
pip install --upgrade setuptools

as a first step?  Are you running on a special setup such as a
patchwork virtual machine being served to you on a thinclient
with f**ed permissions?

Cheers,
Nick M.

On Wed, Oct 12, 2016 at 10:38 AM Jason Matusiak
> wrote:

> Hi Marcus, The reason I went with sudo was because it was
erroring outif I didn't:

> $ pip install -I --user pybombs
> Collecting pybombs
>   Using cached PyBOMBS-2.2.0.tar.gz
> Complete output from command python setup.py egg_info:

> /usr/lib/python2.7/distutils/dist.py:267: UserWarning:
Unknowndistribution option: 'entry_points'

>   warnings.warn(msg)

> /usr/lib/python2.7/distutils/dist.py:267: UserWarning:
Unknowndistribution option: 'install_requires'

>   warnings.warn(msg)
> usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
>or: -c --help [cmd1 cmd2 ...]
>or: -c --help-commands
>or: -c cmd --help
>
> error: invalid command 'egg_info'
>
> 

> Command "python setup.py egg_info" failed with error code 1 in
/tmp/pip-build-FJfz9W/pybombs/

I am still stuck at this stage. Assuming I am dead in the
water, what is the next best (approved) way of installing
GnuRadio?  Doing it by hand from the github clone?
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org 
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio





___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


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

2016-10-13 Thread Jason Matusiak
Marcus, I'll see if I can get our IT people's ear and figure out better 
what is going on with sudo.  It was indeed just a vanilla install of 
16.04, and then IT did there mucking afterwards.


Thanks!
~Jason

On 10/12/2016 03:55 PM, Marcus Müller wrote:


Hi Jason,

I can see that sudo pecularities might break pybombs; however, 
replacing sudo with a script is a rather uncommon practice (you incurr 
a lot of problems, because scripts usually can't have the setuid bit 
etc); is that vanilla ubuntu 16.04 or what's happened there?


Best regards,

Marcus

On 12.10.2016 19:12, Jason Matusiak wrote:

Hi Nick!
I did.  When I run it I get:
Requirement already up-to-date: setuptools in 
/usr/local/lib/python2.7/dist-packages


I am not on a thin client, I am on a fresh load of 16.04 on an actual 
PC.  I do believe that sudo isn't actually sudo, but a script.  That 
said, I wasn't having sudo issues before I reloaded my machine (which 
was running 14.04).


Thanks!


On 10/12/2016 01:04 PM, Nicholas McCarthy wrote:

Jason, did you try
pip install --upgrade setuptools

as a first step?  Are you running on a special setup such as a 
patchwork virtual machine being served to you on a thinclient with 
f**ed permissions?


Cheers,
Nick M.

On Wed, Oct 12, 2016 at 10:38 AM Jason Matusiak 
> wrote:


> Hi Marcus, The reason I went with sudo was because it was
erroring outif I didn't:

> $ pip install -I --user pybombs
> Collecting pybombs
>   Using cached PyBOMBS-2.2.0.tar.gz
> Complete output from command python setup.py egg_info:

> /usr/lib/python2.7/distutils/dist.py:267: UserWarning:
Unknowndistribution option: 'entry_points'

>   warnings.warn(msg)

> /usr/lib/python2.7/distutils/dist.py:267: UserWarning:
Unknowndistribution option: 'install_requires'

>   warnings.warn(msg)
> usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
>or: -c --help [cmd1 cmd2 ...]
>or: -c --help-commands
>or: -c cmd --help
>
> error: invalid command 'egg_info'
>
> 

> Command "python setup.py egg_info" failed with error code 1 in
/tmp/pip-build-FJfz9W/pybombs/

I am still stuck at this stage. Assuming I am dead in the water,
what is the next best (approved) way of installing GnuRadio? 
Doing it by hand from the github clone?

___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org 
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio







___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


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

2016-10-13 Thread Nicholas McCarthy
(However, I think there's a lot of upside to installing on a vanilla OS for
comparison, replicating your error on your IT-polluted OS, and forcing IT
to fix the problems they're imposing on you.)

Cheers,
Nick M.

On Thu, Oct 13, 2016 at 1:42 PM Nicholas McCarthy 
wrote:

> You need to remove all versions of pip you previously installed and truly
> start fresh with the curl command.
>
> I recommend starting with a completely fresh install and never typing
> "sudo."  (This is assuming you DO have a reasonable python installed.)
>
> Until you can run commands like pip install pybombs and pybombs recipes
> add without getting permissions problems, your system is really too broken
> to deal with.
>
> If you're happy with adding the recipes using sudo and you can install
> gnuradio using sudo from your current state, then just do that.
>
> Cheers,
> Nick M.
>
> On Thu, Oct 13, 2016 at 12:48 PM Jason Matusiak <
> ja...@gardettoengineering.com> wrote:
>
> Nick, A little more information.
>
> I try to do the next step (add recipes) and I get the following:
> jmat@jmat:~$ pybombs recipes add gr-recipes git+
> https://github.com/gnuradio/gr-recipes.git
> bash: /usr/local/bin/pybombs: Permission denied
>
> Looking at that binary, it has permissions 700.  I chmod it to 755 and
> rerun and get:
> jmat@jmat:~$ 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 
> load_entry_point('PyBOMBS==2.2.0', 'console_scripts', 'pybombs')()
>   File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 567,
> in load_entry_point
>   File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line
> 2603, in load_entry_point
>
> ImportError: Entry point ('console_scripts', 'pybombs') not found
>
> If I run the command with sudo, it seems to work, but I assume that that
> is not a good practice, right?
>
>
> ~Jason
>
>
> On 10/13/2016 12:34 PM, Jason Matusiak wrote:
>
> Nick,
>
> I spoke with IT and I was mistaken on the "script" version of sudo.  What
> is really going on is that we use centrify's dzdo as sudo.  They just made
> a wrapper so that users can call sudo like usual and dzdo gets called under
> the hood.  So the sudo //should// be pretty normal.
>
> I went to the look you sent me and ran the command: curl
> https://bootstrap.pypa.io/get-pip.py | python.  I get the following error
> back:
> jmat@jmat:~$ curl https://bootstrap.pypa.io/get-pip.py | python
>   % Total% Received % Xferd  Average Speed   TimeTime Time
> Current
>  Dload  Upload   Total   SpentLeft
> Speed
> 100 1488k  100 1488k0 0  6323k  0 --:--:-- --:--:-- --:--:--
> 6336k
> Requirement already up-to-date: pip in ./.local/lib/python2.7/site-packages
> Collecting wheel
>   Downloading wheel-0.29.0-py2.py3-none-any.whl (66kB)
> 100% || 71kB 6.0MB/s
> Installing collected packages: wheel
> Exception:
> Traceback (most recent call last):
>   File "/tmp/tmpZg40zI/pip.zip/pip/basecommand.py", line 215, in main
> status = self.run(options, args)
>   File "/tmp/tmpZg40zI/pip.zip/pip/commands/install.py", line 317, in run
> prefix=options.prefix_path,
>   File "/tmp/tmpZg40zI/pip.zip/pip/req/req_set.py", line 742, in install
> **kwargs
>   File "/tmp/tmpZg40zI/pip.zip/pip/req/req_install.py", line 831, in
> install
> self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
>   File "/tmp/tmpZg40zI/pip.zip/pip/req/req_install.py", line 1032, in
> move_wheel_files
> isolated=self.isolated,
>   File "/tmp/tmpZg40zI/pip.zip/pip/wheel.py", line 346, in move_wheel_files
> clobber(source, lib_dir, True)
>   File "/tmp/tmpZg40zI/pip.zip/pip/wheel.py", line 317, in clobber
> ensure_dir(destdir)
>   File "/tmp/tmpZg40zI/pip.zip/pip/utils/__init__.py", line 83, in
> ensure_dir
> os.makedirs(path)
>   File "/usr/lib/python2.7/os.py", line 157, in makedirs
> mkdir(name, mode)
> OSError: [Errno 13] Permission denied:
> '/usr/local/lib/python2.7/dist-packages/wheel'
>
> Trying it with sudo returns the same errors.  My solution to get it to
> install was to sudo su -, and install it from there.  Supposedly it has
> something to do with sudo forking the command back to the user or something
> (this level of admining is over my head; but I wonder if something
> different is going on in 16.04 that was previously allowed in 14.04 for
> me).  I then exited out of sudo su, and ran sudo pip install pybombs and
> that worked.  Now I am going to continue down the path and see if I can get
> further along.
>
> Sorry for all the issues, but thanks for piping up.
> ~Jason
>
> On 10/13/2016 12:17 PM, Nicholas McCarthy wrote:
>
> Hey Jason,
>
> That's interesting... I was expecting it to prove your user saw a
> different version of setuptools than running sudo.  I think there's still
> evidence that may be the 

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

2016-10-13 Thread Jason Matusiak

Nick,

I spoke with IT and I was mistaken on the "script" version of sudo. What 
is really going on is that we use centrify's dzdo as sudo. They just 
made a wrapper so that users can call sudo like usual and dzdo gets 
called under the hood.  So the sudo //should// be pretty normal.


I went to the look you sent me and ran the command: curl 
https://bootstrap.pypa.io/get-pip.py | python.  I get the following 
error back:

jmat@jmat:~$ curl https://bootstrap.pypa.io/get-pip.py | python
  % Total% Received % Xferd  Average Speed   TimeTime Time  Current
 Dload  Upload   Total   Spent Left  Speed
100 1488k  100 1488k0 0  6323k  0 --:--:-- --:--:-- --:--:-- 
6336k

Requirement already up-to-date: pip in ./.local/lib/python2.7/site-packages
Collecting wheel
  Downloading wheel-0.29.0-py2.py3-none-any.whl (66kB)
100% || 71kB 6.0MB/s
Installing collected packages: wheel
Exception:
Traceback (most recent call last):
  File "/tmp/tmpZg40zI/pip.zip/pip/basecommand.py", line 215, in main
status = self.run(options, args)
  File "/tmp/tmpZg40zI/pip.zip/pip/commands/install.py", line 317, in run
prefix=options.prefix_path,
  File "/tmp/tmpZg40zI/pip.zip/pip/req/req_set.py", line 742, in install
**kwargs
  File "/tmp/tmpZg40zI/pip.zip/pip/req/req_install.py", line 831, in 
install

self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
  File "/tmp/tmpZg40zI/pip.zip/pip/req/req_install.py", line 1032, in 
move_wheel_files

isolated=self.isolated,
  File "/tmp/tmpZg40zI/pip.zip/pip/wheel.py", line 346, in move_wheel_files
clobber(source, lib_dir, True)
  File "/tmp/tmpZg40zI/pip.zip/pip/wheel.py", line 317, in clobber
ensure_dir(destdir)
  File "/tmp/tmpZg40zI/pip.zip/pip/utils/__init__.py", line 83, in 
ensure_dir

os.makedirs(path)
  File "/usr/lib/python2.7/os.py", line 157, in makedirs
mkdir(name, mode)
OSError: [Errno 13] Permission denied: 
'/usr/local/lib/python2.7/dist-packages/wheel'


Trying it with sudo returns the same errors.  My solution to get it to 
install was to sudo su -, and install it from there.  Supposedly it has 
something to do with sudo forking the command back to the user or 
something (this level of admining is over my head; but I wonder if 
something different is going on in 16.04 that was previously allowed in 
14.04 for me).  I then exited out of sudo su, and ran sudo pip install 
pybombs and that worked.  Now I am going to continue down the path and 
see if I can get further along.


Sorry for all the issues, but thanks for piping up.
~Jason

On 10/13/2016 12:17 PM, Nicholas McCarthy wrote:

Hey Jason,

That's interesting... I was expecting it to prove your user saw a 
different version of setuptools than running sudo.  I think there's 
still evidence that may be the case, but I'm not sure.


I think your best bet for building gnuradio on your non-vanilla 
machine is to start from scratch assuming you do not have sudo privileges.


Assuming you have a reasonable python installed, you should be able to 
install pip using this.


https://github.com/pypa/get-pip

Then pip install pybombs

Then use pybombs

However, if your ultimate goal is to work with your IT to get to the 
root of your bizzaro OS problems, then I would
1. Do a pybombs install using your initial set of commands on a truly 
vanilla ubuntu (to prove that it works and to give your IT something 
to compare with the broken system).
2. Follow these same steps on your non-vanilla ubuntu to reproduce 
your error.
3. Dump the problem on your IT telling them to solve whatever 
permissions and system path problems they need to solve to make system 
2 behave like system 1.



Cheers,
Nick M.

On Thu, Oct 13, 2016 at 11:24 AM Jason Matusiak 
> 
wrote:


Nick,

Thank you for the info.  I've uninstalled pybombs everywhere, so I
should be "clean" again.

I tried running your two easy_install commands and got an
unexpected result:
jmat@jmat:~/Downloads$ easy_install --version
usage: easy_install [options] requirement_or_url ...
   or: easy_install --help

error: invalid command 'easy_install'
jmat@jmat:~/Downloads$ sudo easy_install --version
setuptools 28.3.0 from /usr/local/lib/python2.7/dist-packages
(Python 2.7)

I sort of figured that the non-sudo version would give some sort
of result based on your email.  Does this tell us something?

Thanks!

~Jason


On 10/12/2016 02:58 PM, Nicholas McCarthy wrote:

So If I look at sys.path in python, I do see
/usr/local/lib/python2.7/dist-packages
(and I didn't do anything special to make this happen.)

Also, which pybombs points to
/usr/local/bin/pybombs

And my install location for pybombs is
/usr/local/lib/python2.7/dist-packages

From the standpoint of a fresh install (which you certainly no

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

2016-10-13 Thread Nicholas McCarthy
You need to remove all versions of pip you previously installed and truly
start fresh with the curl command.

I recommend starting with a completely fresh install and never typing
"sudo."  (This is assuming you DO have a reasonable python installed.)

Until you can run commands like pip install pybombs and pybombs recipes add
without getting permissions problems, your system is really too broken to
deal with.

If you're happy with adding the recipes using sudo and you can install
gnuradio using sudo from your current state, then just do that.

Cheers,
Nick M.

On Thu, Oct 13, 2016 at 12:48 PM Jason Matusiak <
ja...@gardettoengineering.com> wrote:

> Nick, A little more information.
>
> I try to do the next step (add recipes) and I get the following:
> jmat@jmat:~$ pybombs recipes add gr-recipes git+
> https://github.com/gnuradio/gr-recipes.git
> bash: /usr/local/bin/pybombs: Permission denied
>
> Looking at that binary, it has permissions 700.  I chmod it to 755 and
> rerun and get:
> jmat@jmat:~$ 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 
> load_entry_point('PyBOMBS==2.2.0', 'console_scripts', 'pybombs')()
>   File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 567,
> in load_entry_point
>   File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line
> 2603, in load_entry_point
>
> ImportError: Entry point ('console_scripts', 'pybombs') not found
>
> If I run the command with sudo, it seems to work, but I assume that that
> is not a good practice, right?
>
>
> ~Jason
>
>
> On 10/13/2016 12:34 PM, Jason Matusiak wrote:
>
> Nick,
>
> I spoke with IT and I was mistaken on the "script" version of sudo.  What
> is really going on is that we use centrify's dzdo as sudo.  They just made
> a wrapper so that users can call sudo like usual and dzdo gets called under
> the hood.  So the sudo //should// be pretty normal.
>
> I went to the look you sent me and ran the command: curl
> https://bootstrap.pypa.io/get-pip.py | python.  I get the following error
> back:
> jmat@jmat:~$ curl https://bootstrap.pypa.io/get-pip.py | python
>   % Total% Received % Xferd  Average Speed   TimeTime Time
> Current
>  Dload  Upload   Total   SpentLeft
> Speed
> 100 1488k  100 1488k0 0  6323k  0 --:--:-- --:--:-- --:--:--
> 6336k
> Requirement already up-to-date: pip in ./.local/lib/python2.7/site-packages
> Collecting wheel
>   Downloading wheel-0.29.0-py2.py3-none-any.whl (66kB)
> 100% || 71kB 6.0MB/s
> Installing collected packages: wheel
> Exception:
> Traceback (most recent call last):
>   File "/tmp/tmpZg40zI/pip.zip/pip/basecommand.py", line 215, in main
> status = self.run(options, args)
>   File "/tmp/tmpZg40zI/pip.zip/pip/commands/install.py", line 317, in run
> prefix=options.prefix_path,
>   File "/tmp/tmpZg40zI/pip.zip/pip/req/req_set.py", line 742, in install
> **kwargs
>   File "/tmp/tmpZg40zI/pip.zip/pip/req/req_install.py", line 831, in
> install
> self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
>   File "/tmp/tmpZg40zI/pip.zip/pip/req/req_install.py", line 1032, in
> move_wheel_files
> isolated=self.isolated,
>   File "/tmp/tmpZg40zI/pip.zip/pip/wheel.py", line 346, in move_wheel_files
> clobber(source, lib_dir, True)
>   File "/tmp/tmpZg40zI/pip.zip/pip/wheel.py", line 317, in clobber
> ensure_dir(destdir)
>   File "/tmp/tmpZg40zI/pip.zip/pip/utils/__init__.py", line 83, in
> ensure_dir
> os.makedirs(path)
>   File "/usr/lib/python2.7/os.py", line 157, in makedirs
> mkdir(name, mode)
> OSError: [Errno 13] Permission denied:
> '/usr/local/lib/python2.7/dist-packages/wheel'
>
> Trying it with sudo returns the same errors.  My solution to get it to
> install was to sudo su -, and install it from there.  Supposedly it has
> something to do with sudo forking the command back to the user or something
> (this level of admining is over my head; but I wonder if something
> different is going on in 16.04 that was previously allowed in 14.04 for
> me).  I then exited out of sudo su, and ran sudo pip install pybombs and
> that worked.  Now I am going to continue down the path and see if I can get
> further along.
>
> Sorry for all the issues, but thanks for piping up.
> ~Jason
>
> On 10/13/2016 12:17 PM, Nicholas McCarthy wrote:
>
> Hey Jason,
>
> That's interesting... I was expecting it to prove your user saw a
> different version of setuptools than running sudo.  I think there's still
> evidence that may be the case, but I'm not sure.
>
> I think your best bet for building gnuradio on your non-vanilla machine is
> to start from scratch assuming you do not have sudo privileges.
>
> Assuming you have a reasonable python installed, you should be able to
> install pip using this.
>
> https://github.com/pypa/get-pip
>
> Then pip 

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

2016-10-13 Thread Jason Matusiak

Nick, A little more information.

I try to do the next step (add recipes) and I get the following:
jmat@jmat:~$ pybombs recipes add gr-recipes 
git+https://github.com/gnuradio/gr-recipes.git

bash: /usr/local/bin/pybombs: Permission denied

Looking at that binary, it has permissions 700.  I chmod it to 755 and 
rerun and get:
jmat@jmat:~$ 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 
load_entry_point('PyBOMBS==2.2.0', 'console_scripts', 'pybombs')()
  File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 
567, in load_entry_point
  File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 
2603, in load_entry_point

ImportError: Entry point ('console_scripts', 'pybombs') not found

If I run the command with sudo, it seems to work, but I assume that that 
is not a good practice, right?


~Jason

On 10/13/2016 12:34 PM, Jason Matusiak wrote:

Nick,

I spoke with IT and I was mistaken on the "script" version of sudo.  
What is really going on is that we use centrify's dzdo as sudo.  They 
just made a wrapper so that users can call sudo like usual and dzdo 
gets called under the hood.  So the sudo //should// be pretty normal.


I went to the look you sent me and ran the command: curl 
https://bootstrap.pypa.io/get-pip.py | python.  I get the following 
error back:

jmat@jmat:~$ curl https://bootstrap.pypa.io/get-pip.py | python
  % Total% Received % Xferd  Average Speed   TimeTime Time  
Current

 Dload  Upload   Total   Spent Left  Speed
100 1488k  100 1488k0 0  6323k  0 --:--:-- --:--:-- 
--:--:-- 6336k
Requirement already up-to-date: pip in 
./.local/lib/python2.7/site-packages

Collecting wheel
  Downloading wheel-0.29.0-py2.py3-none-any.whl (66kB)
100% || 71kB 6.0MB/s
Installing collected packages: wheel
Exception:
Traceback (most recent call last):
  File "/tmp/tmpZg40zI/pip.zip/pip/basecommand.py", line 215, in main
status = self.run(options, args)
  File "/tmp/tmpZg40zI/pip.zip/pip/commands/install.py", line 317, in run
prefix=options.prefix_path,
  File "/tmp/tmpZg40zI/pip.zip/pip/req/req_set.py", line 742, in install
**kwargs
  File "/tmp/tmpZg40zI/pip.zip/pip/req/req_install.py", line 831, in 
install

self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
  File "/tmp/tmpZg40zI/pip.zip/pip/req/req_install.py", line 1032, in 
move_wheel_files

isolated=self.isolated,
  File "/tmp/tmpZg40zI/pip.zip/pip/wheel.py", line 346, in 
move_wheel_files

clobber(source, lib_dir, True)
  File "/tmp/tmpZg40zI/pip.zip/pip/wheel.py", line 317, in clobber
ensure_dir(destdir)
  File "/tmp/tmpZg40zI/pip.zip/pip/utils/__init__.py", line 83, in 
ensure_dir

os.makedirs(path)
  File "/usr/lib/python2.7/os.py", line 157, in makedirs
mkdir(name, mode)
OSError: [Errno 13] Permission denied: 
'/usr/local/lib/python2.7/dist-packages/wheel'


Trying it with sudo returns the same errors.  My solution to get it to 
install was to sudo su -, and install it from there. Supposedly it has 
something to do with sudo forking the command back to the user or 
something (this level of admining is over my head; but I wonder if 
something different is going on in 16.04 that was previously allowed 
in 14.04 for me).  I then exited out of sudo su, and ran sudo pip 
install pybombs and that worked.  Now I am going to continue down the 
path and see if I can get further along.


Sorry for all the issues, but thanks for piping up.
~Jason

On 10/13/2016 12:17 PM, Nicholas McCarthy wrote:

Hey Jason,

That's interesting... I was expecting it to prove your user saw a 
different version of setuptools than running sudo.  I think there's 
still evidence that may be the case, but I'm not sure.


I think your best bet for building gnuradio on your non-vanilla 
machine is to start from scratch assuming you do not have sudo 
privileges.


Assuming you have a reasonable python installed, you should be able 
to install pip using this.


https://github.com/pypa/get-pip

Then pip install pybombs

Then use pybombs

However, if your ultimate goal is to work with your IT to get to the 
root of your bizzaro OS problems, then I would
1. Do a pybombs install using your initial set of commands on a truly 
vanilla ubuntu (to prove that it works and to give your IT something 
to compare with the broken system).
2. Follow these same steps on your non-vanilla ubuntu to reproduce 
your error.
3. Dump the problem on your IT telling them to solve whatever 
permissions and system path problems they need to solve to make 
system 2 behave like system 1.



Cheers,
Nick M.

On Thu, Oct 13, 2016 at 11:24 AM Jason Matusiak 
> wrote:


Nick,

Thank you for the info.  I've uninstalled pybombs everywhere, so
I should be 

[Discuss-gnuradio] FPGA Images on Ettus E310

2016-10-13 Thread John B. Wood
Hello, all.  In the /usr/share/uhd/images directory on the ARMv7 
processor (p/o of the E310 and running Xilinx Linux) there are a number 
of FPGA images for ostensibly other architectures besides the E310.  If 
another of these, say one of the several ones for an N210 device are 
loaded into the E310's FPGA will it behave like an N210 (keeping in mind 
that the N210 doesn't contain an integral processor running Linux)?  
Thanks for your time and comment. Sincerely,


--
   ____ __   __   John Wood
  /  |\ / /\   /  \ / /\  Code 5520
 / | ||/ / /  / /\__/ /|   / / /  U.S. Naval Research Lab
/ /| |/ / /  / /_/_/ / /  / / /   4555 Overlook Avenue, SW
   / / |   / /  / ___   / /  / / /Washington, DC 20375-5337
  / / /|  / /  / /\_| |\_/  / /_/_(202) 767-2608
 /_/ / |_/ /  /_/ / |_||   /_/\   (202) 767-1191 (FAX)
 \_\/  \_\/   \_\/  \_\|   \_\/   e-mail: john.w...@nrl.navy.mil
WWW: http://www.itd.nrl.navy.mil

Hear and you forget; see and you remember; do and you understand.
Confucius


___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


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

2016-10-13 Thread Nicholas McCarthy
Hey Jason,

That's interesting... I was expecting it to prove your user saw a different
version of setuptools than running sudo.  I think there's still evidence
that may be the case, but I'm not sure.

I think your best bet for building gnuradio on your non-vanilla machine is
to start from scratch assuming you do not have sudo privileges.

Assuming you have a reasonable python installed, you should be able to
install pip using this.

https://github.com/pypa/get-pip

Then pip install pybombs

Then use pybombs

However, if your ultimate goal is to work with your IT to get to the root
of your bizzaro OS problems, then I would
1. Do a pybombs install using your initial set of commands on a truly
vanilla ubuntu (to prove that it works and to give your IT something to
compare with the broken system).
2. Follow these same steps on your non-vanilla ubuntu to reproduce your
error.
3. Dump the problem on your IT telling them to solve whatever permissions
and system path problems they need to solve to make system 2 behave like
system 1.


Cheers,
Nick M.

On Thu, Oct 13, 2016 at 11:24 AM Jason Matusiak <
ja...@gardettoengineering.com> wrote:

> Nick,
>
> Thank you for the info.  I've uninstalled pybombs everywhere, so I should
> be "clean" again.
>
> I tried running your two easy_install commands and got an unexpected
> result:
> jmat@jmat:~/Downloads$ easy_install --version
> usage: easy_install [options] requirement_or_url ...
>or: easy_install --help
>
> error: invalid command 'easy_install'
> jmat@jmat:~/Downloads$ sudo easy_install --version
> setuptools 28.3.0 from /usr/local/lib/python2.7/dist-packages (Python 2.7)
>
> I sort of figured that the non-sudo version would give some sort of result
> based on your email.  Does this tell us something?
>
> Thanks!
>
> ~Jason
>
>
> On 10/12/2016 02:58 PM, Nicholas McCarthy wrote:
>
> So If I look at sys.path in python, I do see
> /usr/local/lib/python2.7/dist-packages
> (and I didn't do anything special to make this happen.)
>
> Also, which pybombs points to
> /usr/local/bin/pybombs
>
> And my install location for pybombs is
> /usr/local/lib/python2.7/dist-packages
>
> From the standpoint of a fresh install (which you certainly no longer
> have), I think the problem comes in when you fail to have permissions on
> the pybombs bin... I suspect that's something to do with your weird sudo
> script and not pip or pybombs, but I'm not sure.
>
> If you could get back to the state you were in after your initial attempt
> to install, I'd like to know the value of your sys.path in python.
>
> Right now, you have a frankenbuild for pybombs thanks to running sudo with
> the --user flag... I would uninstall that, for sure and get to where you
> have no pybombs installed anywhere.
>
> So... as for why you can't pip install pybombs (no sudo)... this has to be
> a setuptools thing.
>
> Maybe try
> easy_install --version
> and
> sudo easy_install --version
>
> to see if there's a difference.  Because your sudo is broken, you may have
> to do a lot of "sudo which blah" and "which blah" to find out what your
> problem is.
>
> You can probably try an install without any sudo use by first sudo apt-get
> remove --purge pip and then downloading and using get-pip.py.  Then just
> pip install pybombs (no flags, no sudo, no nothing)... and try that one.
>
> Cheers,
> Nick M.
>
>
>
> On Wed, Oct 12, 2016 at 1:13 PM Jason Matusiak <
> ja...@gardettoengineering.com> wrote:
>
> Hi Nick!
> I did.  When I run it I get:
> Requirement already up-to-date: setuptools in
> /usr/local/lib/python2.7/dist-packages
>
> I am not on a thin client, I am on a fresh load of 16.04 on an actual PC.
> I do believe that sudo isn't actually sudo, but a script.  That said, I
> wasn't having sudo issues before I reloaded my machine (which was running
> 14.04).
>
> Thanks!
>
>
>
> On 10/12/2016 01:04 PM, Nicholas McCarthy wrote:
>
> Jason, did you try
> pip install --upgrade setuptools
>
> as a first step?  Are you running on a special setup such as a patchwork
> virtual machine being served to you on a thinclient with f**ed permissions?
>
> Cheers,
> Nick M.
>
> On Wed, Oct 12, 2016 at 10:38 AM Jason Matusiak <
> ja...@gardettoengineering.com> wrote:
>
> > Hi Marcus, The reason I went with sudo was because it was erroring out if
> I didn't:
>
> > $ pip install -I --user pybombs
> > Collecting pybombs
> >   Using cached PyBOMBS-2.2.0.tar.gz
> > Complete output from command python setup.py egg_info:
>
> > /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution
> option: 'entry_points'
>
> >   warnings.warn(msg)
>
> > /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution
> option: 'install_requires'
>
> >   warnings.warn(msg)
> > usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
> >or: -c --help [cmd1 cmd2 ...]
> >or: -c --help-commands
> >or: -c cmd --help
> >
> > error: invalid command 'egg_info'
> >
> > 

Re: [Discuss-gnuradio] FPGA Images on Ettus E310

2016-10-13 Thread Marcus Müller
Hi John,

they are on the SD Card just because the default method of getting them
downloads a whole bunch of images.

An FPGA image is 100% specific to exactly the FPGA and connections. The
N210's FPGA and the Zynq's PL aren't even similar; this can't work out,
you can't even successfully load such an image.

I generally like to compare FPGAs to "empty" factories with a stock of
electrical wire, switches, pipes, hydralic actuators, motors, conveyor
belts, as well doors and chutes in fixed places in the walls, and a
couple of machines installed in fixed places on the floor. The FPGA
image is nothing but a photo that exactly defines how to lay out your
connections stock, square millimeter by square millimeter, and where to
place switches etc to build something useful.

Every different FPGA model is a different factory: it has a different
building size, different machines, different doors, different electrical
wiring standards, the pipes can withstand different pressure and so on.
That won't do.

Best regards,

Marcus

On 10/13/2016 10:59 AM, John B. Wood wrote:
> Hello, all.  In the /usr/share/uhd/images directory on the ARMv7
> processor (p/o of the E310 and running Xilinx Linux) there are a
> number of FPGA images for ostensibly other architectures besides the
> E310.  If another of these, say one of the several ones for an N210
> device are loaded into the E310's FPGA will it behave like an N210
> (keeping in mind that the N210 doesn't contain an integral processor
> running Linux)?  Thanks for your time and comment. Sincerely,
>


___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


[Discuss-gnuradio] Magnitude dips in transmission

2016-10-13 Thread Usman Haider
Hi,

I am using Gnu Radio 3.7.8 with uhd 003.008.005 and umtrx v2.2. When I use
the attached GRC flowgraph I see random drops in the magnitude of the
transmission and also a carrier wave. Please see the link below for the
output. I searched on the internet but could not find anything. I used a
different umtrx but the result is same. I used uhd.tune_request() as well
but no luck. Any thoughts what could be the issue here? Sorry the question
is not directly related to Gnu Radio but asking here after find nothing on
internet.

http://imgur.com/a/4P7qP

GRC output:

linux; GNU C++ version 4.8.4; Boost_105400; UHD_003.008.005-0-g7efbd15b



Using Volk machine: avx_64_mmx_orc

-- UmTRX driver version: 1.0.3-80-d0a7463

-- Opening a UmTRX device... 192.168.10.2

-- user_mtu.recv_mtu = 1472

-- user_mtu.send_mtu = 1472

-- fifo_ctrl.window_size = 15

-- TempA: 34.50 C

-- TempB: 30.50 C

-- Detected UmTRX 2.2

-- Diversity switch for channel 1: false

-- Diversity switch for channel 2: false

-- Known PA types: NONE EPA881F40A EPA942H40A EPA1800F37A

-- Installed PA for sideA: NONE

-- Installed PA for sideB: NONE

-- Time register self-test... pass

-- Looking for FE correction at:
/home/man/.uhd/cal/rx_iq_cal_v0.2_4095.A.csv...  Not found

-- Tune Request: 901.00 MHz

--   The RF LO does not support the requested frequency:

-- Requested LO Frequency: 901.00 MHz

-- RF LO Result: 901.00 MHz

--   Attempted to use the DSP to reach the requested frequency:

-- Desired DSP Frequency: -0.00 MHz

-- DSP Result: -0.00 MHz

--   Successfully tuned to 901.00 MHz

-- 

-- Looking for FE correction at:
/home/man/.uhd/cal/tx_iq_cal_v0.2_4095.A.csv...  Not found

-- Looking for FE correction at:
/home/man/.uhd/cal/tx_dc_cal_v0.2_4095.A.csv...  Not found

-- Tune Request: 901.00 MHz

--   The RF LO does not support the requested frequency:

-- Requested LO Frequency: 901.00 MHz

-- RF LO Result: 901.00 MHz

--   Attempted to use the DSP to reach the requested frequency:

-- Desired DSP Frequency: 0.00 MHz

-- DSP Result: 0.00 MHz

--   Successfully tuned to 901.00 MHz


Regards,
Usman


umtrx_test.grc
Description: Binary data
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio