Python Forum
'module' object has no attribute 'utilities'
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
'module' object has no attribute 'utilities'
#1
Trying to implement ytini (yt for Houdini) Python framework.
http://www.ytini.com/

Resolved most install erros but am still getting the following when I load a datfile

Not sure if this might be related to some configuration for ytini or if its more of a Python specific error.

Quote:Error
Python error: Traceback (most recent call last):
File "", line 14, in
File "/home/jim/.local/lib/python2.7/site-packages/yt/__init__.py", line 44, in
import yt.utilities.physical_constants as physical_constants
AttributeError: 'module' object has no attribute 'utilities

Can any Python experts suggest any troubleshooting steps?

When I open the actual yt directory I DO see a folder named utilities. Confused why the error is mentioning 'attribute'? imgur.com/a/9BScq8Q
Reply
#2
open python interpreter from command line.
get the help file for yt, it will list all available methods and classes
if you run python from command line using:
python
import the houdini package and type help. You should see the method that you are trying to use, along with how to use it.
import yt
help(yt)
I don't have this package installed (although it looks very interesting), so can't try this.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to run utilities from a Python package? LugosisGhost 1 430 Dec-27-2023, 12:00 PM
Last Post: Larz60+
  getpass.getpass() results in AttributeError: module 'os' has no attribute 'O_NOCTTY' EarthAndMoon 4 765 Oct-03-2023, 02:00 PM
Last Post: deanhystad
  AttributeError: '_tkinter.tkapp' object has no attribute 'username' Konstantin23 4 1,668 Aug-04-2023, 12:41 PM
Last Post: Konstantin23
  Python: AttributeError: 'PageObject' object has no attribute 'extract_images' Melcu54 2 3,862 Jun-18-2023, 07:47 PM
Last Post: Melcu54
  Object attribute behavior different in 2 scripts db042190 1 728 Jun-14-2023, 12:37 PM
Last Post: deanhystad
  cx_oracle Error - AttributeError: 'function' object has no attribute 'cursor' birajdarmm 1 2,323 Apr-15-2023, 05:17 PM
Last Post: deanhystad
  working with TLV module Object Jennifer_Jone 3 1,143 Mar-14-2023, 07:54 PM
Last Post: Jennifer_Jone
  Pandas AttributeError: 'DataFrame' object has no attribute 'concat' Sameer33 5 5,583 Feb-17-2023, 06:01 PM
Last Post: Sameer33
  WebDriver' object has no attribute 'find_element_by_css_selector rickadams 3 5,899 Sep-19-2022, 06:11 PM
Last Post: Larz60+
  Merge htm files with shutil library (TypeError: 'module' object is not callable) Melcu54 5 1,583 Aug-28-2022, 07:11 AM
Last Post: Melcu54

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020