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.

Developer installation error

See original GitHub issue

Hello,

I am trying to install landlab from source code using Anaconda on Windows. I followed the developer installation instructions.

When I run the command of conda env create --file=environment-dev.yml , the process of creating new environment seems never end. I checked it and the landlab_dev virtual env do exist. So I tried mannually install the dependencies from the .txt file, however the error happens when I tried pip install -r requirements.txt

Collecting rasterio
  Using cached rasterio-1.2.10.tar.gz (2.3 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  ERROR: Command errored out with exit status 1:
   command: 'd:\anaconda3\envs\landlab_dev\python.exe' 'd:\anaconda3\envs\landlab_dev\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py' get_requires_for_build_wheel 'C:\Users\Bowen\AppData\Local\Temp\tmpt1u2vxwy'
       cwd: C:\Users\Bowen\AppData\Local\Temp\pip-install-9u58fg4v\rasterio_b8b6a822c73747c8a01a1422286af828
  Complete output (2 lines):
  INFO:root:Building on Windows requires extra options to setup.py to locate needed GDAL files. More information is available in the README.
  ERROR: A GDAL API version must be specified. Provide a path to gdal-config using a GDAL_CONFIG environment variable or use a GDAL_VERSION environment variable.
  ----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/44/5e/9f19e1e6fe980b59d8da8809f2e8f81eb7f0322c71914f077edcbcd9a110/rasterio-1.2.10.tar.gz#sha256=6062456047ba6494fe18bd0da98a383b6fad5306b16cd52a22e76c59172a2b5f (from https://pypi.org/simple/rasterio/) (requires-python:>=3.6). Command errored out with exit status 1: 'd:\anaconda3\envs\landlab_dev\python.exe' 'd:\anaconda3\envs\landlab_dev\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py' get_requires_for_build_wheel 'C:\Users\Bowen\AppData\Local\Temp\tmpt1u2vxwy' Check the logs for full command output.

I tried different python version (3.7, 3.8 and 3.9) but it did’t work.

And when I run the command pip install -r requirements-dev.txt , the error is

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
markdown 3.3.6 requires importlib-metadata>=4.4; python_version < "3.10", but you have importlib-metadata 4.2.0 which is incompatible.

I upgraded importlib-metadata to 4.10.1, then I got another error

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
flake8 4.0.1 requires importlib-metadata<4.3; python_version < "3.8", but you have importlib-metadata 4.10.1 which is incompatible.

It seems the flake8 and markdown has different requirements on importlib-metadata

Any idea or advice on solving these two problems? Thanks in advance!

Bowen

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
pullulationcommented, Jan 19, 2022

@mcflugen Thanks for your prompt reply. It worked perfectly for me!

0reactions
mcflugencommented, Jan 19, 2022

Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

SQL server 2019 developer edition installation error
hello i tried to install SQL server 2019 developer and SQL server 2017 developer editions and SSMS and i'm always getting this error....
Read more >
How to Fix Developer Mode package failed to install. Error ...
Method 1: Manually install Developer Mode​​ The first step is to open the Settings app, by pressing the Windows key on your keyboard...
Read more >
Unable to install xcode command line developer tools
This prompts me to install the command line developer tools. When I click install I get the following error. Can't install the software...
Read more >
SQL Server 2019 Developer Edition Installation Error
I am unable to install SQL Server 2019 Developer Edition on my laptop. It is currently on Windows 10 Home (Ver. 20H2 19042.928)....
Read more >
Apk installation error, Turn on Chrome OS Developer Mode to ...
Hello, when trying to install any downloadef apk to my "UMIDIGI BISON Pro" (smartphone), i get the below error message: Turn on Chrome...
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