wraith-wireless / PyRIC

Python wireless library for Linux
http://wraith-wireless.github.io/PyRIC
Other
92 stars 50 forks source link

Failed to process commands.help #13

Closed ghost closed 8 years ago

ghost commented 8 years ago

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 commented 8 years ago

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

wraith-wireless commented 8 years ago

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

ghost commented 8 years ago

No problem :smile: . 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 commented 8 years ago

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

wraith-wireless commented 8 years ago

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 commented 8 years ago

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 commented 8 years ago

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 commented 8 years ago

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 commented 8 years ago

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 commented 8 years ago

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 commented 8 years ago

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

ghost commented 8 years ago

Thanks man :+1: . 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 commented 8 years ago

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

sophron commented 8 years ago

@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 commented 8 years ago

OK sounds good. I look into it.