Closed ShahwaizRaza closed 2 years ago
Thanks for reporting. From the description it sounds like your current working directory has an issue since executors
dir is a part of the main module.
Can you please provide minimum reproducible code or screenshots for me to begin with?
Please refer to reporting guidelines on the information to include when you raise a bug report.
and here is the error.
when I run internet.py separately it shows executors error
Can you please check the current working directory of your project. A pwd
in working terminal or import os; print(os.getcwd())
should get it.
Since both modules
and executors
are directories within the main module, there shouldn't be a start up issue unless the current working directory is incorrect.
To answer to your second screnshot, internet.py
cannot be run separately so that is expected. Only jarvis.py
can be triggered from the root dir which should import all the required modules and startup.
Command 'netsh wlan show interfaces' returned non-zero exit status 1.
Can you check if the command works in your terminal, I barely use windows OS and it was working in my machine after I installed git
Let me know if that doesn't fix, I'll release a bug fix with exception handlers around it since it is an un-important task.
Thanks for bringing this up, I just realized I'm checking for git
installation in MacOS
but not Windows
I'll release a fix for that as well
git already installed in windows.
The problem you stated shouldn't rely on git installation in the first place, can you try the command netsh wlan show interfaces
in your cmd and see if it works.
wait, I am using pc not a laptop.
then it shows this in terminal
Good to know, the command is to check wireless interfaces and I have never tried running on a wired PC I'll add that to my list of fixes in the next release. About the warning message, you may ignore it. It runs only on Mac with a cron schedule if you have robinhood credentials stored as env vars but imports the module regardless. You shouldn't have received the warning in the first place since both your CWD and Parent are the same. It might be because of spaces or backslashes. I implement a fix for that as well.
my current and parent directory are not the same.
Of course it will not be the same when you run that piece of code by itself. Current is current and parent is the directory where the current dir is present. I was talking about your previous screenshot when you spun up Jarvis to Sentry Mode
That's because it does a string match instead of a path match using os.path.normpath()
or os.path.realpath()
or os.path.abspath()
Issue has been addressed in 93b57ccb21ec63e4c5f2a8108d5210a79f9244ae
but it shows an error every time No module named 'executors.commander' or executors.geolocator or import geo_locator