Comments (10)
Hey,
what addon do you try to add?
from lcurse.
please try again with the current commits pulled.
from lcurse.
btw. if you find anything not translated correctly, I would be glad to get a proper translation for en_US LANG.
from lcurse.
Thanks for the reply. As of now I get this:
WARNING: gui translation file could not be found: /home/greg/Downloads/lcurse-master/translations/en_US.qm
Traceback (most recent call last):
File "/home/greg/Downloads/lcurse-master/modules/waitdlg.py", line 331, in run
self.retrieveListOfAddons()
File "/home/greg/Downloads/lcurse-master/modules/waitdlg.py", line 321, in retrieveListOfAddons
lastpage = self.retrievePartialListOfAddons(page)
File "/home/greg/Downloads/lcurse-master/modules/waitdlg.py", line 304, in retrievePartialListOfAddons
lastpage = self.parsePager(pager[0].string)
IndexError: list index out of range
I am by no means a py expert. What I've tried thus far is changing waitdlg.py line 300 to:
response = self.opener.open("http://www.curse.com/addons/wow?page=" + str(page))
Thought the curse site may have changed their URL scheme, but I still get the same errors.
It looks like (at least to me) that something is not initialized right in line 304 of waitdlg.py but I don't have the knowledge to fix it.
Thanks again.
from lcurse.
You didn't pull the latest changes, isn't it?
from lcurse.
Sorry for the late reply, that was with the changes.
from lcurse.
It doesn't work for me either, using the latest GIT. This is what I get under Ubuntu 16.04:
QXcbWindow: Unhandled client message: "_GTK_LOAD_ICONTHEMES"
/usr/lib/python3/dist-packages/bs4/__init__.py:166: UserWarning: No parser was explicitly specified, so I'm using the best available HTML parser for this system ("lxml"). This usually isn't a problem, but if you run this code on another system, or in a different virtual environment, it may use a different parser and behave differently.
To get rid of this warning, change this:
BeautifulSoup([your markup])
to this:
BeautifulSoup([your markup], "lxml")
markup_type=markup_type))
Traceback (most recent call last):
File "/opt/lcurse/modules/waitdlg.py", line 331, in run
self.retrieveListOfAddons()
File "/opt/lcurse/modules/waitdlg.py", line 321, in retrieveListOfAddons
lastpage = self.retrievePartialListOfAddons(page)
File "/opt/lcurse/modules/waitdlg.py", line 304, in retrievePartialListOfAddons
lastpage = self.parsePager(pager[0].string)
IndexError: list index out of range
from lcurse.
sorry my bad. Did forget one file to add to the commit. Please pull and try again. Thanks!
from lcurse.
Looks like things are working now. I did add a small sleep delay into your function in waitdlg.py
def retrieveListOfAddons(self):
page = 1
lastpage = 1
self.sem.acquire()
lastpage = self.retrievePartialListOfAddons(page)
page += 1
self.retrievedLastpage.emit(lastpage)
while page <= lastpage:
sleep(0.5)
self.sem.acquire()
start_new_thread(self.retrievePartialListOfAddons, (page,))
page += 1
The workers were requesting so fast it was causing urllib to timeout from too many connections left open. I believe this is an issue with my ISP rather than with your code.
Thank you for getting lcurse working again!
from lcurse.
Now it works here too. Thanks!
from lcurse.
Related Issues (20)
- Curse URL has changed HOT 6
- Issue with PyQt5 HOT 4
- Right clicking window causes crash.
- The selected folder wasn't an installation directory of wow. Please select the wow folder HOT 2
- OSX 10.13 - lxml from requirements not building
- Python 3.7 HOT 3
- Pull in the 5 divergent commits from Alars fork HOT 1
- Error update catalog HOT 2
- Interface folder is now in _retail_/
- Version Française HOT 1
- Curse changed their directory structure - again HOT 12
- Mise à jour Version Française
- [Feature request] Support for WoW:classic HOT 2
- Randomly installs classic versions HOT 5
- Download link has been modified HOT 7
- Improve README HOT 4
- Warning
- Any way to get debug output? HOT 4
- cfscrape cannot solve captchas - SSLv3 handshake failure HOT 2
- Unable to fetch catalog 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 lcurse.