Giter VIP home page Giter VIP logo

Comments (7)

williballenthin avatar williballenthin commented on June 12, 2024

Can you provide some details about your OS? If you're able to run an Ubuntu VM, you can use the following script to do all the installation and setup for you:

https://gist.github.com/williballenthin/c14c4f960e25b8ab1cff

Otherwise, I can try to help ensure you have the environment setup correctly.

from flare-wmi.

FreePatriot avatar FreePatriot commented on June 12, 2024

Hello,

Thanks for getting back to me so quick. I'm running a, sort of, custom build of Debian Linux 8.2 (Jessie). Any thoughts on that?

All the best,

Liam P. Callaghan
Network+
(413) 441-8056

On Oct 7, 2015, at 5:38 AM, Willi Ballenthin [email protected] wrote:

Can you provide some details about your OS? If you're able to run an Ubuntu VM, you can use the following script to do all the installation and setup for you:

https://gist.github.com/williballenthin/c14c4f960e25b8ab1cff

Otherwise, I can try to help ensure you have the environment setup correctly.


Reply to this email directly or view it on GitHub.

from flare-wmi.

williballenthin avatar williballenthin commented on June 12, 2024

Ok, then there's a good chance that the script should work. I'd recommend copy/pasting the commands into a terminal one by one and ensuring they all complete successfully. Things to watch out for:

  • that it is python3.4 that you install (not sure what Jessie is on)
  • the paths used in lines 10 and 11. if they don't exist precisely as listed, see if there are files with a similar name (possibly slightly different version string) and use those

from flare-wmi.

BannersSecret avatar BannersSecret commented on June 12, 2024

FreePatriot, did you get this resolved?

@williballenthin - I am having the same error as FreePatriot. I'm running Ubuntu 14.04 x64, with Python 2.7.6. I have used the script you posted above, and am browsing to /home/user/flare-wmi/python-cim, then running:

sudo python cim.py win7 /path/to/wbem

Precise error is:

Traceback (most recent call last):
File "cim.py", line 10, in
from .common import h
ValueError: Attempted relative import in non-package

Lines 10 and 11 of cim.py:

from .common import h
from .common import LoggingObject

What should I amend these to in order for this to work for me?

Cheers!

A

from flare-wmi.

williballenthin avatar williballenthin commented on June 12, 2024

@BannersSecret cim.py is not a standalone script, and it's code is not meant to be run outside of a package. What happens if you run:

python samples/list.py win7 /path/to/wbem

from flare-wmi.

BannersSecret avatar BannersSecret commented on June 12, 2024

Thanks for coming back to me so quickly. When I run that, I get:

Traceback (most recent call last):
  File "samples/list.py", line 29, in <module>
    main(*sys.argv[1:])
  File "samples/list.py", line 22, in main
    tree = Tree(c)
  File "/usr/local/lib/python2.7/dist-packages/cim/objects.py", line 1577, in __init__
    self._object_resolver = ObjectResolver(cim, Index(cim.cim_type, cim.logical_index_store))
  File "/usr/local/lib/python2.7/dist-packages/funcy/objects.py", line 25, in __get__
    res = instance.__dict__[self.fget.__name__] = self.fget(instance)
  File "/usr/local/lib/python2.7/dist-packages/cim/cim.py", line 774, in logical_index_store
    return LogicalIndexStore(self, self._index_file_path, self.index_mapping)
  File "/usr/local/lib/python2.7/dist-packages/cim/cim.py", line 765, in index_mapping
    _, current_index_mapping = self.mappings
  File "/usr/local/lib/python2.7/dist-packages/funcy/objects.py", line 25, in __get__
    res = instance.__dict__[self.fget.__name__] = self.fget(instance)
  File "/usr/local/lib/python2.7/dist-packages/cim/cim.py", line 746, in mappings
    fp = self._current_mapping_file
  File "/usr/local/lib/python2.7/dist-packages/funcy/objects.py", line 25, in __get__
    res = instance.__dict__[self.fget.__name__] = self.fget(instance)
  File "/usr/local/lib/python2.7/dist-packages/cim/cim.py", line 739, in _current_mapping_file
    raise MissingMappingFileError()
cim.cim.MissingMappingFileError

The 'wbem' folder contains all the files extracted from that folder on the suspect machine. Have I done that right.....?

Thanks again for your help.

from flare-wmi.

williballenthin avatar williballenthin commented on June 12, 2024

Ok, great. If you're getting this error, that means the package is at least installed correctly. That's the good news. The new error is a different issue.

I'm going to migrate this question to a new issue since to separate the questions and answers provided here on GitHub. Here's the new issue: #5

from flare-wmi.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.