Comments (7)
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.
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.
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.
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.
@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.
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.
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)
- Compile Error - Win 8.1 HOT 3
- Issues decoding unicode values in metadata HOT 6
- run time error on kali with python 3.5 HOT 3
- JSON output option
- Index mapping entry count off by several hundred in some cases
- cant use timeline.py: AttributeError: type object 'CIM' has no attribute 'from_path' HOT 7
- Various python-cim examples out of date
- [Question] Support for other versions other than xp/win7 ? HOT 10
- Add license file HOT 1
- MissingMappingFileError HOT 4
- Unable to run ui.py - PyQt5.QtGui error HOT 4
- Improve CimType enum definitions based on MSDN documentation HOT 3
- CIM key segment separator seems to be \ not /
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flare-wmi.