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.

Errors when trying to contribute new extras feature

See original GitHub issue

Description

Hi! I am trying to create new extras feature by following these steps. However I am encountering the following issues and I wonder if any them is going to stop me from correctly contributing a feature. In the docs it is specified that these commands need to run successfully. If they are going to be an issue, does anyone know how I could solve them? Thanks

Steps to Reproduce

  1. Created new python 3.8 (also tried 3.7) virtual environment in anaconda.
  2. Forked and cloned kedro repository
  3. Ran: “make install-test-requirements”
  4. Got first error message
  5. Manually installed geopandas through “conda install geopandas”. Based on this answer.
  6. Reran “make install-test-requirements”
  7. Got second error message
  8. Nonetheless ran: “make install-pre-commit”
  9. Got 3rd error message
  10. Nonetheless ran “make test-no-spark”
  11. Got the third error message
  12. Nonetheless ran “make build-docs”
  13. Got the fourth error message

Actual Result

After step 3 I got the following message

    ERROR: Command errored out with exit status 1:
     command: 'C:\Users\lucas\anaconda3\envs\kedro-37\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\lucas\\AppData\\Local\\Temp\\pip-install-ury96kq4\\fiona\\setup.py'"'"'; __file__='"'"'C:\\Users\\lucas\\AppData\\Local\\Temp\\pip-install-ury96kq4\\fiona\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\lucas\AppData\Local\Temp\pip-pip-egg-info-lmd0rg07'
         cwd: C:\Users\lucas\AppData\Local\Temp\pip-install-ury96kq4\fiona\
    Complete output (1 lines):
    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.
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

Which seems to have been solved with step 5. However, after running step 6, I get the following dependency issues:

ERROR: After October 2020 you may experience errors when installing or updating packages. This is because pip will change the way that it resolves dependency conflicts.

We recommend you use --use-feature=2020-resolver to test your packages with the new resolver before it becomes the default.

adlfs 0.2.5 requires fsspec<0.6.3,>=0.6.0, but you'll have fsspec 0.6.3 which is incompatible.
docker 4.3.1 requires pywin32==227; sys_platform == "win32", but you'll have pywin32 228 which is incompatible.
tensorflow 2.3.1 requires numpy<1.19.0,>=1.16.0, but you'll have numpy 1.19.2 which is incompatible.
trufflehog 2.1.11 requires GitPython==3.0.6, but you'll have gitpython 3.1.11 which is incompatible.

After step 8 I get:

An unexpected error has occurred: CalledProcessError: command: ('c:\\users\\lucas\\anaconda3\\envs\\kedro-37\\python.exe', '-mvirtualenv', 'C:\\home\\lucas\\.cache\\pre-commit\\repoo06rby0h\\py_env-python3.7', '-p', 'c:\\users\\lucas\\anaconda3\\envs\\kedro-37\\python.exe')
return code: 1
expected return code: 0
stdout:
    FileNotFoundError: [Errno 2] No such file or directory: 'c:\\users\\lucas\\anaconda3\\envs\\kedro-37\\Lib\\venv\\scripts\\nt\\python.exe'

stderr: (none)
Check the log at C:\home\lucas/.cache\pre-commit\pre-commit.log
make: *** [Makefile:51: install-pre-commit] Error 1

After step 10 I get:

ERROR tests/extras/datasets/tensorflow/test_tensorflow_model_dataset.py::TestTensorFlowModelDatasetVersioned::test_version_str_repr[None-None-None-None-None]
FAILED tests/tools/ipython/test_ipython_loader.py::TestIpythonStartupDir::test_locate_no_project - AssertionError: as...

After step 12 I get:

./docs/build-docs.sh
make: ./docs/build-docs.sh: Command not found
make: *** [Makefile:39: build-docs] Error 127

Your Environment

Include as many relevant details about the environment in which you experienced the bug:

  • Conda version used: conda 4.9.0
  • Python version used: Python 3.7.9 but also 3.8
  • Operating system and version: Windows 10 Pro

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
andrii-ivaniukcommented, Dec 21, 2020

You can use Circle CI configuration as a guidance for how to set up Windows environment.

0reactions
andrii-ivaniukcommented, Jan 11, 2021

@lucasjamar Do you have any problems with the Windows env setup? If no, could you please close the issue?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Add Extra Information to Errors in Go - DigitalOcean
In Go 1.13, new features were added to make it easier to add extra information to errors: fmt.Errorf, errors.Is , and errors.
Read more >
Fix error messages with Uploaded ads - Google Ads Help
When uploading creatives in Google Ads, you may receive an error message. In most situations, the problem can be fixed by altering your...
Read more >
5 Surprising and Sneaky Ways Errors Impact Your Business
If these errors are fixed when the feature is first created, there will be fewer problems to deal with down the road for...
Read more >
Understanding Common Errors In Java - Mimir Classroom
Common errors that students encounter when programming in Java and tips on how to resolve them.
Read more >
Preventing User Errors: Avoiding Unconscious Slips
One solution is to let users type in a way that's natural to them, rather than forcing them to use the format that...
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