Missing Modules - PI

General Discussion

Missing Modules - PI

Postby scut77 » Tue Nov 07, 2017 4:10 pm

Hi there,

Can you tell me how I could install those missing modules form the Raspberry PI?


cv2 unittest
numpy


difflib

I tried to install some packages using the sudo apt-get commands without any luck. :?

Thanks a lot.
scut77
newt
newt
 
Posts: 11
Joined: Tue Feb 02, 2016 5:39 pm

Re: Missing Modules - PI

Postby kevin » Tue Nov 07, 2017 4:36 pm

The contrib directory has a script for installing opencv, run that to install opencv

The rest can be installed via pip
Not an employee of the company. Just here to help and keep things clean.
kevin
Platinum Nut
Platinum Nut
 
Posts: 994
Joined: Fri Aug 16, 2013 10:10 am

Re: Missing Modules - PI

Postby scut77 » Tue Nov 07, 2017 5:05 pm

Kevin,

I think something went wrong, is there a way to safe the zone/email configuration and reinstall the PI from scratch?

Thanks for the prompt response!


The web app its stack on : Services might still be starting - please wait and try again. If this continues, please let us know on GitHub. You can also email us at Support.
scut77
newt
newt
 
Posts: 11
Joined: Tue Feb 02, 2016 5:39 pm

Re: Missing Modules - PI

Postby kevin » Tue Nov 07, 2017 5:09 pm

Hi,

The easiest way to recover from this is to start from scratch with a fresh database. Unfortunately, if you do not have a backup (which you can make in settings, or automate in settings) then you will have to do the work again. However, with the newest version of the webapp and library, if you have AUI support on your panel you can auto-scan for zones

To start from a fresh database, ssh into your pi and issue these commands:

cd /opt/alarmdecoder-webapp
sudo rm instance/db.sqlite
python manage.py initdb


If it ain't broken, don't fix it!! :) Make sure to make a backup of your settings after you are done.
Not an employee of the company. Just here to help and keep things clean.
kevin
Platinum Nut
Platinum Nut
 
Posts: 994
Joined: Fri Aug 16, 2013 10:10 am

Re: Missing Modules - PI

Postby scut77 » Wed Nov 08, 2017 6:23 pm

Hey Kevin,

I downloaded the latest raspberry image from the download section and reconfigured the zones. I like the new features! :P

There are some missing modules:

cffi

usb

miniupnpc
pycparser



pyftdi

How do I install them? I tried pip install cffi... and its not working... :cry:

Thanks
scut77
newt
newt
 
Posts: 11
Joined: Tue Feb 02, 2016 5:39 pm

Re: Missing Modules - PI

Postby kevin » Wed Nov 08, 2017 6:29 pm

scut77 wrote:Hey Kevin,

I downloaded the latest raspberry image from the download section and reconfigured the zones. I like the new features! :P

There are some missing modules:

cffi

usb

miniupnpc
pycparser



pyftdi

How do I install them? I tried pip install cffi... and its not working... :cry:

Thanks


Hi, some of those are in the list on accident and can be ignored. pyftdi is only needed if you have a USB device (not ad2pi or ad2serial) and you should be able to find a package for that somewhere

miniupnpc is for port forwarding, you have to install http://miniupnp.free.fr/ and compile/install that
Then you can install the python module with pip

You can safely ignore cffi and pycparse, those shouldn't even be in the list.
Not an employee of the company. Just here to help and keep things clean.
kevin
Platinum Nut
Platinum Nut
 
Posts: 994
Joined: Fri Aug 16, 2013 10:10 am

Re: Missing Modules - PI

Postby scut77 » Sat Dec 02, 2017 3:26 pm

Hi Kevin,

Few things:

- The keypad its not working from my browser;
- The weekly configuration export its not working.

Any ideas?

Thanks
scut77
newt
newt
 
Posts: 11
Joined: Tue Feb 02, 2016 5:39 pm

Re: Missing Modules - PI

Postby kevin » Sat Dec 02, 2017 6:02 pm

Keypad could be any number of things. Please use ser2sock directly (telnet to port 10000) to see if it is a device configuration issue or a software issue.

As for the other problem, please look at the logs and see if there are errors related to it.
Not an employee of the company. Just here to help and keep things clean.
kevin
Platinum Nut
Platinum Nut
 
Posts: 994
Joined: Fri Aug 16, 2013 10:10 am


Return to General

Who is online

Users browsing this forum: No registered users and 33 guests

cron