GithubHelp home page GithubHelp logo

Comments (6)

gotthardp avatar gotthardp commented on June 9, 2024

The module isn't installed properly. Did you run sudo python3 setup.py install or sudo make install?

from python-mercuryapi.

atlasagencyca avatar atlasagencyca commented on June 9, 2024

Fixed : It works when I run python3 test.py

from python-mercuryapi.

kodalisitaram avatar kodalisitaram commented on June 9, 2024

Hi, I followed the installation instructions on my RaspberryPi and for some reason it couldnt find the module.
pi@raspberrypi:/TM/PY/python-mercuryapi $ make
make -C mercuryapi-1.31.0.33/c/src/api
make[1]: Entering directory '/home/pi/TM/PY/python-mercuryapi/mercuryapi-1.31.0.33/c/src/api'
SOURCE_DIR=lib PATCH_DIR=lib XML_DIR=lib sh lib/install_LTKC.sh NULL lib
lib/LTK directory already exists
cd lib/LTK/LTKC/Library; make CC="cc -Ilib/LTK/LTKC/Library -Ilib/LTK/LTKC/Library/LLRP.org -I. -g -Wall -fPIC" STRIP="strip"
make[2]: Entering directory '/home/pi/TM/PY/python-mercuryapi/mercuryapi-1.31.0.33/c/src/api/lib/LTK/LTKC/Library'
cd LLRP.org; make all
make[3]: Entering directory '/home/pi/TM/PY/python-mercuryapi/mercuryapi-1.31.0.33/c/src/api/lib/LTK/LTKC/Library/LLRP.org'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/pi/TM/PY/python-mercuryapi/mercuryapi-1.31.0.33/c/src/api/lib/LTK/LTKC/Library/LLRP.org'
make[2]: Leaving directory '/home/pi/TM/PY/python-mercuryapi/mercuryapi-1.31.0.33/c/src/api/lib/LTK/LTKC/Library'
make[1]: Leaving directory '/home/pi/TM/PY/python-mercuryapi/mercuryapi-1.31.0.33/c/src/api'
mkdir -p build/mercuryapi/include
find mercuryapi-/c/src/api -type f -name '.h' ! -name '_imp.h' | grep -v 'ltkc_win32' | xargs cp -t build/mercuryapi/include
mkdir -p build/mercuryapi/lib
find mercuryapi-
/c/src/api -type f -name '.a' -or -name '.so.1' | xargs cp -t build/mercuryapi/lib
/usr/bin/python3 setup.py build
running build
running build_ext
pi@raspberrypi:
/TM/PY/python-mercuryapi $ /usr/bin/python3 test.py run
Traceback (most recent call last):
File "test.py", line 4, in
import mercury
ImportError: No module named 'mercury'
pi@raspberrypi:~/TM/PY/python-mercuryapi $ /usr/bin/python3 test.py
Traceback (most recent call last):
File "test.py", line 4, in
import mercury
ImportError: No module named 'mercury'

from python-mercuryapi.

matiasz8 avatar matiasz8 commented on June 9, 2024

Maybe you should type: "sudo make install", and then execute:

python test.py or
python3 test.py

Try boths!

from python-mercuryapi.

garysenter avatar garysenter commented on June 9, 2024

I am stuck at ImportError: No module named 'mercury'.

I did the instructions for installation, then the manual instructions. and get hung up at the CD python-mercuryapi step as that directory does not exist. What am i doing wrong?

from python-mercuryapi.

gotthardp avatar gotthardp commented on June 9, 2024

The python-mercuryapi directory is what you get after https://github.com/gotthardp/python-mercuryapi.git. If the problem persists, please open a new issue and let me know what OS you have and what exactly you did.

from python-mercuryapi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.