Why can't python find the Module inside my computer - python

from sys import path
path.append("/Users/paulb/Downloads/twsapi_macunix/IBJts/source/pythonclient/ibapi")
from ibapi.client import EClient
Getting the error
ModuleNotFoundError: No module named 'ibapi'
I have used this style of path.append() on a different computer and it has worked, but I can't get it running on the Mac. Anyone have any suggestions on what I am doing wrong / a different way to get python looking in the folder that I want it to? Thanks

Related

No module named Lib.header

Hi so im currently playing around with apis and im trying to import the module "Lib.header"
Or more so the "Agent" from it although it seems to not be working.
This is the error I am currently getting
from lib.header.header import agent
ModuleNotFoundError: No module named 'lib.header'
And here is the code
from lib.header.header import agent
Where am I going wrong? I tried looking up for an hour straight how to install that specific module but there is nothing! Please help me find a solution to what is wrong thank you.

Python Pandas.tests.extension Module Not Found

I'm quite new to python and have been trying to run code for someone's project. However, it kept giving me the ModuleNotFound error message that says - "No module name 'pandas.tests.extension.numpy_' " in the ubuntu terminal.
Inside the code itself, the import statement is
from pandas.tests.extension.numpy_.test_numpy_nested import np
I do have the pandas module installed. Do you guys know what the issue could be and how to fix this? Thank you
Terminal and import line screenshot
Use two import lines
import pandas.tests.extension
import numpy_.test_numpy_nested as np

Python not able to import any module

I don't know whether I've just installed them wrong or there's another problem. I installed the ebay sdk but whenever I try to import it I get
ModuleNotFoundError: No module named 'ebaysdk'
Are there any common problems with this I could check for a solution? It shouldn't be the code as I copied it from the example code off the website.
Thanks for any help.
P.S I'm using 3.6

Import modules created locally

I am trying to learn how to import modules in python that are created locally. Below is a module that I created and saved in the python folder on my local disk.
When I try to call this module in another piece of code, I get an error-
I am using Jupyter notebook and both the module and code calling the module are in the same directory.
Can someone advise what I am doing wrong here?
can you try this?
import sys
sys.path.append('C:/Users/hchopra/Desktop/Python-Folder')
import myModule as m
m.fish()

How do I get a particular python module to work in Anaconda?

I don't have a lot of programming experience, so please try to keep answers relatively noob-friendly! :) Basically, I have a Python...library, I guess? or module? that I need to run in Spyder through Anaconda. This seems to be a very obscure module called PySPM, used for analyzing scanning probe microscopy data, that I received from a colleague my lab collaborates with. When I try to run a piece of software which uses this module, it gives this error:
ImportError: No module named 'PySPM.io'
The code itself which triggers this reads as follows:
from os import path
from PySPM.io.Translators.Utils import uiGetFile
from PySPM.io.Translators.BEPSndfTranslator import BEPSndfTranslator
from PySPM.io.Translators.BEodfTranslator import BEodfTranslator
from PySPM.analysis.BESHOFitter import BESHOFitter
The first line that says from PySPM.io.Translators.Utils import uiGetFile is what's triggering the error. I'm really stuck scratching my head here. What's going on and how can I solve it?
Pycroscopy is the (thoroughly) reorganized version of PySPM.
#Martensite try:
$ pip install pycroscopy

Categories