Stellaris

Stellaris

Stellaris Dashboard
pp-man 27 Oct, 2018 @ 12:24pm
Error on install
Re installed the game, re installed python and i still get this error.

Command "C:\Users\jeff\Desktop\stellaris-dashboard-master\env\Scripts\python.exe -c "import setuptools, tokenize;__file__='C:\\Users\\jeff\\Desktop\\stellaris-dashboard-master\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" develop --no-deps" failed with error code 1 in C:\Users\jeff\Desktop\stellaris-dashboard-master\
< >
Showing 1-11 of 11 comments
blubblubblobb  [developer] 28 Oct, 2018 @ 5:03am 
Hi pp-man,

can you tell me exactly which Python version you are using? The dashboard requires Python version 3.6 or 3.7.
pp-man 28 Oct, 2018 @ 9:15am 
Python 3.7.1 (v3.7.1:260ec2c36a, Oct 20 2018, 14:05:16)
awesomeadam217 3 Nov, 2018 @ 10:51pm 
Same error here. 3.6.5
awesomeadam217 3 Nov, 2018 @ 11:07pm 
Specifically, it seems like in the setup, there's an "inconsitent path". They're the same path, except one has \\ behind it. Changing the install.bat to remove the "-e" to install the project using pip in non-editable mode worked.
blubblubblobb  [developer] 6 Nov, 2018 @ 2:31am 
Hi awesomeadam217, first of all thanks for proposing a solution! From some google searches, I think you are right. I unfortunately couldn't reproduce the problem on my computer.

One issue that you might experience with this method is the "Cython extensions not found" error message (or something similar). This means that save files are read much more slowly (~2-3 times). You can fix this either by compiling the cython binaries yourself (See the section on Cython in the Readme file), or by copying the already compiled files in the src/stellarisdashboard/cython_ext directory to the copy of the stellarisdashboard that is created inside of the virtual environment.

For the next release, I might change the project structure to avoid this issue.
Last edited by blubblubblobb; 6 Nov, 2018 @ 2:43am
awesomeadam217 6 Nov, 2018 @ 4:19pm 
Yeah it seems like the issue may have been in some weird caching stuff. if pp-man can confirm, I had python installed with a ton of random packages; one of them may have been an old version of cython that kept messing up this install (or maybe anaconda?).

i never ended up getting this mod to work. But it's like an incompatiblity with one of the mods I'm running with. The server was being hosted (btw, ♥♥♥♥♥♥♥♥♥, credit where credit is due, love that idea) but was receiving 503's when accessing the page. I was able to see the graph, but it was a straight line and displaying no data. Hence why I assume it was a mod thing.

Love this idea. Has to be hard to implement and provide friendly user instructions.
blubblubblobb  [developer] 7 Nov, 2018 @ 7:24am 
OK if the server is running, it is weird that you get 503 errors. Do the errors come up if you access http://127.0.0.1:28053/ in another web browser?

If you think that other python versions might be interfering, you could also try explicitly giving the path to the correct python in the install.bat script.

One of these days, I will figure out a better way to package the application. :P

By the way, thanks for the nice feedback. :)
The idea of modding the browser was actually inspired by a reddit post: https://www.reddit.com/r/Stellaris/comments/4n4rpf/pease_help_test_this_mod_ingame_ledger_for/
pp-man 7 Nov, 2018 @ 12:34pm 
Complete output from command C:\Users\jeff\Desktop\stellaris-dashboard-0.2.0\env\Scripts\python.exe -c "import setuptools, tokenize;__file__='C:\\Users\\jeff\\Desktop\\stellaris-dashboard-0.2.0\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" develop --no-deps:
Cython is not installed, using pre-built C-extension if available, or (slow) fallback solution.
running develop
Checking .pth file support in C:\Users\jeff\Desktop\stellaris-dashboard-0.2.0\env\Lib\site-packages\
C:\Users\jeff\Desktop\stellaris-dashboard-0.2.0\env\Scripts\pythonw.exe -E -c pass
TEST PASSED: C:\Users\jeff\Desktop\stellaris-dashboard-0.2.0\env\Lib\site-packages\ appears to support .pth files
error: ("Can't get a consistent path to setup script from installation directory", 'c:\\users\\jeff\\desktop\\stellaris-dashboard-0.2.0\\', 'c:\\users\\jeff\\desktop\\stellaris-dashboard-0.2.0')

Command "C:\Users\jeff\Desktop\stellaris-dashboard-0.2.0\env\Scripts\python.exe -c "import setuptools, tokenize;__file__='C:\\Users\\jeff\\Desktop\\stellaris-dashboard-0.2.0\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" develop --no-deps" failed with error code 1 in C:\Users\jeff\Desktop\stellaris-dashboard-0.2.0\
You are using pip version 10.0.1, however version 18.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
pp-man 7 Nov, 2018 @ 12:35pm 
I reinstalled and got his, I really dont know anything about coding but I think that this could be the problem but i still dont really know,
Cython is not installed, using pre-built C-extension if available, or (slow) fallback solution.
awesomeadam217 7 Nov, 2018 @ 10:47pm 
Damn, I was hoping we both had an older version of python or something and that was causing the original issue. Doesn't matter too much; there's a workaround (mentioned in my second comment above) that should allow this to run.
Yes, the server is up and running. My guess was the original issue (where Cython isn't being detected automatically) is caused by anaconda or whatever. I was hoping pp-man had the same configuration, so then we could pinpoint it to that. But I guess not. Oh well.

So. Yeah super weird on the 503. Some time after Le Guin releases, I could try running this mod again with no other mods and see what happens. Right now, I'm going to assume it's just a mod incompatibility causing the issue. The graph generates, but it appears to have a problem plotting the data. When navigating around in the browser, I get the 503. Like when I click on the tabs to plot different data. Don't worry about that aspect too much, because it sounds like I'm the only one seeing the 503's.

Oh yeah, I love this idea! So cool. I'll fork off the github and offer a suggestion or two on the packaging if I get a chance. It'd be at least a few months out though. I'm surprised you can't bundle the install in the Steam mod, and just change the extension of install.bat to install.batman or something, and have people run that (instead of downloading a github project). Might help out with the confusion around this mod and new users to github.
blubblubblobb  [developer] 8 Nov, 2018 @ 2:51am 
If you want you could also try the workaround that I posted in this discussion:
https://steamhost.cn/steamcommunity_com/workshop/filedetails/discussion/1466534202/2791563692149826525/

Originally posted by blubblubblobb:
I think the problem is related to how I setup the project structure. It is a bit weird that I don't have any problems at all, but I might be able to fix it for the next release.

Maybe you could remove your existing env folder or start with a clean download of the latest release and try the following steps: (for 1 and 2 you can simply change the install.bat script before running it)
1. Run
python -m venv env
2. Run
cmd /k "call env\Scripts\activate & python -m pip install -r requirements.txt"
3. Move the
src/stellarisdashboard
folder up one level, so that the stellarisdashboard folder sits right next to the env folder
4. Run the stellarisdashboard.bat file (I think it should work without any changes)

Please let me know if that resolves your problem :)
Last edited by blubblubblobb; 8 Nov, 2018 @ 2:52am
< >
Showing 1-11 of 11 comments
Per page: 1530 50