By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,639 Members | 2,262 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,639 IT Pros & Developers. It's quick & easy.

Call a funtion from another file

P: 1
Hey! I have two files justatry.py and hydr.py I want to call a function named Transform from hydr.py in justatry.py I am using this code:
import hydr
hydr.Transform

but while running it shows except ValueError
Please tell me how can I fix it.
Jul 16 '14 #1
Share this Question
Share on Google+
1 Reply


bvdet
Expert Mod 2.5K+
P: 2,851
There is no way we can determine the cause of the error because you have not provided any information. Here's an example of a ValueError:
Expand|Select|Wrap|Line Numbers
  1. >>> math.acos(5)
  2. Traceback (most recent call last):
  3.   File "<interactive input>", line 1, in <module>
  4. ValueError: math domain error
  5. >>> 
Jul 17 '14 #2

Post your reply

Sign in to post your reply or Sign up for a free account.