Evidence Qr Code

Issue #52 new
Former user created an issue

Using c:\python27\lib\site-packages\pycparser-2.18-py2.7.egg Finished processing dependencies for Foreman-Forensics==0.0.1 PS D:\Python Scripts\Foreman> c: PS C:\Python27\Scripts> python.exe run_foreman.py run_server 'D:\Python Scripts\Foreman\foreman\config\config.ini' Binding to database. * Running on http://localhost:5000/ 127.0.0.1 - - [19/Feb/2018 16:32:18] "GET /cases/ HTTP/1.1" 200 - 127.0.0.1 - - [19/Feb/2018 16:32:22] "GET /cases/ HTTP/1.1" 200 - 127.0.0.1 - - [19/Feb/2018 16:32:26] "GET /cases/ HTTP/1.1" 200 - 127.0.0.1 - - [19/Feb/2018 16:32:27] "GET /cases/?view=Authorised HTTP/1.1" 200 - 127.0.0.1 - - [19/Feb/2018 16:32:29] "GET /cases/1/ HTTP/1.1" 200 - 127.0.0.1 - - [19/Feb/2018 16:32:33] "GET /cases/1/evidence/add/ HTTP/1.1" 200 - 127.0.0.1 - - [19/Feb/2018 16:32:42] "POST /cases/1/evidence/add/?form=add_evidence HTTP/1.1" 500 - Error on request: Traceback (most recent call last): File "C:\Python27\lib\site-packages\werkzeug-0.9.4-py2.7.egg\werkzeug\serving.py", line 177, in run_wsgi execute(self.server.app) File "C:\Python27\lib\site-packages\werkzeug-0.9.4-py2.7.egg\werkzeug\serving.py", line 165, in execute application_iter = app(environ, start_response) File "C:\Python27\lib\site-packages\werkzeug-0.9.4-py2.7.egg\werkzeug\local.py", line 224, in application return ClosingIterator(app(environ, start_response), self.cleanup) File "C:\Python27\lib\site-packages\werkzeug-0.9.4-py2.7.egg\werkzeug\wsgi.py", line 579, in call return self.app(environ, start_response) File "C:\Python27\lib\site-packages\foreman_forensics-0.0.1-py2.7.egg\foreman\application.py", line 56, in call response = self.dispatch(request, adapter, endpoint, vars) File "C:\Python27\lib\site-packages\foreman_forensics-0.0.1-py2.7.egg\foreman\application.py", line 95, in dispatch response = method_to_call(vars) File "C:\Python27\lib\site-packages\foreman_forensics-0.0.1-py2.7.egg\foreman\controllers\evidenceController.py", line 48, in add evi.create_qr_code() File "C:\Python27\lib\site-packages\foreman_forensics-0.0.1-py2.7.egg\foreman\model\caseModel.py", line 945, in create_qr_code img.save(qr_image_location, "PNG") File "build\bdist.win32\egg\qrcode\image\pil.py", line 47, in save self._img.save(stream, format=format, kwargs) File "C:\Python27\lib\site-packages\pillow-5.0.0-py2.7-win32.egg\PIL\Image.py", line 1927, in save fp = builtins.open(filename, "w+b") IOError: [Errno 2] No such file or directory: 'C:\Python27\lib\site-packages\foreman_forensics-0.0.1-py2.7.egg\foreman\files\evidence_QR_codes\1.png'

Comments (1)

  1. Linklinsse

    try this (maybe) :

    pip show qrcode
    

    if the "Version=" is not 4.6.4

    sudo pip uninstall qrcode
    sudo pip show qrcode
    

    if that show somethings and the "Version=" is 4.0.4 it must be right, if not :

    sudo pip install -Iv qrcode==4.0.4
    

    I hope it work ^^

  2. Log in to comment