You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The versions page does not load, and the following error appears in the console. 'purepower' is an editable module in my environment, so the script can't find it on pypi.org and fails to load the page.
pypi.org/pypi/purepower/json:1
Failed to load resource: the server responded with a status of 404 ()
It can be fixed by changing the updateRow function in versions.js as follows:
if (data === null || !(rowVersion.textContent in data.releases)) {
fetch(`https://pypi.org/pypi/${name}/json`).then(function (response) {
if (response.ok) {
response.json().then(function (pypi) {
const data = getData(pypi);
if (!(rowVersion.textContent in data.releases)) {
data.releases[rowVersion.textContent] = null;
}
localStorage.setItem(`pypi-${name}`, JSON.stringify(data));
render(rowVersion, data);
resolve();
});
}
else {
resolve();
}
});
} else {
render(rowVersion, data);
resolve();
}
});
}
The text was updated successfully, but these errors were encountered:
enginaygen
changed the title
Versions panel failure if is there any installed editable modules
Versions panel failure occurs if there are any installed editable modules.
Sep 19, 2024
The versions page does not load, and the following error appears in the console. 'purepower' is an editable module in my environment, so the script can't find it on pypi.org and fails to load the page.
pypi.org/pypi/purepower/json:1
Failed to load resource: the server responded with a status of 404 ()
It can be fixed by changing the updateRow function in versions.js as follows:
}
The text was updated successfully, but these errors were encountered: