Comments (6)
The module isn't installed properly. Did you run sudo python3 setup.py install
or sudo make install
?
from python-mercuryapi.
Fixed : It works when I run python3 test.py
from python-mercuryapi.
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/TM/PY/python-mercuryapi $ /usr/bin/python3 test.py run
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:
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.
Maybe you should type: "sudo make install", and then execute:
python test.py or
python3 test.py
Try boths!
from python-mercuryapi.
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.
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)
- Anyone ported this to Micropython HOT 1
- TypeError: No such file or directory (Raspberry Pi)
- Windows Installer based on Python3.6 (32 bits)
- reader.get_connected_ports() always return nothing
- Timeout error - M6e Nano and Raspberry Pi Zero W HOT 4
- Why can't connect over ip+port ?? HOT 2
- Lock & unlock tag ? HOT 2
- SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats HOT 3
- Installation error due to dead link of Jadak API HOT 6
- make error HOT 2
- Python freezes when reader unavailable HOT 2
- Support for powermode HOT 1
- error: subprocess-exited-with-error HOT 4
- Whether to support the chip of E710? HOT 3
- mercuryapi_osx.patch is out of sync with the SDK
- can't build on macos with make
- Can you please update the 'pip install python-mercuryapi' for the new jadak mercury api? HOT 1
- Help reading the tag data HOT 1
- Using this wrapper on new M7E pico dev kit HOT 2
- Question!! How to increase the tag read range? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-mercuryapi.