Comments (11)
this issue seems to be with cogeo-mosaic, can you confirm by just doing pip install morecantile
?
cogeo-mosaic and rio-tiler will be updated later this week with morecantile >=3.1
but right now the installation of cogeo-mosaic should fallback to morecantile==3.0.5
(because of rio-tiler https://github.com/cogeotiff/rio-tiler/blob/e3e147d20dc89c4d6d2b6445a6fd56f36f469fbc/setup.py#L14)
from morecantile.
this is likely an issue with the python/pipsetuptool version
make sure you have setuptools>=46.4.0
.
from morecantile.
confirmed in cogeotiff/rio-cogeo#228 (comment), this is happening when setuptool is out of date
cc @hackartisan
from morecantile.
Hi thanks for looking. I get this error when I install morecantile directly.
$ sudo pip3 install morecantile
Collecting morecantile
Using cached morecantile-3.1.0.tar.gz (25 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [36 lines of output]
Traceback (most recent call last):
File "<string>", line 36, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/tmp/pip-install-3_ymq0o7/morecantile_54c55e394b5b46629d46870ffc481e94/setup.py", line 45, in <module>
"morecantile=morecantile.scripts.cli:cli",
File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 145, in setup
return distutils.core.setup(**attrs)
File "/usr/lib/python3.7/distutils/core.py", line 121, in setup
dist.parse_config_files()
File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 705, in parse_config_files
ignore_option_errors=ignore_option_errors)
File "/usr/lib/python3/dist-packages/setuptools/config.py", line 120, in parse_configuration
meta.parse()
File "/usr/lib/python3/dist-packages/setuptools/config.py", line 425, in parse
section_parser_method(section_options)
File "/usr/lib/python3/dist-packages/setuptools/config.py", line 398, in parse_section
self[name] = value
File "/usr/lib/python3/dist-packages/setuptools/config.py", line 183, in __setitem__
value = parser(value)
File "/usr/lib/python3/dist-packages/setuptools/config.py", line 513, in _parse_version
version = self._parse_attr(value, self.package_dir)
File "/usr/lib/python3/dist-packages/setuptools/config.py", line 348, in _parse_attr
module = import_module(module_name)
File "/usr/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/tmp/pip-install-3_ymq0o7/morecantile_54c55e394b5b46629d46870ffc481e94/morecantile/__init__.py", line 14, in <module>
from .defaults import tms # noqa
File "/tmp/pip-install-3_ymq0o7/morecantile_54c55e394b5b46629d46870ffc481e94/morecantile/defaults.py", line 8, in <module>
import attr
ModuleNotFoundError: No module named 'attr'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
I get the same error when I use --no-cache-dir
as well.
from morecantile.
installing morecantile 3.0.5 works fine, so it's something to do with this release.
from morecantile.
@hackartisan can you check if your pip
version is up to date?
also what's the python version and the os?
from morecantile.
Hi @vincentsarago, the pip / python version is:
$ pip3 --version
pip 22.0.3 from /usr/local/lib/python3.7/dist-packages/pip (python 3.7)
The OS is Debian 10. It's a circleci docker image, configured here https://github.com/pulibrary/figgy/blob/412d78be4c82a9cb2e1de2cc0584117e71652071/.circleci/config.yml#L7
Thank you!
from morecantile.
The setup script runs the pip update. When I do this manually on the box it says it's up to date:
$ sudo pip3 install pip -U
Requirement already satisfied: pip in /usr/local/lib/python3.7/dist-packages (22.0.3)
from morecantile.
👍🏻 thank you very much @vincentsarago!
from morecantile.
i got this problem when i tried to install autopy liberary....please...can anyone help me?
**Defaulting to user installation because normal site-packages is not writeable
Collecting autopy
Using cached autopy-4.0.0.tar.gz (20 kB)
Preparing metadata (setup.py) ... done
Using legacy 'setup.py install' for autopy, since package 'wheel' is not installed.
Installing collected packages: autopy
Running setup.py install for autopy ... error
error: subprocess-exited-with-error
× Running setup.py install for autopy did not run successfully.
│ exit code: 1
╰─> [22 lines of output]
running install
C:\Users\bahman\AppData\Roaming\Python\Python310\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated
. Use build and pip and other standards-based tools.
warnings.warn(
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-310
creating build\lib.win-amd64-cpython-310\autopy
copying autopy_init_.py -> build\lib.win-amd64-cpython-310\autopy
running build_ext
running build_rust
error: can't find Rust compiler
If you are using an outdated pip version, it is possible a prebuilt wheel is available for this package but pip is not able to install from it. Installing fr
om the wheel would avoid the need for a Rust compiler.
To update pip, run:
pip install --upgrade pip
and then retry package installation.
If you did intend to build this package from source, try installing a Rust compiler from your system package manager and ensure it is on the PATH during inst
allation. Alternatively, rustup (available at https://rustup.rs) is the recommended way to download and update the Rust compiler toolchain.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> autopy
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
C:\Program Files\Python310>**
from morecantile.
👋 @dahmanAl9r This has nothing to do with the morecantile package. Please see https://github.com/autopilot-rs/autopy/#installation
from morecantile.
Related Issues (20)
- incorrect coordinate order when using pyproj Transformer HOT 1
- NZTM2000 TMS fails test if BBox is removed HOT 9
- rename `_geographic_crs` to `geographic_crs` HOT 1
- Change how `TileMatrixSet.bbox` is calculated
- add `cache` for `bbox`
- enable `Variable width tile matrices` HOT 15
- backport of features to 3.y.z versions HOT 2
- do not use `id` for cache key (because it's optional)
- boundingBox in tms 2.0 still uses 1.0 style HOT 1
- pydantic 2.0 breaks morecantile
- [VariableWidth] Do not return `alias` tiles
- Regression in xy_bbox when tile matrices bounds differ from the boundingBox? HOT 2
- wrong TMS id for WGS1984Quad tms HOT 1
- Feature Request: custom decimation base on custom TileMatrixSets HOT 1
- Feature Request: Support for the MGRS tile grid HOT 1
- Align WebMercatorQuad TMS with mercantile and GDAL
- Units other than meters and degrees HOT 3
- add python 3.10 in CI
- OGC TMS Spec 2.0 HOT 5
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 morecantile.