I have been having problems with running the samlapi.py script detailed on this page:
https://aws.amazon.com/blogs/security/how-to-implement-federated-api-and-cli-access-using-saml-2-0-and-ad-fs/
I am following everything correctly, but I continue to run into errors such as this:
Traceback (most recent call last): File "./samlapi.py", line 6, in <module> import boto.sts ModuleNotFoundError: No module named 'boto.sts'
Even though I DID install boto.
As well as...
Traceback (most recent call last): File "/Users/chrisroarke/samlapi.py", line 8, in <module> import requests ModuleNotFoundError: No module named 'requests'
Even though I DID install requests-ntlm.
I am following the instructions on this article and continue to run into these issues. Very frustrating. I am on MacOS, running Big Sur, Python3.9, have installed 'beautiful soup' as well as 'requests-ntlm' as instructed; I just don't know why it cannot seem to find these modules.
If anyone out there has run into this issue and has a potential solution to propose I'm all ears and would greatly appreciate it!
Cheers - Chris
Related
When running a python3 script that generates a word document on a windows machine the following error occurs:
08:53:23 Traceback (most recent call last):
08:53:23 File "c:\python\venv\py3-32-report-generator\lib\site-packages\win32com\client\gencache.py", line 236, in GetModuleForCLSID
08:53:23 __import__(sub_mod_name)
08:53:23 ModuleNotFoundError: No module named 'win32com.gen_py.00020905-0000-0000-C000-000000000046x0x8x4.ListTemplates'
The error only occurs once in a while, thats what confuses me so much.
It reminded me of a similar AttributeError that could be resolved by deleting the gen_py folder in ../AppData/Local/Temp/. Unfortunately this fix doesnt seem to help here.
If you need any more info describing the problem let me know. Thanks:)
I have a startup code to use gingerit on python. Gingerit is by far the most enhanced and the best grammar tool available on python. When I try running the code I have, I started receiving a traceback error.I am currently using 3.7 and the code I used is present on the official gingerit documentation.
text = 'it is there problem'
parser = GingerIt()
parser.parse(text)
I expected to not have any errors on this but there was a traceback error.
Traceback (most recent call last):
File "C:/Users/sid071/Desktop/gingerit.py", line 1, in <module>
from gingerit.gingerit import GingerIt
File "C:/Users/sid071/Desktop\gingerit.py", line 1, in <module>
from gingerit.gingerit import GingerIt
ModuleNotFoundError: No module named 'gingerit.gingerit'; 'gingerit' is not a package
Your script is called gingerit, which is hiding the package you installed. Rename your script to something else.
I downloaded this library: https://github.com/bufferapp/buffer-python
Ran the setup.py install, and then tried to run some code using the newly installed library.
What happens though is I get this error:
Traceback (most recent call last):
File "twitter-quote-bot.py", line 14, in <module>
from buffpy.managers.profiles import Profiles
ImportError: No module named managers.profiles
The only way I've found to fix it is to move my program (twitter-quote-bot) into the downloaded folder from Buffer and run it there.
Did I do something wrong in the installation? It seems like I should be able to do these imports globally.
Thanks in advance!
I have problems installing d3py.
easy_install from https://github.com/mikedewar/d3py/tarball/master says it's all ok, cloning the repo and setup.py'ing say it's all ok as well, Pandas an Numpy works great (I also use Networkxs working good as well), bu when I try to import d3py come this Error:
Traceback (most recent call last):
File "C:\Documents and Settings\whoauser\Desktop\python\sofia\sofia.py", line 2, in <module>
import d3py
File "C:\Python34\lib\site-packages\d3py-0.2.3-py3.4.egg\d3py\__init__.py", line 1, in <module>
ImportError: No module named 'pandas_figure'
Is this a bug in the installation script? Where I can find a working egg?
Do anyone had the same problem?
Thanks
I think you need to install the pandas module for python. Have you done that?
Hello
I cannot start running rabbitvcs on openSUSE 11.3 64bit.
I tried to run test.py file which is located in rabbitvcs folder.
It returns the following errors:
jenea#linux-nguv:/usr/lib/python2.6/site-packages/rabbitvcs> python test.py
Traceback (most recent call last):
File "test.py", line 26, in <module>
import lib.helper
File "/usr/lib/python2.6/site-packages/rabbitvcs/lib/__init__.py", line 23, in <module>
from rabbitvcs.lib.log import Log
ImportError: No module named lib.log
PS: I know that is not quite programming question but it seems to me that error occurs because of some paths or settings.
Unfortunately I've no idea where to dig.
Although stupid the answer is the following:
There were two folders where rabbitvcs was intalled. The first was in /usr/lib/rabbitvcs and the second was in /usr/lib64/rabbitvcs. I'm not sure why there was described issue but after I deleted rabbitvcs folder in /usr/lib64 it started to work normally.