Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No module named txthings.resource #22

Open
sheshna opened this issue Aug 4, 2018 · 1 comment
Open

No module named txthings.resource #22

sheshna opened this issue Aug 4, 2018 · 1 comment

Comments

@sheshna
Copy link

sheshna commented Aug 4, 2018

Hi am new to coap and python but need to use it for my project.

when i start the coap server. am having the following prob, please advise asap :(

pi@raspberrypi:~/txThings/examples $ python server.py
Traceback (most recent call last):
File "server.py", line 15, in
import txthings.resource as resource
ImportError: No module named txthings.resource

@engrjislam
Copy link

engrjislam commented Dec 19, 2018

There are 4 ways to resolve this problem

  1. copy and paste txthings to examples directory

  2. Install txthings library

      pip install txthings  
    
  3. Run setup.py as --

      python setup.py install
    

    I think option 3 is best way to install other dependencies.

  4. There could be another way if you make a requirements.txt file and put

     twisted
     txthings
     ipaddress
     service_identity
    

    save and close. Then run

    pip install -r requirements.txt   
    

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants