openalpr / cloudapi

OpenALPR Cloud API Client Libraries
Apache License 2.0
48 stars 48 forks source link

No module named openalpr_api #7

Open ajhawkins opened 7 years ago

ajhawkins commented 7 years ago

I'm experiencing an ImportError of No module named openalpr_api. I've ran the setup.py and installed the necessary commands explained in the README writeup. Got any advice for me?

xronsx commented 7 years ago

Hi,

Are you making the necesary imports?... import openalpr_api

kajili commented 6 years ago

have you ever figured this out? I'm trying to use python to test the Cloud API and I'm getting the same error. @ajhawkins

jaimecosme commented 6 years ago

It seems the .git file refers to the whole project, so I think the best way to install it is using setuptools. I was able to install it using the following:

mkdir test
cd test
wget https://github.com/openalpr/cloudapi/archive/master.zip
unzip master.zip
cd cloudapi-master/python
python setup.py install --user

If you are inside a virtualenv, you can remove the --user from the last command.

Try it out and see if it works for you.

kajili commented 6 years ago

@jaimecosme thank you!! it worked. does this mean the openalpr_api module is now installed on my whole system? Or just in a certain place?

jaimecosme commented 6 years ago

@kajili If you don't use the --user flag and you are not using virtualenv, it should be installed for every user on the system (you may need to use sudo).

Anyway, nowadays it is recommended to use a different virtualenv for each project instead of installing libraries system-wide. This will avoid future conflicts between libraries.

tiapreetha commented 5 years ago

Hi friends, I am working on the following project in github. https://github.com/ShreyAmbesh/Traffic-Rule-Violation-Detection-System

installed all the needed packages for the project but when i try to run the project in pycharm i am getting the following error...

File "VehicleMoniter.py", line 21, in import openalpr_api ModuleNotFoundError: No module named 'openalpr_api'

I also installed openalpr in my system

C:\Users\preetha\Desktop\python project\traffic project\Traffic-Rule-Violation-Detection-System-master>pip install openalpr Requirement already satisfied: openalpr in c:\users\preetha\appdata\local\programs\python\python37\lib\site-packages (1.0.12)

I don't know how to solve this error....

Anyone plz help me...

thanks in advance

Joy-Cse commented 4 years ago

Hi is it solved @ tiapreetha