question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No module named 'libpysal.api' found when I tried to import

See original GitHub issue

Hello,

When I tried to import the function read_ltdb using the following command:

from osnap.data import read_ltdb

I got this error:

image

In this case I need to manually change this line in ‘heuristics.py’, but perhaps it would be nice if this intermediate step was not necessary.

Kind regards, Renan

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
MyrnaSastrecommented, May 29, 2019

It works now. I did what you recommended, uninstalled region and did pip install, but I also installed osnap and geosnap in my current environment. thanks!

1reaction
knaaptimecommented, Oct 18, 2018

osnap depends on region, but the currently released region is broken because it uses the old libpysal import

Read more comments on GitHub >

github_iconTop Results From Across the Web

No module named 'libpysal.api' found when I tried to import #8
Hello, When I tried to import the function read_ltdb using the following command: from osnap.data import read_ltdb I got this error: In this ......
Read more >
pysal - Error while import plot_spatial_weights in Python
I am trying to import plot_spatial_weights from pysal.viz.splot.libpysal ... ModuleNotFoundError: No module named 'pysal.viz'.
Read more >
JupyterLab importError for libpysal and momepy
A simple import libpysal and import momepy causes the following error: ... <module> 24 25 try: ---> 26 import pygeos 27 28 HAS_PYGEOS...
Read more >
Installation — libpysal v4.7.0 Manual
Installation¶. libpysal supports python >= 3.7 only. Please make sure that you are operating in a python 3 environment.
Read more >
libpysal - PyPI
libpysal modules. libpysal.cg Computational geometry. libpysal.io Input and output. libpysal.weights Spatial weights. libpysal.examples Built-in example ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found