Skip to content
This repository has been archived by the owner on Jul 6, 2024. It is now read-only.

cant use timeline.py: AttributeError: type object 'CIM' has no attribute 'from_path' #17

Open
dummys opened this issue Mar 19, 2019 · 7 comments

Comments

@dummys
Copy link

dummys commented Mar 19, 2019

No description provided.

@fatalflawburns
Copy link

I am having this issue as well. If this error is a result of my personal python set up please let me know.
Os: Win 10
Python: 3.7

@fatalflawburns
Copy link

Okay, I figured it out I think.
@dummys If you did what I did, I installed python-cim from the pip repo. That version is out of date and is missing the functions that you need. To fix that it is really easy.

  1. Go to flare-wmi/python-cim/cim/cim.py in the github repo.
  2. Copy all the data from that page. (or download it)
  3. Open what ever local file explorer you use and go to the installed location.
    • pip show cim (This will tell you where pip put the package)
    • Default path for 3.7 on windows should be C:\users"Your Username"\appdata\local\programs\python\python37\lib\site-packages\cim\cim.py
  4. open up cim.py with your favorite text/code editor.
    5)Paste all the data from step one into the file and save. (or if you downloaded it replace the original with the download)

This should work. Or at least i am running it now with out errors. This is my best suggestion.

@Gizmo44z
Copy link

Confirmed that worked for me as well.

@williballenthin
Copy link
Contributor

sounds like i need to update the library in pypi (python-registry, too). i'll try to do this in the next few days.

thanks @fatalflawburns for documenting the fix here!

@aszurnasirpal
Copy link

Hi,
@williballenthin any chance to get this library updated? Presented by @fatalflawburns workaround doesn't works on my system unfortunately.

@Kr3shnik
Copy link

spoiler alert, its still not fixed

@Kr3shnik
Copy link

cp flare-wmi/python-cim/cim/*.py ./env/lib/python3.8/site-packages/cim/
this command fixed it for me,
beaware it might not work for everybody since its a pretty scuffed fix
im using ubuntu-focal running on vagrant and the whole thing is on a python venv

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants