Comments (39)
You forgot to put code markdown so is it this? "steam_path":"C:\/Program Files (x86)\/Steam"
from lauhdutin.
Could you modify Python="pythonw"
to Python="python"
in the Main.ini file and try loading that config again? The line in question is under the Variables section. The command prompt will then be visible when the Python script is executed and hopefully help to narrow down the source of the problem. The scripts should print out some stuff including a stack traceback, if an exception was caught.
from lauhdutin.
Kapiainen has to answer that one because I have no clue about the new version
from lauhdutin.
@Xarishark Version 2.1.0 adds support for a horizontal layout (a toggle can be found in the settings menu).
from lauhdutin.
Go into Lauhdutin\@Resources\
and delete settings.json file. This will allow you to fill out the settings again.
If you are still having issues please provide Rainmeter and Python versions
from lauhdutin.
still having the error i have the latest python and rainmeter.
from lauhdutin.
from lauhdutin.
versions are on the right.
from lauhdutin.
From looking at the code I believe that error comes from an incorrect steam path. I'm not sure if the GUI is filling out or reading the .json correctly. What does the "steam_path":""
say in the settings.json under Lauhdutin\@Resources\
?
Mine doesn't seem to fill out any settings in the settings.json nor does it the browse button work. I've manually edit the Frontend Settings.lua to auto fill this information for me but it still refuses to get pass Processing.
Edit: Fixed my browsing and json writing issue, user error (duh!) I had to restart after changing python path for 3.x.
Any input on this Kapiainen?
from lauhdutin.
"steam_path":"C:/Program Files (x86)/Steam"
from lauhdutin.
oh shit
yes thats how it is
from lauhdutin.
It's throwing an ImportError in BannerDownloader.py
No module named request
from lauhdutin.
That is odd. urllib.request is part of the standard library and has been for a long time (at least since 3.3.0 according to available documentation). Could you verify by opening up the Python interpreter and trying to import that module (import urllib.request
)?
from lauhdutin.
Yeah it was added awhile ago
It imports without throwing an error in the interpreter
from lauhdutin.
I think it wants to run Python 2.7 since I have both installed
I changed import from urllib.request
to urllib
and it runs just fine. You might need to throw in a check.
Edit: Yep I was correct, I throw in a print (sys.version)
and it's running 2.7 which is weird because the python path is set to 3.6.
from lauhdutin.
So what do i need to do?
from lauhdutin.
@Xarishark Go into Lauhdutin\@Resources\Backend\
and open BannerDownloader.py
Change import os, urllib.request, time
to import os, urllib, time
from lauhdutin.
stuck at processing now
from lauhdutin.
no network activity indicating that it downloads anything
from lauhdutin.
@Xarishark Please modify Python="pythonw"
to Python="python"
in the Main.ini
from lauhdutin.
done and still stuck at processing
from lauhdutin.
Could you post a screenshot of the Python script's output to the console?
from lauhdutin.
@Xarishark a terminal window should have popped up
What did it say? and you are refreshing the skin right?
from lauhdutin.
Yes im refreshing there is no terminal open tho. It appears and disappears instantly . The terminal i mean
from lauhdutin.
@Xarishark Delete the Lauhdutin folder and re-add a fresh one then modify Python="pythonw"
to Python="python"
in the Main.ini and run the setup.
Let's start with a base case again
See if the terminal stays open
from lauhdutin.
from lauhdutin.
Could you open \Lauhdutin\@Resources\Backend\Steam.py and replace line 33
with open(a_path) as f:
with this
with open(a_path, encoding="utf-8") as f:
from lauhdutin.
from lauhdutin.
how do i hide the terminal now?
from lauhdutin.
also anyway to make the orientation horizontal pls?
from lauhdutin.
@Xarishark Change back to Python="pythonw
in Main.ini and this should make the terminal disappear.
from lauhdutin.
what about the horizontality ?
from lauhdutin.
ty!
from lauhdutin.
Horizontal orientation is not supported at the moment, but it is on the list of stuff to add in the next version.
from lauhdutin.
You might want to write an if statement for BannerDownloader.py in case someone has both version of python installed. For some reason BannerDownloader.py wanted to run 2.7 even tho the path was set to 3.6.
import sys
if sys.version_info[0] == 3:
import os, urllib.request, time
else:
import os, urllib, time
Or at least a Frontend warning if python 2.7 is running
Might save you a future headache, food for thought.
from lauhdutin.
@Kavex I'd rather avoid the hassle (renamed/restructured modules, handling of Unicode, etc.) of supporting both Python 2.x and 3.x. I support both major versions in a few other projects because I have to, but I'd rather not have that headache in this project. I'll be adding some checks, extra print statements, pass more info about exceptions straight to the skin, etc. for the next version. Among those things will straight up be a warning that, as you also suggested, the system is trying to run the Python scripts with an unsupported version.
from lauhdutin.
I totally understand and the more information on the exceptions will be nice :) Good work so far
I'll have to fix the problem with it running 2.7 which isn't hard but not everyone is so computer literate as us even tho Python happens to be on the low end of the totem pole for me as for languages I know.
Cheers :3
from lauhdutin.
@Kavex Thanks. And thank you for the issue template and helping out with this issue report. I'm adding a Python path setting to the settings GUI to make it easier to adjust and also adding it to the settings.json file so that the value can be retained when updating from one version of Lauhdutin 2.x.x to the next.
from lauhdutin.
@Kapiainen You're very welcome, I find the templates very useful for my stuff. You should edit it more so people are required to present more information then just "It's broken!!!" when creating an issue ticket. XD
Also I'd suggest using the Wiki too :)
from lauhdutin.
Related Issues (20)
- Show last added games? HOT 2
- New Install. Settings dialog is blank
- All white HOT 3
- Font and color changes HOT 3
- Changing default sort option HOT 1
- Epic games store support?
- Loading time HOT 5
- Last GOG Galaxy update breaks detection
- Unable to launch added game HOT 7
- Keep losing hours played
- GOG Galaxy 2.0 support?
- To that which came before HOT 1
- How to enable the skin slide in/out animation?
- Lauhdutin keeps forgetting games + last banner is cut off HOT 12
- Is this project officially abandoned? HOT 6
- init.lua errors for latest stable and beta 4 releases HOT 75
- Steam banners displaying twice HOT 3
- Steam integration broken after latest Steam client update HOT 12
- init.lua error for GoG Galaxy ProgramData path HOT 21
- Cant use with GOG Galaxy 'Program data directory is not valid' HOT 1
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 lauhdutin.