Skip to content
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.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to process commands.help #13

Closed
ghost opened this issue Jun 11, 2016 · 15 comments
Closed

Failed to process commands.help #13

ghost opened this issue Jun 11, 2016 · 15 comments

Comments

@ghost
Copy link

ghost commented Jun 11, 2016

I'm using this PyRIC (0.1.1.post1) version and I can't import pyw module. I get the following error:

Traceback (most recent call last):
  File "wifiphisher/interfaces.py", line 6, in <module>
    import pyric.pyw as pyw
  File "/usr/local/lib/python2.7/dist-packages/pyric/pyw.py", line 118, in <module>
    from pyric.nlhelp.nlsearch import cmdbynum      # get command name
  File "/usr/local/lib/python2.7/dist-packages/pyric/nlhelp/nlsearch.py", line 57, in <module>
    raise pyric.error(pyric.EUNDEF,"Failed to process commands.help")

The error happens after version 0.1.0. So 0.1.0 works fine but newer version produce this error.

@wraith-wireless
Copy link
Owner

I'm not getting that error. Let me install via Pip and see what happens.

@wraith-wireless
Copy link
Owner

Yep. I forgot to put attributes.help and commands.help in the manifest file. My bad, fixing now, Wait a few minutes and then look for PyRIC v 0.1.1-2 on PyPI.

I appreciate you and @sophron working through my minor mistakes

wraith-wireless pushed a commit that referenced this issue Jun 11, 2016
@ghost
Copy link
Author

ghost commented Jun 11, 2016

No problem 😄 . No software is ever gonna be perfect and all we can do is try to make it as perfect as possible. Also we are grateful that you have shared this project because without it we had to use an insane amount of subprocess calls in wifiphisher.

@ghost
Copy link
Author

ghost commented Jun 11, 2016

Even after upgrading to PyRIC-0.1.1.post2 the problem is still there.

wraith-wireless pushed a commit that referenced this issue Jun 11, 2016
wraith-wireless pushed a commit that referenced this issue Jun 11, 2016
@wraith-wireless
Copy link
Owner

hmm - they're included in the right spot when package it. Let me try installing post2 and check it out. Guess the only thing to do is keep trying micro version till I get it right and then update to v 0.1.2. Give me some time and give you the go ahead.

@wraith-wireless
Copy link
Owner

Ok, for whatever reason, when using pip the files command.help, attributes.help and oui.txt in utils/data is not getting loaded/saved on the installing system. Although, if you download the tarball from PyPI and extract they are included. I have to do some research on using PyPI to figure out to force it to install data files.

@wraith-wireless
Copy link
Owner

All right located the issue in setup.py specifying the new location of the .help files. Hopefully, did not miss anything else. PyPI now has the latest v 0.1.2 for installation. Being as this is the 100th commit, I am hoping it's a good sign

@ghost
Copy link
Author

ghost commented Jun 11, 2016

I'm getting this error when installing

Collecting PyRIC
  Using cached PyRIC-0.1.2.tar.gz
Building wheels for collected packages: PyRIC
  Running setup.py bdist_wheel for PyRIC ... error
  Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-6lLFMS/PyRIC/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /tmp/tmp75SOn8pip-wheel- --python-tag cp27:
  running bdist_wheel
  error: error in setup.cfg: command 'bdist_wheel' has no such option 'description_file'

  ----------------------------------------
  Failed building wheel for PyRIC
  Running setup.py clean for PyRIC
Failed to build PyRIC
Installing collected packages: PyRIC
  Running setup.py install for PyRIC ... done
Successfully installed PyRIC-0.1.2

@wraith-wireless
Copy link
Owner

wraith-wireless commented Jun 11, 2016

Well crap, this is what I get

Installing collected packages: PyRIC
   Running setup.py install for PyRIC ... done
Successfully installed PyRIC-0.1.2

At the end of your, it says it was successfully installed for you. Did it install even though throwing up the error? The error seems to point to the description_file option. I'm going to remove it and see what happens

@wraith-wireless
Copy link
Owner

Hey man you need to stop finding all these bugs :) or I'll have start paying you a bounty. All right put something new on PyPI (changed the version numbering again) 0.1.2.1. I didn't get any errors, can you please try on your end? Thanks a lot

@wraith-wireless
Copy link
Owner

By the way do you have a twitter account. I just started gathering organizations and people to follow, would like to add you

@ghost
Copy link
Author

ghost commented Jun 11, 2016

Thanks man 👍 . It seems to be completely solved now. Just for reference this is the output

Collecting PyRIC
  Downloading PyRIC-0.1.2.1.tar.gz (836kB)
    100% |████████████████████████████████| 839kB 1.2MB/s 
Building wheels for collected packages: PyRIC
  Running setup.py bdist_wheel for PyRIC ... done
  Stored in directory: /root/.cache/pip/wheels/59/3e/5d/9618109e3d705e0831b1a914e6d137fbd78296b95fe2541276
Successfully built PyRIC
Installing collected packages: PyRIC
Successfully installed PyRIC-0.1.2.1

And I don't have a twitter account but @sophron has one.

@wraith-wireless
Copy link
Owner

Good deal - I'm still working on figuring out all this packaging stuff.

@sophron
Copy link

sophron commented Jun 12, 2016

@wraith-wireless Btw, if you are on IRC, feel free to join us on #wifiphisher channel on Freenode for more direct communication in the future.

@wraith-wireless
Copy link
Owner

OK sounds good. I look into it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants