Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial

Cam Treschuk
7,378 PointsRandom module not working
In Workspaces, I imported the random module in a file. But when I try to run it, it gives me an error message. The error looks something like this:
File "/usr/local/lib/python3.6/random.py", line 42, in <module>
from math import log as _log, exp as _exp, pi as _pi, e as _e, ceil as _ceil
ImportError: cannot import name 'log'
1 Answer

KRIS NIKOLAISEN
54,974 PointsDo you have a file named math.py in your workspace?
Cam Treschuk
7,378 PointsCam Treschuk
7,378 PointsYeah I did, thanks.