Skip to content

Add compatibility for read-only systems#2676

Merged
thewhaleking merged 4 commits intoopentensor:stagingfrom
Arthurdw:patch/v9.0.0_readonly
Feb 18, 2025
Merged

Add compatibility for read-only systems#2676
thewhaleking merged 4 commits intoopentensor:stagingfrom
Arthurdw:patch/v9.0.0_readonly

Conversation

@Arthurdw
Copy link
Contributor

Bug

Read-only systems are not able to utilise the bittensor package. Even if they dont need the functionalities which require io.

Why is this a bug? This wasn't an issue in previous versions due to code differences.

Description of the Change

This adds a env variable READ_ONLY, which can be set to 1 and as such fixes the above mentioned issues.

Alternate Designs

Use cli params.

Possible Drawbacks

None?

Verification Process

Not applicable.

Release Notes

  • Allow read-only systems to utilize the bittensor package by setting READ_ONLY=1 in the environment.

@thewhaleking
Copy link
Contributor

thewhaleking commented Feb 18, 2025

Can you base this on staging? Looks good to me.

Nevermind, I can.

@thewhaleking thewhaleking changed the base branch from master to staging February 18, 2025 15:01
@thewhaleking thewhaleking requested a review from a team February 18, 2025 15:16
@thewhaleking thewhaleking merged commit aacf074 into opentensor:staging Feb 18, 2025
30 checks passed
@ibraheem-abe ibraheem-abe mentioned this pull request Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants