Resource icon

Apps [sp]tracker_source 2018-07-29

Login or Register an account to download this content
Sorry for bothering you again, now I'll do it in the proper section. Sorry again about that.

I know what git is, been using it for years in a daily basis. zip content is only the ".git" folder (which git creates when you initialize/clone a repository) of your project (source code not included).

There's no work tree so I can't checkout anything, can't switch to a different branch, can't fetch from remote (origin = http://n-e-y-s.de/git/sptracker.git). The only thing I can see is the git log.

Can you check the zip contents, please?

And regarding the vote, that was my first vote, didn't know that I can't change it when the author answers. I've been using your tool for years and I really appreciate the work you've done there, 6 stars over 5 :)

UPDATE: I've managed to restore the non-existing working tree by doing

git config --unset core.bare
git reset HEAD .
git checkout -- .


UPDATE 2: See @seejy solution below, way better than the one I have provided :)
 
Last edited:
Putting this in here for anyone else who wants to check out the git repository in a more familiar manner:

1. extract the zip file
2. you should now have a sptracker.git folder
3. run the following command: git clone sptracker.git sptracker
4. you will find the actual repository in the sptracker folder
 
since yesterday i have following error message
---------
stracker[ERROR]: error caught:
Traceback (most recent call last):
File "ptracker_lib\helpers.py", line 244, in new_f
File "stracker_lib\stracker_udp_plugin.py", line 307, in callback
File "stracker_lib\stracker_udp_plugin.py", line 506, in realtimeEvent
TypeError: unorderable types: float() >= NoneType()
----------
restarting did not help.
The tracker is recording lap times but no split times
 
Hello,

I'm trying to do a few small modifications to stracker and build it for windows by running:

Code:
python .\create_release.py --windows_only --stracker_only 1

I use conda and created a python 3.3 environment.
It starts building as expected but outputs the following error after a while:

Code:
7079 INFO: Analyzing C:\Users\username\OneDrive\Documenten\sptracker\sptracker\stracker\stracker.py                                                                                                                                                                                         
7379 INFO: Processing pre-find module path hook site from 'c:\\users\\username\\appdata\\local\\programs\\python\\python38\\lib\\site-packages\\PyInstaller\\hooks\\pre_find_module_path\\hook-site.py'.                                                                                    
7381 INFO: site: retargeting to fake-dir 'c:\\users\\username\\appdata\\local\\programs\\python\\python38\\lib\\site-packages\\PyInstaller\\fake-modules'                                                                                                                                   
8485 INFO: Processing pre-safe import module hook setuptools.extern.six.moves from 'c:\\users\\username\\appdata\\local\\programs\\python\\python38\\lib\\site-packages\\PyInstaller\\hooks\\pre_safe_import_module\\hook-setuptools.extern.six.moves.py'.                                  
Traceback (most recent call last):                                                                                                                                                                                                                                                       
  File "c:\users\username\appdata\local\programs\python\python38\lib\runpy.py", line 193, in _run_module_as_main                                                                                                                                                                            
    return _run_code(code, main_globals, None,                                                                                                                                                                                                                                           
  File "c:\users\username\appdata\local\programs\python\python38\lib\runpy.py", line 86, in _run_code                                                                                                                                                                                       
    exec(code, run_globals)                                                                                                                                                                                                                                                              
  File "C:\Users\username\AppData\Local\Programs\Python\Python38\Scripts\pyinstaller.exe\__main__.py", line 7, in <module>                                                                                                                                                                  
  File "c:\users\username\appdata\local\programs\python\python38\lib\site-packages\PyInstaller\__main__.py", line 114, in run                                                                                                                                                               
    run_build(pyi_config, spec_file, **vars(args))                                                                                                                                                                                                                                       
  File "c:\users\username\appdata\local\programs\python\python38\lib\site-packages\PyInstaller\__main__.py", line 65, in run_build                                                                                                                                                          
    PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)                                                                                                                                                                                                                
  File "c:\users\username\appdata\local\programs\python\python38\lib\site-packages\PyInstaller\building\build_main.py", line 725, in main                                                                                                                                                   
    build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build'))                                                                                                                                                                                                       
  File "c:\users\username\appdata\local\programs\python\python38\lib\site-packages\PyInstaller\building\build_main.py", line 672, in build                                                                                                                                                  
    exec(code, spec_namespace)                                                                                                                                                                                                                                                           
  File "C:\Users\username\OneDrive\Documenten\sptracker\sptracker\stracker\stracker.spec", line 6, in <module>                                                                                                                                                                              
    a = Analysis(['stracker.py'],                                                                                                                                                                                                                                                        
  File "c:\users\username\appdata\local\programs\python\python38\lib\site-packages\PyInstaller\building\build_main.py", line 242, in __init__                                                                                                                                               
    self.__postinit__()                                                                                                                                                                                                                                                                  
  File "c:\users\username\appdata\local\programs\python\python38\lib\site-packages\PyInstaller\building\datastruct.py", line 160, in __postinit__                                                                                                                                           
    self.assemble()                                                                                                                                                                                                                                                                      
  File "c:\users\username\appdata\local\programs\python\python38\lib\site-packages\PyInstaller\building\build_main.py", line 414, in assemble                                                                                                                                               
    priority_scripts.append(self.graph.run_script(script))                                                                                                                                                                                                                               
  File "c:\users\username\appdata\local\programs\python\python38\lib\site-packages\PyInstaller\depend\analysis.py", line 303, in run_script                                                                                                                                                 
    self._top_script_node = super(PyiModuleGraph, self).run_script(                                                                                                                                                                                                                      
  File "c:\users\username\appdata\local\programs\python\python38\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1424, in run_script                                                                                                                                    
    self._scan_code(m, co, co_ast)                                                                                                                                                                                                                                                       
  File "c:\users\username\appdata\local\programs\python\python38\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2661, in _scan_code                                                                                                                                    
    self._process_imports(module)                                                                                                                                                                                                                                                        
  File "c:\users\username\appdata\local\programs\python\python38\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2860, in _process_imports                                                                                                                              
    target_module = self._safe_import_hook(*import_info, **kwargs)[0]                                                                                                                                                                                                                    
  File "c:\users\username\appdata\local\programs\python\python38\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2313, in _safe_import_hook                                                                                                                             
    target_modules = self.import_hook(                                                                                                                                                                                                                                                   
  File "c:\users\username\appdata\local\programs\python\python38\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1496, in import_hook                                                                                                                                   
    target_package, target_module_partname = self._find_head_package(                                                                                                                                                                                                                    
  File "c:\users\username\appdata\local\programs\python\python38\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1654, in _find_head_package                                                                                                                            
    target_package = self._safe_import_module(                                                                                                                                                                                                                                           
  File "c:\users\username\appdata\local\programs\python\python38\lib\site-packages\PyInstaller\depend\analysis.py", line 441, in _safe_import_module                                                                                                                                        
    return super(PyiModuleGraph, self)._safe_import_module(                                                                                                                                                                                                                              
  File "c:\users\username\appdata\local\programs\python\python38\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2067, in _safe_import_module                                                                                                                           
    module = self._load_module(module_name, pathname, loader)                                                                                                                                                                                                                            
  File "c:\users\username\appdata\local\programs\python\python38\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2176, in _load_module                                                                                                                                  
    self._scan_code(m, co, co_ast)                                                                                                                                                                                                                                                       
  File "c:\users\username\appdata\local\programs\python\python38\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2661, in _scan_code                                                                                                                                    
    self._process_imports(module)                                                                                                                                                                                                                                                        
  File "c:\users\username\appdata\local\programs\python\python38\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2860, in _process_imports                                                                                                                              
    target_module = self._safe_import_hook(*import_info, **kwargs)[0]                                                                                                                                                                                                                    
  File "c:\users\username\appdata\local\programs\python\python38\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2522, in _safe_import_hook                                                                                                                             
    self.import_hook(                                                                                                                                                                                                                                                                    
  File "c:\users\username\appdata\local\programs\python\python38\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1514, in import_hook                                                                                                                                   
    for target_submodule in self._import_importable_package_submodules(                                                                                                                                                                                                                  
  File "c:\users\username\appdata\local\programs\python\python38\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1808, in _import_importable_package_submodules                                                                                                         
    submodule = self._safe_import_module(                                                                                                                                                                                                                                                
  File "c:\users\username\appdata\local\programs\python\python38\lib\site-packages\PyInstaller\depend\analysis.py", line 441, in _safe_import_module                                                                                                                                        
    return super(PyiModuleGraph, self)._safe_import_module(                                                                                                                                                                                                                              
  File "c:\users\username\appdata\local\programs\python\python38\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2067, in _safe_import_module                                                                                                                           
    module = self._load_module(module_name, pathname, loader)                                                                                                                                                                                                                            
  File "c:\users\username\appdata\local\programs\python\python38\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2138, in _load_module                                                                                                                                  
    src = loader.get_source(partname)                                                                                                                                                                                                                                                    
  File "<frozen importlib._bootstrap_external>", line 839, in get_source                                                                                                                                                                                                                 
  File "<frozen importlib._bootstrap_external>", line 621, in decode_source                                                                                                                                                                                                              
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa9 in position 109: invalid start byte                                                                                                                                                                                             
Traceback (most recent call last):                                                                                                                                                                                                                                                       
  File ".\create_release.py", line 250, in <module>                                                                                                                                                                                                                                      
    assert 0 == os.system("pyinstaller --name stracker --clean -y --onefile --exclude-module http_templates --hidden-import cherrypy.wsgiserver.wsgiserver3 --hidden-import psycopg2 --additional-hooks-dir=pyinstaller-hooks\ --path .. --path externals stracker.py")                  
AssertionError

I've no clue what I'm doing wrong, even with a clean git clone without modifying anything I'm getting this error. Something interesting I noted is that the builder logs my python version as 3.8.1 and pyinstaller 4.2 while I'm running from a 3.3 env.

Does anyone have any clue on what's going wrong?

EDIT: I fixed it by installing pyinstaller for python 3.5. I think because 3.3 didn't had the pyinstaller package it automaticly used a python version with pyinstaller?

Kind regards,
Merijn
 
Last edited:
No idea what went wrong. Could be an issue with the python environment. It's been a long time, so I don't remember exactly. I'm sure that I never used conda though. Probably I've used winpython from within a pip-installed venv.

Anyways, congratulations, you might be the first person except myself who managed to build stracker :D
 
Heya Neys & Merijn,

I recently started working on STracker/PTracker. I sent a PR on Github, with some improvements to the whole thing, including the build script, but it's still a work in progress. Neys, are you still interested in being maintainer, and want to review/publish? I've successfully built STracker (and packager) for my own server, with some graphing enhancements (next on my wishlist is replacing PyGal with Highcharts for better graphs). And I've built PTracker and had a couple of people beta-test. See https://stracker.drwil.co/lapdetails?lapid=2198# for my STracker in the wild (the map being off is a track problem, other tracks are fine).

Merijn, I can help with building. I recognize the error you're getting, if I'm not mistaken it's from a UTF-8 error in stracker/externals/pygal/maps/__init__.py. I think it was the Copyright symbol in there. I fixed it here https://github.com/docwilco/S-P-Tra...d0390edc3a23975ddaf5d5c27b92f47c18a59a396907c, but unfortunately I screwed up the line endings too, something on my todo list. And Github is being too helpful in trying to show a character, instead of a UTF-8 error.

If you want to work together on stuff let me know!

Cheers,

Doc
 
Last edited:
Neys, are you still interested in being maintainer, and want to review/publish?
Hey DocWilco,

feel free to use the project for whatever purpose you like, as long as you respect the license. I fear I have to say that I've stepped down from playing AC recently and due to that my interest in the AC mods went also down. If you want to take over the project I am open to reference the fork in the main page here on RD, such that users are guided to your page.

Best Regards
Neys
 
feel free to use the project for whatever purpose you like, as long as you respect the license.

Will do. I've been doing open source stuff most of my life, and while I'm not a fan of FSF/GNU license, you respect what comes with the code, or it just doesn't make sense to do Open Source. :)

I fear I have to say that I've stepped down from playing AC recently and due to that my interest in the AC mods went also down. If you want to take over the project I am open to reference the fork in the main page here on RD, such that users are guided to your page.
No worries, I figured it might be something like that, what with the radio silence and the website disappearing. I'll revoke the PR, and keep working on my fork. Once I have something publishable, I'll give you a poke.

Cheers!
 
Hi guys, anyone can help me with the meaning of rows coloured in pink? (in Lap Times option)
thanks in advance
 

Attachments

  • pink_row.JPG
    pink_row.JPG
    22.5 KB · Views: 88
Hi neys, and other people that are trying to develop new features for stracker.
I want to add some features to stracker, but I want to know if there is an easy way to run and debug features. I am completely new on developing mods but as a Software Engineer I have the ability.
If there is some guide or readme available I would love to know it!
Thanks!
 
See https://stracker.drwil.co/lapdetails?lapid=2198# for my STracker in the wild (the map being off is a track problem, other tracks are fine).
I've made some cosmetic changes to stracker too, mainly tooltips to show time difference to next/prev driver, sortable laptimes table etc.

Have you managed to fix the overlapping track graph/map? Or do you have more recent version of the code running somewhere with different tracks to show?

Anyway I clone your repo and try to merge my changes, it would be nice if there was a fully working recent version of stracker somewhere :)
 
Back
Top