Project 1999

Project 1999 (/forums/index.php)
-   Technical Discussion (/forums/forumdisplay.php?f=40)
-   -   EQ Alert - Log Parser (/forums/showthread.php?t=403337)

Indefinite 08-18-2023 10:09 PM

If you install using a venv, you may need to activate it to start eqalert each time using
Code:

source .venv/bin/activate
Alternatively, if you plan to install docker you can build with compose
Code:

docker compose build
docker compose run eqalert


Indefinite 08-18-2023 10:12 PM

Quote:

Originally Posted by Tann (Post 3636740)
This worked, up to generating new spell-timers part at least.. Thank you

For some reason the spell timer generation takes a little while, usually about a minute for me. Did you get any errors?

Tann 08-18-2023 10:26 PM

Quote:

Originally Posted by Indefinite (Post 3636744)
For some reason the spell timer generation takes a little while, usually about a minute for me. Did you get any errors?

no errors but didn't see any spell timers running either, perhaps I'm used to gina and nparse, the dps tracking stuff works, zone info doesn't, maybe i need to zone first and not use /who

Indefinite 08-18-2023 10:32 PM

Quote:

Originally Posted by Tann (Post 3636745)
no errors but didn't see any spell timers running either, perhaps I'm used to gina and nparse, the dps tracking stuff works, zone info doesn't, maybe i need to zone first and not use /who

With the default settings any detected spells from known players should create a timer so `/who` is still helpful there for other players spells, otherwise you can enable spell guessing and it get will guess most spells text it sees.

Pressing `t` will bring up the timers pop-up, otherwise timers are just an audio alert. Zone info is only pulled from zoning so the first time on a character it won't know

Tann 08-18-2023 10:38 PM

Quote:

Originally Posted by Indefinite (Post 3636746)
With the default settings any detected spells from known players should create a timer so `/who` is still helpful there for other players spells, otherwise you can enable spell guessing and it get will guess most spells text it sees.

Pressing `t` will bring up the timers pop-up, otherwise timers are just an audio alert. Zone info is only pulled from zoning so the first time on a character it won't know

oh wow thats sweet, i need to read more of the documentation, who would've thought.. reading the instructions

Sarekrn 08-20-2023 02:33 PM

Anytime a sound needs to be played Im getting an error:

File "/home/d00d/.local/lib/python3.9/site-packages/playsound.py", line 261, in <module> │
│ playsound(argv[1]) │
│ File "/home/d00d/.local/lib/python3.9/site-packages/playsound.py", line 162, in _playsoundNix │
│ import gi │
│ File "/usr/lib/python3/dist-packages/gi/__init__.py", line 42, in <module> │
│ from . import _gi │
│ ImportError: cannot import name '_gi' from partially initialized module 'gi' (most likely due to a circular import) (/usr/lib/python3/dist-packages/gi/__init__.py) │
│ Exception in thread Thread-11: │
│ Traceback (most recent call last): │
│ File "/usr/lib/python3.9/threading.py", line 954, in _bootstrap_inner │
│ self.run() │
│ File "/usr/lib/python3.9/threading.py", line 892, in run │
│ self._target(*self._args, **self._kwargs) │
│ File "/home/ecor1/.local/lib/python3.9/site-packages/playsound.py", line 254, in <lambda> │
│ playsound = lambda sound, block = True: _playsoundAnotherPython('/usr/bin/python3', sound, block, macOS = False) │
│ File "/home/d00d/.local/lib/python3.9/site-packages/playsound.py", line 229, in _playsoundAnotherPython │
│ t.join() │
│ File "/home/d00d/.local/lib/python3.9/site-packages/playsound.py", line 218, in join │
│ say_you │ You say, 'parser timer 60' raise self.excmbered_off │ You are no longer encumbered. │
│ targ File "/home/d00d/.local/lib/python3.9/site-packages/playsound.py", line 211, in run │
│ self.ret = self._target(*self._args, **self._kwargs) │
└───────────────────────────────────────────────── ────────────────────────────────────────────────── ───────────────────────────────────────────── ──── File "/home/d00d/.local/lib/python3.9/site-packages/playsound.py", line 226, in <lambda>
t = PropogatingThread(target = lambda: check_call([otherPython, playsoundPath, _handlePathOSX(sound) if macOS else sound]))
File "/usr/lib/python3.9/subprocess.py", line 373, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/usr/bin/python3', '/home/ecor1/.local/lib/python3.9/site-packages/playsound.py', '/tmp/eqa/sound/b4d2431a1ceabf47a18fe36ed9606f6e.wav']' returned non-zero exit status 1.

Any ideas?

Indefinite 08-20-2023 05:35 PM

Quote:

Originally Posted by Sarekrn (Post 3637282)
Anytime a sound needs to be played Im getting an error:

File "/home/d00d/.local/lib/python3.9/site-packages/playsound.py", line 261, in <module> │
│ playsound(argv[1]) │
│ File "/home/d00d/.local/lib/python3.9/site-packages/playsound.py", line 162, in _playsoundNix │
│ import gi │
│ File "/usr/lib/python3/dist-packages/gi/__init__.py", line 42, in <module> │
│ from . import _gi │
│ ImportError: cannot import name '_gi' from partially initialized module 'gi' (most likely due to a circular import) (/usr/lib/python3/dist-packages/gi/__init__.py) │
│ Exception in thread Thread-11: │
│ Traceback (most recent call last): │
│ File "/usr/lib/python3.9/threading.py", line 954, in _bootstrap_inner │
│ self.run() │
│ File "/usr/lib/python3.9/threading.py", line 892, in run │
│ self._target(*self._args, **self._kwargs) │
│ File "/home/ecor1/.local/lib/python3.9/site-packages/playsound.py", line 254, in <lambda> │
│ playsound = lambda sound, block = True: _playsoundAnotherPython('/usr/bin/python3', sound, block, macOS = False) │
│ File "/home/d00d/.local/lib/python3.9/site-packages/playsound.py", line 229, in _playsoundAnotherPython │
│ t.join() │
│ File "/home/d00d/.local/lib/python3.9/site-packages/playsound.py", line 218, in join │
│ say_you │ You say, 'parser timer 60' raise self.excmbered_off │ You are no longer encumbered. │
│ targ File "/home/d00d/.local/lib/python3.9/site-packages/playsound.py", line 211, in run │
│ self.ret = self._target(*self._args, **self._kwargs) │
└───────────────────────────────────────────────── ────────────────────────────────────────────────── ───────────────────────────────────────────── ──── File "/home/d00d/.local/lib/python3.9/site-packages/playsound.py", line 226, in <lambda>
t = PropogatingThread(target = lambda: check_call([otherPython, playsoundPath, _handlePathOSX(sound) if macOS else sound]))
File "/usr/lib/python3.9/subprocess.py", line 373, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/usr/bin/python3', '/home/ecor1/.local/lib/python3.9/site-packages/playsound.py', '/tmp/eqa/sound/b4d2431a1ceabf47a18fe36ed9606f6e.wav']' returned non-zero exit status 1.

Any ideas?

`playsound` seemingly has a handful of Linux system package dependencies. Check if you're missing anything in the below list:
https://github.com/mgeitz/eqalert/bl...erfile#L17-L40

You may also need to install pygobject.

If you're running eqalert on a mac I'm not too sure though I know playsound should support mac as well.

If all else fails, as a last ditch effort if you've got docker installed I'd suggest trying out the docker image instead. The compose file assumes pulse audio running on the host, so I'd be interested to know if it could run on a mac.

I'm definitely planning to replace playsound with another cross platform solution down the road, the errors are vague and it hasn't seen active development in two years. If you've built locally and have another preferred way to play sound files this is only called in one place:
https://github.com/mgeitz/eqalert/bl.../sound.py#L294

Sarekrn 08-23-2023 09:52 AM

Ended upgrading my mint to 21, tried reinstalling eqalert and now Im getting the following:

Traceback (most recent call last):
File "/home/d00d/.local/bin/eqalert", line 33, in <module>
sys.exit(load_entry_point('eqalert', 'console_scripts', 'eqalert')())
File "/home/d00d/.local/bin/eqalert", line 25, in importlib_load_entry_point
return next(matches).load()
StopIteration

Indefinite 08-23-2023 06:47 PM

Quote:

Originally Posted by Sarekrn (Post 3638378)
Ended upgrading my mint to 21, tried reinstalling eqalert and now Im getting the following:

Traceback (most recent call last):
File "/home/d00d/.local/bin/eqalert", line 33, in <module>
sys.exit(load_entry_point('eqalert', 'console_scripts', 'eqalert')())
File "/home/d00d/.local/bin/eqalert", line 25, in importlib_load_entry_point
return next(matches).load()
StopIteration

I'm not sure, how did you try installing it? It looks as though it tries to run it but can't find some files?

If you have `python3-pip` installed it may be worth trying the below command if that was a installation from source:

Code:

pip3 install eqalert

Sarekrn 08-23-2023 07:24 PM

Yeah I installed thru pip3.. now it won’t even uninstall to try again unfortunately


All times are GMT -4. The time now is 06:18 AM.

Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.