bash: ./pystromo-mon.py: Permission denied

Asked by SeanJM

I get this error from bash after:
cd .config/pystromo/
./pystromo-mon.py

for some wierd reason--dunno, it was working yesterday.

Question information

Language:
English Edit question
Status:
Answered
For:
Pystromo Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Launchpad Janitor (janitor) said :
#1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
Raumkraut (raumkraut) said :
#2

Hi, are you still having the problem?
If so, what output do you get from an `ls -l .config/pystromo/`?

Revision history for this message
SeanJM (sjm) said :
#3

Hey, no I tried to close it but the link I followed didnt work. But I
have another problem now, I can do ./pystromo-mon.py and it works for a
bit, but then it stops working completely.

Raumkraut wrote:
> Your question #66874 on Pystromo changed:
> https://answers.launchpad.net/pystromo/+question/66874
>
> Status: Expired => Needs information
>
> Raumkraut changed the question status:
> Hi, are you still having the problem?
> If so, what output do you get from an `ls -l .config/pystromo/`?
>
>

Revision history for this message
Raumkraut (raumkraut) said :
#4

Can you be more specific on the symptoms when it stops working? What is it that you're trying to do that doesn't work?
The output of `pystromo-mon.ph -v` for a session when the problem manifests may be of use.

Revision history for this message
SeanJM (sjm) said :
#5

Loading configuration file
/home/sean/.config/pystromo/pystromo-remap.py -m gimp.map -m inkscape.map

For some reason it doesn't load all my config files either, only 2 of
them. I have a 3rd it's not loading.

Raumkraut wrote:
> Your question #66874 on Pystromo changed:
> https://answers.launchpad.net/pystromo/+question/66874
>
> Status: Open => Needs information
>
> Raumkraut requested for more information:
> Can you be more specific on the symptoms when it stops working? What is it that you're trying to do that doesn't work?
> The output of `pystromo-mon.ph -v` for a session when the problem manifests may be of use.
>
>

Revision history for this message
Raumkraut (raumkraut) said :
#6

Hmm, what does your monitor.conf look like?
And after you see the pystrono-remap line in the output of pystromo-mon, what does a `ps ax | grep pystromo` show you?

Revision history for this message
SeanJM (sjm) said :
#7

# This is the configuration file for Pystromo's monitoring script.
# Each line herein specifies a mapping file to use when certain
# processes are detected as running.
# With the exception of "*", whitespace in the key IS NOT ignored.
# "=" is an invalid character in keys.
gimp-2.6=gimp.map
inkscape=inkscape.map
blender=blender.map

terminal output

sean@ubuntu:~/.config/pystromo$ ps ax | grep pystromo
 7667 pts/0 S+ 3:50 python ./pystromo-mon.py
10313 pts/0 S+ 0:02 python
/home/sean/.config/pystromo/pystromo-remap.py -m gimp.map -m inkscape.map
32569 pts/2 S+ 0:00 grep pystromo

The output looks legit but the behavior in gimp is like it's using the
inkscape config still.

Raumkraut wrote:
> Your question #66874 on Pystromo changed:
> https://answers.launchpad.net/pystromo/+question/66874
>
> Status: Open => Needs information
>
> Raumkraut requested for more information:
> Hmm, what does your monitor.conf look like?
> And after you see the pystrono-remap line in the output of pystromo-mon, what does a `ps ax | grep pystromo` show you?
>
>

Revision history for this message
SeanJM (sjm) said :
#8

Hi Raumkraut,

You are awesome by the way.

It seems to be only the Wheel on the N52 that got messed up after I
plugged in a printer.

Raumkraut wrote:
> Your question #66874 on Pystromo changed:
> https://answers.launchpad.net/pystromo/+question/66874
>
> Status: Open => Needs information
>
> Raumkraut requested for more information:
> Hmm, what does your monitor.conf look like?
> And after you see the pystrono-remap line in the output of pystromo-mon, what does a `ps ax | grep pystromo` show you?
>
>

Revision history for this message
Raumkraut (raumkraut) said :
#9

From something you said, I think there may be a misunderstanding over how Pystromo works. It only remaps one set of input to another, and has no idea what application is going to be receiving the input.
When you specify two config files, they are combined into a single set of rules. Duplicate input remappings specified in later config files override any earlier ones. Hence the behaviour you're seeing as to using gimp.map and inkscape.map simultaneously.

Revision history for this message
SeanJM (sjm) said :
#10

Anyway you can make it work like that? Because that would be awesome.

So basically when I switch applications I would just /.pystromo-remap.py
inkscape.map for example when in inkscape?

Raumkraut wrote:
> Your question #66874 on Pystromo changed:
> https://answers.launchpad.net/pystromo/+question/66874
>
> Status: Open => Answered
>
> Raumkraut proposed the following answer:
> >From something you said, I think there may be a misunderstanding over how Pystromo works. It only remaps one set of input to another, and has no idea what application is going to be receiving the input.
> When you specify two config files, they are combined into a single set of rules. Duplicate input remappings specified in later config files override any earlier ones. Hence the behaviour you're seeing as to using gimp.map and inkscape.map simultaneously.
>
>

Revision history for this message
Raumkraut (raumkraut) said :
#11

Yes, it would indeed be awesome. Unfortunately, with the way Pystromo's designed, it's not feasible for it to know which application would be receiving the input.

But if you want multiple overlapping mappings to affect different applications, then the most feasible solution is to start Pystromo manually when required, as you suggest.

Can you help with this problem?

Provide an answer of your own, or ask SeanJM for more information if necessary.

To post a message you must log in.