0

Hello guys i have this directory

C:\Python27
--C:\Python27\pysec-master
----C:\Python27\pysec-master\pysec
     __init__.py
     example.py
     models.py
     xbrl.py
     xbrl_fundamentals.py

I am trying to run this command

from pysec import xbrl

and i am getting an error:

Traceback (most recent call last):
  File "<pyshell#17>", line 1, in <module>
    from pysec import xbrl
ImportError: No module named pysec

How is this possible? This code was written by a professional and you can clearly see the file named pysec

2
  • 2
    You should read about module search path first. Commented Apr 13, 2014 at 22:50
  • 1
    Is C:\Python27\pysec-master in sys.path ? Nope? Add it to sys.path as sys.path.append(r'C:\Python27\pysec-master') Commented Apr 14, 2014 at 0:12

1 Answer 1

1

The question has been answered by mskimm in the comments sections and runs as:

Is C:\Python27\pysec-master in sys.path ? Nope? Add it to sys.path as sys.path.append(r'C:\Python27\pysec-master')

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.