Comments (17)
Wow, Will fix this by 25/11/2022
from cmpdl.
My dude, the error is not on my end it is on cursepy's end.
from cmpdl.
I've raised an issue at OwenCochell/cursepy#13
from cmpdl.
Btw, here is a simpler reproducible code example:
from cursepy import CurseClient
from v import api_key
c = CurseClient(api_key)
addon = c.addon(400012) # Ex Nihilo: Sequentia
for file in addon.files():
print(file.download_url)
# The output will only be None
from cmpdl.
Okay, there was another bug with a specific mod where the error actually showed their files, so I'll report that to them too.
from cmpdl.
@TwigGlenn4 use v2.5.0 as it contains optimizations and a temp fix for this issue
Also read the release notes 😉
from cmpdl.
This works great! My only suggestion would be to print a list of errored mods at the end so users know what they need to manually download without scrolling through all the output in a large modpack. Hostile Neural Networks (projectID 552574, fileID 4019567) still breaks somehow with the logo and needs to be manually removed, but that's a problem with cursepy and i've submitted an issue to them.
from cmpdl.
Ok, will work on it, please keep this issue open
from cmpdl.
This works great! My only suggestion would be to print a list of errored mods at the end so users know what they need to manually download without scrolling through all the output in a large modpack.
Hostile Neural Networks (projectID 552574, fileID 4019567) still breaks somehow with the logo and needs to be manually removed, but that's a problem with cursepy and i've submitted an issue to them.
Could you attach the logs please, I will try to look into it
from cmpdl.
Nevermind I found it OwenCochell/cursepy#14
Will submit a patch by 25/11/2022
from cmpdl.
@TwigGlenn4 as a temporary workaround while we wait for a patch, you can Download the Source.7z and change backend.py to use file.guess_download() its around line 198 and should look like this after the change.
if file.download_url is None:
file.download_url = file.guess_download()
#self.log(f"Mod is [b red]not downloadable[/] [b]{file.id}[/] [b]{mod.name}[/] due to API error")
#self.log("See https://github.com/Advik-B/CMPDL/issues/25 for more info")
continue
Also make sure in the requirements.txt the cursepy version is set to 2.2.0
i've tested it with ATM8 and so far it works
from cmpdl.
@TwigGlenn4 as a temporary workaround while we wait for a patch, you can Download the Source.7z and change backend.py to use file.guess_download() its around line 198 and should look like this after the change.
if file.download_url is None: file.download_url = file.guess_download() #self.log(f"Mod is [b red]not downloadable[/] [b]{file.id}[/] [b]{mod.name}[/] due to API error") #self.log("See https://github.com/Advik-B/CMPDL/issues/25 for more info") continueAlso make sure in the requirements.txt the cursepy version is set to 2.2.0 i've tested it with ATM8 and so far it works
@ArcadeArchie, you could also use the ZipApp.zip
from cmpdl.
Will do, when I get the chance.
from cmpdl.
@Advik-B i've tested it with the ZipApp.zip and ATM7 to the Sky, and it does work somewhat
- you need to delete the cursepy folder that ZipApp.zip ships with and pip install cursepy==2.2.0
- and with ATM7 to the Sky not all mods are correctly downloaded even with
guess_download()
see screenshot
from cmpdl.
Oh, will patch that later this month. (Because of my exams on monday)
Anyways, here is the sunday patch I promised 👉🏻 v2.5.5
from cmpdl.
@ArcadeArchie could you please create a new issue?
from cmpdl.
Closing the issue in favor of the patch
Please create a new issue so that it will be easy for me to track down
from cmpdl.
Related Issues (10)
- The download is in html
- [Linux] cli.py results to service unavailable HOT 11
- [BUG] CurseAPI has been revamp HOT 5
- More Bugs - Need fixes HOT 4
- Cursepy cannot download the correct version of the mod if we use guess_download() HOT 31
- Make a UI for CMPDL HOT 1
- Add CLI support HOT 8
- Revamp the UI HOT 1
- Combine `backend.py` and `cli.py` into one file for easy maintanence HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cmpdl.