Comments (3)
export LD_LIBRARY_PATH=/usr/local/lib
I faced the same issue, The problem got resolved after adding ld_library_path
in ~/.bashrc
cat ~/.bashrc | tail
export LD_LIBRARY_PATH=/usr/local/lib
$ python
Python 3.8.0 (default, Nov 24 2020, 23:01:17)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import postal
>>> postal.__file__
'/home/xyz/.asdf/installs/python/3.8.0/lib/python3.8/site-packages/postal/__init__.py'
>>> from postal.expand import expand_address
>>> from postal.parser import parse_address
>>> parse_address('The Book Club 100-106 Leonard St, Shoreditch, London, Greater London, EC2A 4RH, United Kingdom')
[('the book club', 'house'), ('100-106', 'house_number'), ('leonard st', 'road'), ('shoreditch', 'suburb'), ('london', 'city'), ('greater london', 'state_district'), ('ec2a 4rh', 'postcode'), ('united kingdom', 'country')]
>>>
from pypostal.
I had this issue on Ubuntu 19.10 as well -> #8
Ah, that's a linker issue, nothing wrong with install. Just make sure /usr/local/lib (or wherever you installed libpostal) is on LD_LIBRARY_PATH. Add
export LD_LIBRARY_PATH=/usr/local/lib
to your bashrc and open a new ssh terminal to make it persistent across sessions, probably a good idea anyway since many C libraries install there.
You need to do that!
Example:
export LD_LIBRARY_PATH=/usr/local/lib
python main.py
or add it to the .bashrc or .zshrc depends on which terminal interpreter you are using.
@albarrentine maybe it makes sense to add this to readme as troubleshooting point.
from pypostal.
It didn't resolve the issue for me.
from pypostal.
Related Issues (20)
- Cannot install pypostal on Google Colab HOT 2
- Dockerized CentOS Application - ImportError: libpostal.so.1: cannot open shared object file
- Install on AWS Lambda cannot import name '_parser' HOT 1
- "pip install postal" HOT 2
- Symbol not found: _libpostal_address_parser_response_destroy on macos M1 HOT 4
- Unable to run setup.py build_ext --inplace
- ImportError: DLL load failed while importing _parser: The specified module could not be found HOT 1
- libpostal/libpostal.h: No such file or directory HOT 1
- SystemError: initialization of _parser raised unreported exception HOT 2
- ERROR: hashes = libpostal_near_dupe_name_hashes(input, options, &num_hashes) HOT 2
- pip installation with Python 3.10 HOT 3
- Install pypostal on python3.6
- No such file or directory: 'README.rst' HOT 1
- Error building on Windows HOT 8
- ModuleNotFoundError: No module named 'postal' HOT 1
- It seems there is a memory leak in pyexpand.c
- Cannot install the package using pip HOT 3
- Feature Request Publish this library as a wheel
- Installing pypostal on OSX M1, Python 3.10 error HOT 1
- pypostal is not installing properly on M1 Mac with or w/o Rosetta for python 3.7 or 3.8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pypostal.