I have been trying to include unfollow action in a bot using Instapy. However, it always gives warning as **** ~user is inaccessible and removes that user from the csv file without unfollowing them. Following is a piece of code that I use for this purpose.
session.unfollow_users(
amount=500,
instapy_followed_enabled=True,
instapy_followed_param="nonfollowers",
style="FIFO",
unfollow_after=12 * 60 * 60,
sleep_delay=501,
)
I have tried even simpler actions like session.unfollow_users(amount=10, nonFollowers=True, unfollow_after=0, sleep_delay=600), but it still does not work. Needless to say that I have also changed unfollow_util.py with the one in https://github.com/ErwinKoekoek/InstaPy/tree/master/instapy, but it did not help. All actions work fine (in both Windows and Ubuntu), except this one. The solutions in this issue did not help either. Could someone please help me with this issue.
Related
I wrote a script for my company that randomly selects employees for random drug tests. It works wonderfully, except when I gave it to the person who would use the program. She clicked on it and a message popped up asking if she trusts the program. AFter clicking run anyways, AVG flagged it two more times before it would finally load. I read someone else's comment saying to make an exception for it on the antivirus. The problem is, I wrote another program that reads other scripts and reads/writes txt files, generates excel spreadsheets and many other things. I'm really close to releasing the final product to a few select companies as a trial, and this certificate thing is going to be an issue. I code for fun, so there's a lot of lingo that goes right by me. Can someone point me in the right direction where I can get some information on creating a trusted program?
It appears to be a whole long process to obtain a digital certification. You need one to be issued by a certification authority. Microsoft appears to have a docs page on it.
After you have the certification, you'd need to sign your .exe file after it's been created using a tool like SignTool. You may find more useful and detailed answers than I can provide you in this thread, as I actually only know quite little about this whole process and can only redirect you to those who know more. I'd suggest you look through what I have listed here before asking me any more, since I probably know about as much as you do past this point.
If anyone else is having this problem, I stumbled on a solution that works for me.
I created an Install Wizard using Inno Setup. Before I could install the software (My drug test program), it got flagged, asking me if I trust the software. I clicked "run anyway" and my antivirus flagged it two more times. After the program was installed. it never flagged me again. Since my main program will probably be used by 100-200 people, I'm completely fine having to do that procedure once. However, for a more "professional" result, it's probably work investing in certificates.
I'm sure I'm doing something wrong(i.e. stupid), but running
from stuff.modules import maths
Pylint just keeps giving
No name 'modules' in module 'stuff' pylint(no-name-in-module)
Unable to import 'stuff.modules' pylint(import-error)
My stuff-module is located at /home/abb, so I tried to add both PYTHONPATH="/home/abb" and PYTHONPATH="/home/abb/stuff" to an .env-file, but since it still gives the errors, I think the problem is that I'm also using the stuff-folder as my workspace.
I don't think it's a problem with the .env-file, since I'm also importing from my lib-module located in the same folder as stuff, and this doesn't raise any errors.
(Oh, and if it is important, I'm running this on an SSH-connection)
I had a similar issue. I did 'fix' it by faking another path by using ProjectRootFolder.stuff.modules, saving, and typing again stuff.modules.
I know that it was not a real fix, but from then it worked, also it is stands ever marked with a red under-line.
I explained my issue here.
I had to edit python.analysis.extraPaths.
I tried the .env route and could not get it to work. I actually spent a couple hours on it.
If you go file->preferences->settings or ctrl+, you can search for "extrapath".
Just add your /home/abb/stuff there and it should work.
I'm trying to run an automated test in Ride.py. This test works on my colleague's computer but for some reason does not work on mine. The test starts but at a certain point i get the following error:
[ ERROR ] Calling method 'start_keyword' of listener 'C:\Python27\lib\site-packages\robotide\contrib\testrunner\TestRunnerAgent.py' failed: IndexError: list index out of range
The interesting part is that this error occurs on the same spot ever time, but with a different test it happens at a different time.
I tried to google several things and nothing worked. One solution suggested there was a '#' commented somewhere and this caused the crash. I looked but I don't see a '#' commented anywhere.
Another suggestion lead me to believe my testrunneragent.py file must have been installed wrong. I went online to find the file and replaced it. This did not work either (reran the test before and after a restart of ride)
We tried to re-import the test files thinking perhaps something went wrong there. This did not help either.
Googling juts the last part (IndexError: list index out of range) gave me the suggestion it does not recognize all the lines of code in the back-end file. I would have no clue how to solve this as im not a major coder.
One difference between me and my colleague could be the versions. I downloaded python version 2.7.16 and ride 1.7.3.1. My colleague uses an older version of both python and RIDE. Perhaps the problem could be here?
https://paste.fedoraproject.org/paste/TLekH3az0m4wuUyM8C2RYw
I expect the test will run without failing (it is a happy flow) I have included some screenshots with code in the previous segment that might help
downgraded to the same version of Ride.py
This seems to have fixed the issue
I am building a chatbot using rasa_core and rasa_nlu. As of now I am simply deploying it on my Ubuntu shell (I am using Windows 10). Now my problem is that from time to time, the bot won't answer to my messages: it directly goes to the 'Action_listen' action. After this, the only way to have the bot work normally again is to exit and relaunch it.
Strangely, I cannot derive any pattern to explain what causes this problem, and the very same conversation history can both cause this problem or no problem at all. That makes debugging specifically difficult as I cannot reproduce this problem on demand.
Nothing appears. I have changed rasa's code so that it prints the outputs of the intent recognition and of _get_next_action in processor.py. The output of the intent recognition does appear normally, the ouput of _get_next_action is:
Action('action_listen')
Any idea what might be the cause and the solution ?
Thank you for your help,
Best,
Vincent.
This happened to me in the initial stages.
My issue was that my intents were quite confusing for the bot. For example, two contradicting statements had the same intent or I had too many things under the same intent. I fixed this by changing my intents and entities.
If you post your stories, someone can help. It is really tough to know more without information.
We're working with an older zope version (2.10.6-final, python 2.4.5) and working with a database adapter called ZEIngresDA. We have an established connection for it, and the test function shows that it is totally functional and can connect and run queries.
My job is to change the way that the queries are actually executing, so that they're properly parameterizing variables to protect against sql injection. With that said, I'm running into a security issue that I'm hoping someone can help with.
connection = container.util.ZEIngresDAName()
#returning connection at this point reveals it to be of type ZEIngresDA.db.DA,
#which is the object we're looking for.
connection.query("SELECT * from data WHERE column='%s';", ('val1',))
#query is a function that is included in class DA, functions not in DA throw errors.
Here we run into the problem. Testing this script brings up a login prompt that, when logged into, immediately comes up again. I recognize that this is likely some type of security setting, but I've been unable to find anything online about this issue, though this old of zope documentation isn't spectacular online anyways. If this sounds familiar to you or you have any ideas, please let me know.
I have some experience using Zope2 but it's hard to give a good answer with the limited information you've posted. I'm assuming here that you're using a Python script within the ZMI
Here's a list of things I would check:
Are you logged into the root folder rather than a sub folder in the ZMI? This could cause a login prompt as you're requesting a resource that you do not have access to use
In the ZMI double check the "security" tab of the script you're trying to run to ensure that your user role has permission to run the script
Whilst you're there check the "proxy" tab to ensure that the script itself has permission to call the functions within it
Also worth checking that the products you're trying to use were installed by a user which is still listed in the root acl_user folder - from memory this can cause issues with the login prompt
Best of luck to you - happy (also sad) to hear that there's at least one other Zope user out there!