12 Replies Latest reply on Dec 3, 2015 10:38 PM by Matt Coles Branched from an earlier discussion. Branched to a new discussion.

    VizAlerts error

    Santosh Adari

      I  see the below error, i am not sure if i am missing anything here .

       

      E:\VizAlerts-1.0.8>python E:\VizAlerts-1.0.8\vizalerts.py

      Traceback (most recent call last):

        File "E:\VizAlerts-1.0.8\vizalerts.py", line 23, in <module>

          import tabUtil

        File "E:\VizAlerts-1.0.8\tabUtil\__init__.py", line 3, in <module>

          import os, sys, yaml, datetime

      ImportError: No module named yaml

        • 1. Re: VizAlerts error
          Santosh Adari

          Even tried this but no luck

          E:\VizAlerts-1.0.8>python E:\VizAlerts-1.0.8\vizalerts.py

          Traceback (most recent call last):

            File "E:\VizAlerts-1.0.8\vizalerts.py", line 23, in <module>

              import tabUtil

            File "E:\VizAlerts-1.0.8\tabUtil\__init__.py", line 3, in <module>

              import os, sys, yaml, datetime

          ImportError: No module named yaml

          • 2. Re: VizAlerts error
            Matt Coles

            Hi Santosh! Looks like your pyyaml module wasn't installed. Check out page 6 of the install_guide.docx , make sure you've run through all those steps and that they succeeded. Once they do, it should resolve this error for you.

            • 3. Re: VizAlerts error
              Santosh Adari

              Thanks Matt, You are right pyyaml was missing and i have to resiatll 32bit beacuse 64bit was not working, but now when i install requests, i am getting below error.. please help.

               

               

              -----------------------error --------------------------E:\> pip install requests_ntlm.py

               

              Downloading/unpacking requests-ntlm.py

                Getting page https://pypi.python.org/simple/requests_ntlm.py/

                Could not fetch URL https://pypi.python.org/simple/requests_ntlm.py/: 404 Client Error: Not Found

                Will skip URL https://pypi.python.org/simple/requests_ntlm.py/ when looking for download links for requests-ntlm.py

                Getting page https://pypi.python.org/simple/

                URLs to search for versions for requests-ntlm.py:

                * https://pypi.python.org/simple/requests_ntlm.py/

                Getting page https://pypi.python.org/simple/requests_ntlm.py/

                Could not fetch URL https://pypi.python.org/simple/requests_ntlm.py/: 404 Client Error: Not Found

                Will skip URL https://pypi.python.org/simple/requests_ntlm.py/ when looking for download links for requests-ntlm.py

                Could not find any downloads that satisfy the requirement requests-ntlm.py

              Cleaning up...

                Removing temporary dir c:\users\adari\appdata\local\temp\11\pip_build_adari...

              No distributions at all found for requests-ntlm.py

              Exception information:

              Traceback (most recent call last):

                File "C:\Python27\lib\site-packages\pip\basecommand.py", line 122, in main

                  status = self.run(options, args)

                File "C:\Python27\lib\site-packages\pip\commands\install.py", line 278, in run

                  requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)

                File "C:\Python27\lib\site-packages\pip\req.py", line 1177, in prepare_files

                  url = finder.find_requirement(req_to_install, upgrade=self.upgrade)

                File "C:\Python27\lib\site-packages\pip\index.py", line 277, in find_requirement

                  raise DistributionNotFound('No distributions at all found for %s' % req)

              DistributionNotFound: No distributions at all found for requests-ntlm.py

              • 4. Re: VizAlerts error
                Matt Coles

                Hi Santosh. I strongly advise going through the install_guide as linked above and following every step laid out precisely. If you wing it, you're likely to hit more roadblocks. In this case, the command should not include .py at the end.

                • 5. Re: VizAlerts error
                  Santosh Adari

                  Hi Matt,

                   

                  I was able to finally install it, but I want to let you know when we do a pip install 2 packages need to be in C drive earlier when i had them and running from E drive it was throwing above errors.

                   

                  I am working on next steps and will keep you posted if i see any issues.. Thanks in advance.

                  • 6. Re: VizAlerts error
                    Matt Coles

                    Thanks for the follow up! Do let me know how it goes.

                    • 7. Re: VizAlerts error
                      Santosh Adari

                      Hi Matt,

                       

                      Below is the error i amstuck with, i followed all the instrcutions but still could not move after this step.

                       

                      --- python C:\VizAlerts\vizalerts.py

                       

                       

                      2015-12-03 14:19:24 - [INFO] - LoggerQuickSetup - Logging initialized, writing to .\logs\vizalerts.log_2015-12-03.log

                      2015-12-03 14:19:24 - [ERROR] - validate_conf - An exception was raised loading the config file .\config\vizalerts.yaml: (<class 'yaml.scanner.ScannerError'>, ScannerError(), <traceback object at 0x02E793F0>) Stacktrace: <traceback object at 0x02E793F0>

                      2015-12-03 14:19:24 - [ERROR] - <module> - An unhandled exception occurred: Traceback (most recent call last):

                        File "c:\VizAlerts\vizalerts.py", line 1249, in <module>

                          main()

                        File "c:\VizAlerts\vizalerts.py", line 149, in main

                          configs = validate_conf(configfile, logger)

                        File "c:\VizAlerts\vizalerts.py", line 250, in validate_conf

                          sys.exit(1)

                      SystemExit: 1

                      Traceback (most recent call last):

                        File "c:\VizAlerts\vizalerts.py", line 1249, in <module>

                          main()

                        File "c:\VizAlerts\vizalerts.py", line 149, in main

                          configs = validate_conf(configfile, logger)

                        File "c:\VizAlerts\vizalerts.py", line 250, in validate_conf

                          sys.exit(1)

                      SystemExit: 1

                      • 8. Re: VizAlerts error
                        Matt Coles

                        This one means that your yaml file has some formatting problems. Copy and paste it into http://codebeautify.org/yaml-validator and click Validate. It should show you the issue so you can correct it.

                        • 9. Re: VizAlerts error
                          Santosh Adari

                          Thanks Matt, i have validated and found no issues with formating.

                           

                          • 10. Re: VizAlerts error
                            Matt Coles

                            Okay, thanks for verifying. My guess is that there's a tab character in there somewhere that the validator isn't flagging. Could you try doing a find/replace for the tab characters, and replace with four spaces? If there are any tabs, that's definitely at least one of the problems.

                             

                            If that still doesn't work, you could remove the sensitive info (passwords, change hostnames if you like, etc) and attach it to this thread, and I can take a look and see if I can figure out what might be tripping up the yaml parser.

                            • 11. Re: VizAlerts error
                              Santosh Adari

                              Thanks for verifying, i have removed the tab and repalced with 4 spaces but still see same issue.

                               

                              Attached yaml fiel for your reference.

                              • 12. Re: VizAlerts error
                                Matt Coles

                                Hey Santosh, I took a look and there were still a few tabs on line 11:

                                 

                                tabs.png

                                 

                                Let me know if removing those fixes it for you. I scanned through the rest of the file and it looks good to me, so hopefully that's the only issue.