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

error: package directory 'openalpr' does not exist #806

Closed
warpdriv opened this issue May 2, 2019 · 3 comments
Closed

error: package directory 'openalpr' does not exist #806

warpdriv opened this issue May 2, 2019 · 3 comments

Comments

@warpdriv
Copy link

warpdriv commented May 2, 2019

Hi,

After downloading 2.3.0 of github and running python\setup.py install, I get the following error. I searched/read many articles trying to this working and would appreciate some help.

(licenseplate) C:\Users\somone\Downloads\openalpr-2.3.0-win-64bit\openalpr_64\python>python setup.py install
running install
running build
running build_py
error: package directory 'openalpr' does not exist

I'm on windows 10, anaconda, python 3.6.2 64-bit

Thank you.

@AT0myks
Copy link

AT0myks commented May 22, 2019

I'm not familiar with anaconda but I got it working with just Python on Windows:

  • add the openalpr_64 directory to the path (I put it in the user variables Path, from your example you should add C:\Users\somone\Downloads\openalpr-2.3.0-win-64bit\openalpr_64)
  • restart the computer
  • download the source code as a zip from https://github.com/openalpr/openalpr/releases
  • unzip it somewhere
  • run the same python setup.py install command but this time from openalpr-2.3.0\src\bindings\python it should work this time
    Now you should be able to use openalpr with python.

@warpdriv
Copy link
Author

Thank you

@juskuz
Copy link

juskuz commented Nov 6, 2019

It allows to import openalpr in Python but for me it generates the next error:

OSError: Unable to locate the OpenALPR library. Please make sure that OpenALPR is properly installed on your system and that the libraries are in the appropriate paths. Exception ignored in: <bound method Alpr.__del__ of <openalpr.openalpr.Alpr object at 0x000001571BE136D8>>

and:
AttributeError: 'Alpr' object has no attribute 'loaded'

cclauss added a commit to cclauss/openalpr that referenced this issue Nov 25, 2021
There are currently [46 open issues related to `loaded`](https://github.com/openalpr/openalpr/search?p=2&q=loaded&type=issues).  Many of these [`AttributeError` issues](https://github.com/openalpr/openalpr/search?q=AttributeError&type=issues) are caused because `self.loaded` is only defined at the end of this method on (line 117).  If an exception is raised (like line 62, etc.) then `self.loaded` is _never_ defined so subsequent code fails when trying to determine if `Alpr` has successfully loaded.

Closes openalpr#311
Closes openalpr#414
Closes openalpr#426
Closes openalpr#461 
Closes openalpr#508
Closes openalpr#533
Closes openalpr#660
Closes openalpr#732
Closes openalpr#738
Closes openalpr#764
Closes openalpr#806
Closes openalpr#837 
Closes openalpr#913 
Closes openalpr#916 
Related to openalpr#555
Related to Homebrew/homebrew-core#89948
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

Successfully merging a pull request may close this issue.

3 participants