gnuradio / pybombs

PyBOMBS (Python Build Overlay Managed Bundle System) is the GNU Radio install management system for resolving dependencies and pulling in out-of-tree projects.
https://gnuradio.org
GNU General Public License v3.0
414 stars 189 forks source link

pip assertion error #545

Closed Ryandry1st closed 4 years ago

Ryandry1st commented 5 years ago

I have freshly install pybombs and am attempting to install GNU Radio, however when I try to run pybombs -v auto-config however I get an assertion error. Below is part of the log.

[DEBUG] Scanning directory 'c:\program files\python37\lib\site-packages\pybombs\recipes' for recipes... [DEBUG] Found 11 new recipes. [DEBUG] Loading templates. [DEBUG] Initializing command class for command auto-config [INFO] Using config file: None [DEBUG] Attempting to add binary package manager apt [DEBUG] Attempting to add binary package manager yumdnf [DEBUG] Attempting to add binary package manager port [DEBUG] Attempting to add binary package manager brew [DEBUG] Attempting to add binary package manager zypper [DEBUG] Attempting to add binary package manager pacman [DEBUG] Attempting to add binary package manager portage [DEBUG] Attempting to add binary package manager pymod [DEBUG] pymod is supported! [DEBUG] Attempting to add binary package manager pip Traceback (most recent call last): File "c:\program files\python37\lib\runpy.py", line 193, in _run_module_as_main "main", mod_spec) File "c:\program files\python37\lib\runpy.py", line 85, in _run_code exec(code, run_globals) File "C:\Program Files\Python37\Scripts\pybombs.exe__main.py", line 9, in File "c:\program files\python37\lib\site-packages\pybombs\main.py", line 32, in main return dispatch() or 0 File "c:\program files\python37\lib\site-packages\pybombs\commands\base.py", line 194, in dispatch return get_cmd_dict(cmd_list)[args.command](cmd=args.command, args=args).run() File "c:\program files\python37\lib\site-packages\pybombs\commands\autoconfig.py", line 118, in run auto_config_settings = AutoConfigurator(self.log).get_auto_config_settings(self.cfg.keys()) File "c:\program files\python37\lib\site-packages\pybombs\commands\autoconfig.py", line 38, in get_auto_config_settings for k in cfg_keys File "c:\program files\python37\lib\site-packages\pybombs\commands\autoconfig.py", line 39, in if hasattr(self, get_method_name(k))} File "c:\program files\python37\lib\site-packages\pybombs\commands\autoconfig.py", line 53, in _auto_config_packagers self.log File "c:\program files\python37\lib\site-packages\pybombs\packagers\base.py", line 129, in filter_available_packagers p = get_by_name(pkgr, pkgr_objects) File "c:\program files\python37\lib\site-packages\pybombs\packagers\base.py", line 108, in get_by_name return obj() File "c:\program files\python37\lib\site-packages\pybombs\packagers\pip.py", line 149, in init self.packager = ExternalPip(self.log) File "c:\program files\python37\lib\site-packages\pybombs\packagers\pip.py", line 56, in init__ assert self.cmd AssertionError

Ryandry1st commented 5 years ago

I have found that this is also the case for a seperate python 2.7.x environment. So something seems to be a problem with the referencing with windows perhaps?

mbr0wn commented 4 years ago

Actually this is probably a pip.py bug. It isn't finding the pip executable on your system. Try running latest master, it includes a different check for that.