fsspec / fsspec/filesystem_spec

ModuleNotFoundError: No module named 'aiohttp'

Open
#427 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
1.4k
Forks
490
Avg merge
2d 3h
Merged PRs (30d)
38

Description

This error just showed up in one of our CI environments in which fsspec is installed via pip. It's currently causing https://github.com/MITgcm/xmitgcm/pull/225 to fail.

The environment looks like this

name: test_env
channels:
  - conda-forge
dependencies:
  - python=3.6
  - dask
  - numpy
  - pytest
  - future
  - zarr
  - cftime
  - pip:
    - cachetools
    - git+https://github.com/pydata/xarray.git
    - fsspec
    - codecov
    - pytest-cov

The code calls

from fsspec.implementations.http import HTTPFileSystem

and we get

    from __future__ import print_function, division, absolute_import
    
>   import aiohttp
E   ModuleNotFoundError: No module named 'aiohttp'

https://travis-ci.org/github/MITgcm/xmitgcm/jobs/731092719

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with ci/environment-py36-xarraymaster.yml and reproduce the HTTPFileSystem import in the shown Python 3.6 environment. Check how the missing aiohttp dependency is handled, then verify that the import succeeds and the affected CI job no longer fails.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
devops
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.