pyjam
pyjam copied to clipboard
OSError: Path is not a directory
LOG:
14:44:44 INFO: Python 3.4.2 (default, Oct 8 2014, 10:47:48)
[GCC 4.9.1] on linux
14:44:44 INFO: uname_result(system='Linux', node='michael-pc', release='4.4.22-1-MANJARO', version='#1 SMP PREEMPT Sat Sep 24 11:25:42 UTC 2016', machine='x86_64', processor='')
14:44:44 INFO: pyjam version 1.2.9
14:44:44 INFO: Generating track list with path audio/csgo
14:44:49 INFO: Generating track list with path /run/media/michael/General/MusicSpam
14:44:51 INFO: Generating track list with path /run/media/michael/General/MusicSpam
14:44:52 CRITICAL: Traceback (most recent call last):
File "<string>", line 167, in start_stop
File "jam_tools.py", line 240, in start
File "watchdog/observers/api.py", line 255, in start
File "watchdog/utils/__init__.py", line 111, in start
File "watchdog/observers/inotify.py", line 121, in on_thread_start
File "watchdog/observers/inotify_buffer.py", line 35, in __init__
File "watchdog/observers/inotify_c.py", line 187, in __init__
File "watchdog/observers/inotify_c.py", line 363, in _add_dir_watch
OSError: Path is not a directory
This happens when I click the "Start" button
Hi, would you mind attaching a copy of your config.json
? Thanks.
I've tried using tf/custom and that didn't work either. Umm. This stuff is to hard for me. I hope you meant the jamconfig.json
{
"games": [
{
"audio_dir": "audio/csgo",
"audio_rate": 22050,
"mod_path": "/home/michael/.local/share/Steam/ubuntu12_32/steamapps/common/Counter-Strike Global Offensive/csgo",
"name": "Counter-Strike: Global Offensive",
"play_key": "F8",
"relay_key": "=",
"use_aliases": true
},
{
"audio_dir": "audio/css",
"audio_rate": 11025,
"mod_path": "/home/michael/.local/share/Steam/ubuntu12_32/steamapps/common/Counter-Strike Source/css",
"name": "Counter-Strike: Source",
"play_key": "F8",
"relay_key": "=",
"use_aliases": true
},
{
"audio_dir": "/run/media/michael/General/MusicSpam",
"audio_rate": 11025,
"mod_path": "/run/media/michael/General/steamapps/common/Team Fortress 2/tf",
"name": "Team Fortress 2",
"play_key": "F8",
"relay_key": "=",
"use_aliases": true
}
],
"steam_path": "/home/michael/.local/share/Steam/ubuntu12_32"
}
Thanks.
Can you confirm that the path /home/michael/.local/share/Steam/ubuntu12_32/userdata
exists? It seems that the file system watchdog cannot find that path.
It does not exist. Should I create one?
I created it and it runs without giving an error now. Now to figure out how to even play anything and that jam_help doesn't even work!!!!!
The problem is that pyjam sets up event handlers for file write events on your Steam userdata folder (where game config files are saved) so that it can detect which song you have loaded, so creating an empty userdata folder will do nothing.
I think the problem is that the config detected the wrong folder for your Steam install (it's detecting where the Steam executable is located, which seems to be separated by folders on Linux). If I'm right, the proper path should probably be /home/michael/.local/share/Steam/userdata/
OR /home/michael/.steam/steam/userdata/
. Check if either of these paths exist.
Okay that's where the folder is and the .steam just links to the .local folder. The only folder in userdata is one named "119277230" with many sub folders. jam_help still does nothing and all that hitting the play audio key does is play the sound from my microphone.
Ah, okay.
Now, go into the config editor and make your Steam path /home/michael/.local/share/Steam/
, and restart pyjam. It should start working.
Also, I don't think jam_help exists on your version of pyjam. It only exists on v1.3+, but I haven't created builds for them.
oh well umm.The path is correct and everything. I can see the track list in the console and it'll say I loaded one, but only plays my microphone still.
sv_use_steam_voice
needs to be 0
on the server.
okay it might be working. i can only hear my microphone in a server with that set to 1. The server i'm on right now has it set to 0 and it just doesn't play anything!
Can you walk me through how you try to play a song?
okay umm. I open pyjam, hit start then run tf2 and type exec jam.cfg and nicocore" which then says it loaded and then finally hitting the play audio key. i hit the relay key too sometimes.
pyjam v1.2.9 loaded. Type la or jam_listaudio for a list of tracks. ] la 0. rip again dumbass. Aliases: ['rip', 'again', 'dumbass']
- NICOCORE. Aliases: ['nicocore'] ] nicocore Loaded : NICOCORE Host_WriteConfiguration: Wrote cfg/jam_cmd.cfg Wrote partial config file "jam_cmd" out, to write full file use host_writeconfig "jam_cmd" full
Okay, can you attach the latest copy of pyjam.log
? Just want to check if songs are being loaded by pyjam.
There's lots more stuff in it now. pyjam.log.txt
Hmm. The problem seems to be that it can't find jam_cmd.cfg. On Windows, this is normally in the Steam userdata folder. However, it's possible that config files are still written to the game cfg directory.
Can you start pyjam, load a song, and check if jam_cmd.cfg exists in /run/media/michael/General/steamapps/common/Team Fortress 2/tf/cfg
?
Sorry, I wish I had access to a Linux machine capable of running games :P
Yes jam_cmd exists in the /tf/cfg folder. and sorry i didn't check my email yesterday.
voice_input.wav certainly will never exist in that path
09:09:58 ERROR: Could not remove some files: Traceback (most recent call last): File "jam_tools.py", line 255, in stop FileNotFoundError: [Errno 2] No such file or directory: '/run/media/michael/General/steamapps/common/Team Fortress 2/voice_input.wav'
Alright, I know the problem then.
I'll start working on it in a bit.
Thank you for your help and your work!
Hi, I know this is quite a ways in the past for you, but I am having the same issue and wondering if you figured anything out to fix this. The console says voice_fadeouttime is not a command it recognizes. Also, is .mp3 a fine format for the audio files?
additionally, everything launches fine and exec works well. I have followed the plot in this thread and made sure everything is right in jamconfig.json for csgo. but la in the console doesn't list any songs and the initial launch throws the voice fadeout error
No sorry, I was never able to figure it out and gave up. I'd try again now, but I can't afford a new GPU to play tf2
Get Outlook for Androidhttps://aka.ms/ghei36
From: augustusthebear [email protected] Sent: Sunday, May 6, 2018 11:48:29 AM To: 10se1ucgo/pyjam Cc: lolmikes; Author Subject: Re: [10se1ucgo/pyjam] OSError: Path is not a directory (#9)
Hi, I know this is quite a ways in the past for you, but I am having the same issue and wondering if you figured anything out to fix this. The console says voice_fadeouttime is not a command it recognizes. Also, is .mp3 a fine format for the audio files?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/10se1ucgo/pyjam/issues/9#issuecomment-386903304, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ATkkkpxTpcdw95U9YvrByoN7iYANXxmVks5tv0V9gaJpZM4KL33e.