Skip to content

[BUG] Cannot install Latest version of CityLearn #138

@sasidhar96

Description

@sasidhar96

Issue Description

Installation of the latest version of CityLearn (2.3.0) fails on macOS with Apple Silicon due to dependency conflicts and compilation errors, particularly with openstudio and scikit-learn dependencies.

Expected Behavior

The installation of CityLearn 2.3.0 should complete successfully with all dependencies properly installed, allowing the package to be imported and used in Python scripts.

Actual Behavior

  1. Cannot find a compatible version of openstudio<=3.3.0 for the current system architecture
  2. Compilation errors with scikit-learn 1.0.2 related to OpenMP support
  3. Circular dependency issues between doe-xstock and openstudio

Steps to Reproduce

Error Messages
ERROR: Could not find a version that satisfies the requirement openstudio<=3.3.0 (from versions: 3.5.0, 3.5.1, 3.6.0, 3.6.1, 3.7.0rc1, 3.7.0, 3.8.0, 3.9.0)
ERROR: No matching distribution found for openstudio<=3.3.0

Environment

  • CityLearn version: Attempted to install 2.3.0 (latest)
  • Dataset name/link: N/A (installation issue)
  • Operating System: macOS (Apple Silicon/ARM64)
  • Python version: 3.11

Possible Solution

If you have any ideas for how to fix the issue, please describe them here.

Additional Notes

  1. The issue appears to be specific to Apple Silicon Macs, which require ARM64-compatible binaries
  2. CityLearn 2.1.1 can be successfully installed using the --no-deps approach and works for basic functionality
  3. The OpenMP compilation error is a common issue on macOS systems and not specific to CityLearn
  4. Future versions of CityLearn should consider providing more flexible dependency specifications to accommodate different system architectures
  5. I am not that good when it comes to these installation issues, so would really help the guidance and working fix

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions