Giter Club home page Giter Club logo

Comments (5)

cwilling avatar cwilling commented on August 21, 2024

I'm not sure why its like that for you. Using the same commands, I see:
chris@d6:$ hoorex -r ttf-mscorefonts -d
DEBUG: VERBOSE mode set at command line
DEBUG: Set sbo_path to /scratch/PKG/SBo/slackbuilds from config file
DEBUG: sbo_path: /scratch/PKG/SBo/slackbuilds
DEBUG: Loading existing repo data
DEBUG: PkgData loaded from file OK
DEBUG: Processing initial targets of: ['ttf-mscorefonts']
DEBUG: REVERSE mode set at command line
DEBUG: [['ttf-mscorefonts'], ['cabextract']]
DEBUG: Moving cabextract to sorted queue
DEBUG: Moving ttf-mscorefonts to sorted queue
cabextract ttf-mscorefonts
chris@d6:
$ hoorex -r cantarell-fonts -d
DEBUG: VERBOSE mode set at command line
DEBUG: Set sbo_path to /scratch/PKG/SBo/slackbuilds from config file
DEBUG: sbo_path: /scratch/PKG/SBo/slackbuilds
DEBUG: Loading existing repo data
DEBUG: PkgData loaded from file OK
DEBUG: Processing initial targets of: ['cantarell-fonts']
DEBUG: REVERSE mode set at command line
DEBUG: [['cantarell-fonts'], []]
DEBUG: Moving cantarell-fonts to sorted queue
cantarell-fonts
chris@d6:~$

Your result is definitely strange - notice the line "Processing initial targets of: []" as if its not seeing the target package name. If you have some time for some extra testing, could you find line 81 in hoorex that says: 'args = parser.parse_args()'; then immediately after that line, add a new line saying 'print(args)'? That will print out whatever hoorex thinks has been passed from the command line. In that case, I see:
chris@d6:/src/hoorex$ ./hoorex -r ttf-mscorefonts -d
Namespace(app_version=False, debug_mode=True, force=False, multilevel=False, output_column=False, output_installed=False, output_long=False, output_strictly_installed=False, reverse_lookup=True, sbo_group=None, sbo_path=None, target=['ttf-mscorefonts'], unknown_strict=False)
DEBUG: VERBOSE mode set at command line
DEBUG: Set sbo_path to /scratch/PKG/SBo/slackbuilds from config file
DEBUG: sbo_path: /scratch/PKG/SBo/slackbuilds
DEBUG: Loading existing repo data
DEBUG: PkgData loaded from file OK
DEBUG: Processing initial targets of: ['ttf-mscorefonts']
DEBUG: REVERSE mode set at command line
DEBUG: [['ttf-mscorefonts'], ['cabextract']]
DEBUG: Moving cabextract to sorted queue
DEBUG: Moving ttf-mscorefonts to sorted queue
cabextract ttf-mscorefonts
chris@d6:
/src/hoorex$

Notice that the extra output includes "target=['ttf-mscorefonts']". Does your new output have that?

from hoorex.

abchk1234 avatar abchk1234 commented on August 21, 2024

Yup, it seems to have that:

$ ./hoorex -r ttf-mscorefonts -d
Namespace(app_version=False, debug_mode=True, force=False, multilevel=False, output_column=False, output_installed=False, output_long=False, output_strictly_installed=False, reverse_lookup=True, sbo_group=None, sbo_path=None, target=['ttf-mscorefonts'], unknown_strict=False)
DEBUG: VERBOSE mode set at command line
DEBUG: Set sbo_path to /home/aaditya/slackbuilds from config file
DEBUG: sbo_path: /home/aaditya/slackbuilds
DEBUG: Loading existing repo data
DEBUG: PkgData loaded from file OK
DEBUG: Processing initial targets of: []
DEBUG: REVERSE mode set at command line
DEBUG: [[]]

Some more examples:

$ ./hoorex -r hoorex -d
Namespace(app_version=False, debug_mode=True, force=False, multilevel=False, output_column=False, output_installed=False, output_long=False, output_strictly_installed=False, reverse_lookup=True, sbo_group=None, sbo_path=None, target=['hoorex'], unknown_strict=False)
DEBUG: VERBOSE mode set at command line
DEBUG: Set sbo_path to /home/aaditya/slackbuilds from config file
DEBUG: sbo_path: /home/aaditya/slackbuilds
DEBUG: Loading existing repo data
DEBUG: PkgData loaded from file OK
DEBUG: Processing initial targets of: []
DEBUG: REVERSE mode set at command line
DEBUG: [[]]
 $ ./hoorex -r wine -d
Namespace(app_version=False, debug_mode=True, force=False, multilevel=False, output_column=False, output_installed=False, output_long=False, output_strictly_installed=False, reverse_lookup=True, sbo_group=None, sbo_path=None, target=['wine'], unknown_strict=False)
DEBUG: VERBOSE mode set at command line
DEBUG: Set sbo_path to /home/aaditya/slackbuilds from config file
DEBUG: sbo_path: /home/aaditya/slackbuilds
DEBUG: Loading existing repo data
DEBUG: PkgData loaded from file OK
DEBUG: Processing initial targets of: ['wine']
DEBUG: REVERSE mode set at command line
DEBUG: [['wine'], ['fontforge', 'webcore-fonts']]
DEBUG: Moving fontforge to sorted queue
DEBUG: webcore-fonts still needed (in wine)
DEBUG: Moving webcore-fonts to sorted queue
DEBUG: Moving wine to sorted queue
fontforge webcore-fonts wine 
$ ./hoorex -r dosbox -d
Namespace(app_version=False, debug_mode=True, force=False, multilevel=False, output_column=False, output_installed=False, output_long=False, output_strictly_installed=False, reverse_lookup=True, sbo_group=None, sbo_path=None, target=['dosbox'], unknown_strict=False)
DEBUG: VERBOSE mode set at command line
DEBUG: Set sbo_path to /home/aaditya/slackbuilds from config file
DEBUG: sbo_path: /home/aaditya/slackbuilds
DEBUG: Loading existing repo data
DEBUG: PkgData loaded from file OK
DEBUG: Processing initial targets of: ['dosbox']
DEBUG: REVERSE mode set at command line
DEBUG: [['dosbox'], []]
DEBUG: Moving dosbox to sorted queue
dosbox 

Dont know why it is not working with some packages...

from hoorex.

abchk1234 avatar abchk1234 commented on August 21, 2024

Removing .local/share/hoorex/repoData.pkl seems to have fixed the issue.

$ ./hoorex -r ttf-mscorefonts -d
Namespace(app_version=False, debug_mode=True, force=False, multilevel=False, output_column=False, output_installed=False, output_long=False, output_strictly_installed=False, reverse_lookup=True, sbo_group=None, sbo_path=None, target=['ttf-mscorefonts'], unknown_strict=False)
DEBUG: VERBOSE mode set at command line
DEBUG: Set sbo_path to /home/aaditya/slackbuilds from config file
DEBUG: sbo_path: /home/aaditya/slackbuilds
DEBUG: Loading existing repo data
DEBUG: PkgData loaded from file OK
DEBUG: Processing initial targets of: ['ttf-mscorefonts']
DEBUG: REVERSE mode set at command line
DEBUG: [['ttf-mscorefonts'], ['cabextract']]
DEBUG: Moving cabextract to sorted queue
DEBUG: Moving ttf-mscorefonts to sorted queue
cabextract ttf-mscorefonts 
$ ./hoorex -r hoorex -d
Namespace(app_version=False, debug_mode=True, force=False, multilevel=False, output_column=False, output_installed=False, output_long=False, output_strictly_installed=False, reverse_lookup=True, sbo_group=None, sbo_path=None, target=['hoorex'], unknown_strict=False)
DEBUG: VERBOSE mode set at command line
DEBUG: Set sbo_path to /home/aaditya/slackbuilds from config file
DEBUG: sbo_path: /home/aaditya/slackbuilds
DEBUG: Loading existing repo data
DEBUG: PkgData loaded from file OK
DEBUG: Processing initial targets of: ['hoorex']
DEBUG: REVERSE mode set at command line
DEBUG: [['hoorex'], []]
DEBUG: Moving hoorex to sorted queue
hoorex 

from hoorex.

cwilling avatar cwilling commented on August 21, 2024

Interesting. After removing the repoData.pkl file, a new one would be generated when you run the next hoorex command. Since it now works OK, the old one must have been faulty/corrupted somehow.

BTW when you say you removed the .local/share/hoorex/repoData.pkl, I assume you meant ~/.local/hoorex/share/repoData.pkl did you i.e. relative to the user's home directory?

from hoorex.

abchk1234 avatar abchk1234 commented on August 21, 2024

Yes on both counts, a new one was generated, and I meant relative to home directory.

from hoorex.

Related Issues (14)

Recommend Projects

  • React photo React

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

  • Vue.js photo Vue.js

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

  • Typescript photo Typescript

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

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

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

Recommend Topics

  • javascript

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

  • web

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

  • server

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

  • Machine learning

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

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

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

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.