Comments (5)
Steps to reproduce the error:
conda install -c conda-forge pointpats
pip check
from pointpats.
Hi @giswqs! The odd thing is that, I think, the package does not require opencv. It's a "soft dependency," being that one function attempts to import it, but if the package is not provided, then the function simply errors. This pattern is used elsehwere in python (such as pandas.read_excel
) and is pretty common... I will need to read up on how pip check
works in order to resolve the issue.
from pointpats.
The opencv-contrib-python
package is listed on the requirements.txt, which is causing the issue. If you remove it from requirements.txt and check the dependency in a module and prompt users to install them if needed, that should solve the issue.
from pointpats.
It appears that the only function using opencv is minimum_rotated_rectangle()
. Since the function already provides error handling, I think opencv-contrib-python
can be safely removed from requirements.txt. Otherwise, it will cause issues for all pysal downstream packages on conda-forge with pip check
. Also, opencv-contrib-python
is quite a large package (150MB). including such a large package as a required dependency that is only used by one function is not ideal.
pointpats/pointpats/centrography.py
Lines 105 to 108 in 9a09bd7
from pointpats.
I believe that this was resolved by #82.
from pointpats.
Related Issues (20)
- operands could not be broadcast together with shapes (16,) (18,) HOT 7
- cannot import name 'G' from 'pointpats' HOT 7
- How to calculate areas of grid in Quadrat Statistics? HOT 1
- CI: TypeError: float() argument must be a string or a number, not 'PointPattern' HOT 3
- ripley.py vs distance_statistics.py duplication? HOT 1
- argument of type 'builtin_function_or_method' is not iterable HOT 1
- usage of `intensity` within `random.py` distributions? HOT 2
- `seed` keyword for random distributions? HOT 3
- release 2.4.0 HOT 2
- Building docs on 3.11 is broken HOT 3
- spacetime.py requires geopandas and shapely that are not among requirements HOT 1
- Cannot import name 'G' from 'pointpats' (/usr/local/lib/python3.7/dist-packages/pointpats/__init__.py) HOT 1
- Deprecated statistics included in the manual HOT 1
- skyum raises NameError when numba not installed HOT 1
- Tree types is missing now from Ripley.py HOT 1
- pointpats.random not in the API docs
- Infrastructure HOT 8
- Handle SciPy and libpysal deprecations
- Release v2.3.0
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 pointpats.