Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conda install: missing filelock when running Sphinx doctests #84

Copy link
Copy link
@mrmundt

Description

@mrmundt
Issue body actions

Description

While attempting to use enum_tools.autoenum via conda installation, doctests fail due to a missing import.

Error message:

Extension error:  
    Could not import extension enum_tools.autoenum (exception: 
    NOTE: In order to use the FileCache you must have 
    filelock installed. You can install it via pip:  
      pip install cachecontrol[filecache]  
    )

Steps to Reproduce

We encountered this issue when adding enum_tools.autoenum to our documentation on Pyomo. The steps below assume you have cloned Pyomo and installed its deps via conda. You can see a real-life log of all steps in our GitHub actions workflows.

conda install enum_tools
make -C doc/OnlineDocs doctest -d

Actual result:

Error message:

Extension error:  
    Could not import extension enum_tools.autoenum (exception: 
    NOTE: In order to use the FileCache you must have 
    filelock installed. You can install it via pip:  
      pip install cachecontrol[filecache]  
    )

Expected result:

Doctests can run without having to also manually installing filelock.

Reproduces how often:

Always unless you manually run conda install filelock in addition to conda install enum_tools

Version

  • Operating System: Windows
  • Python: (All versions tested - 3.8 through 3.12)
  • enum_tools: 0.11.0

Installation source

Anaconda/conda

Other Additional Information:

See this commit for code that will produce failure message: https://github.com/mrmundt/pyomo/tree/23bdbf7b76f674b5d437a3136387e28a84844086
See this commit for workaround implementing filelock: mrmundt/pyomo@d405bcb

Reactions are currently unavailable

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingSomething isn't workingstale

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.