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 pdu_encoding #18

Closed
kerr-huang opened this issue Jan 8, 2015 · 5 comments
Closed

No module named pdu_encoding #18

kerr-huang opened this issue Jan 8, 2015 · 5 comments

Comments

@kerr-huang
Copy link

from smpp.pdu.pdu_encoding import PDUEncoder
Traceback (most recent call last):
File "", line 1, in
ImportError: No module named pdu_encoding

@theduderog
Copy link
Contributor

How did you install it? pip? easy_install? git clone?

@kerr-huang
Copy link
Author

C:\Users\Kerr>pip install smpp.pdu
Downloading/unpacking smpp.pdu
Downloading smpp.pdu-0.3.tar.gz
Running setup.py (path:c:\users\kerr\appdata\local\temp\pip_build_Kerr\smpp.pd
u\setup.py) egg_info for package smpp.pdu

file smpp\pdu.py (for module smpp.pdu) not found

Requirement already satisfied (use --upgrade to upgrade): enum in c:\python27\li
b\site-packages\enum-0.4.4-py2.7.egg (from smpp.pdu)
Requirement already satisfied (use --upgrade to upgrade): setuptools in c:\pytho
n27\lib\site-packages (from enum->smpp.pdu)
Installing collected packages: smpp.pdu
Running setup.py install for smpp.pdu
file smpp\pdu.py (for module smpp.pdu) not found

file smpp\pdu.py (for module smpp.pdu) not found
file smpp\pdu.py (for module smpp.pdu) not found
file smpp\pdu.py (for module smpp.pdu) not found

Successfully installed smpp.pdu
Cleaning up...

C:\Users\Kerr>python
Python 2.7.8 (default, Jun 30 2014, 16:08:48) [MSC v.1500 64 bit (AMD64)] on win
32
Type "help", "copyright", "credits" or "license" for more information.

import binascii
import StringIO
from smpp.pdu.pdu_encoding import PDUEncoder
Traceback (most recent call last):
File "", line 1, in
ImportError: No module named pdu_encoding

@theduderog
Copy link
Contributor

Hmm...I've never tried it on Windows. I'm afraid I don't know what the
issue is.

On Sun, Jan 11, 2015 at 11:48 PM, kerr-huang [email protected]
wrote:

C:\Users\Kerr>pip install smpp.pdu
Downloading/unpacking smpp.pdu
Downloading smpp.pdu-0.3.tar.gz
Running setup.py
(path:c:\users\kerr\appdata\local\temp\pip_build_Kerr\smpp.pd
u\setup.py) egg_info for package smpp.pdu

file smpp\pdu.py (for module smpp.pdu) not found

Requirement already satisfied (use --upgrade to upgrade): enum in
c:\python27\li
b\site-packages\enum-0.4.4-py2.7.egg (from smpp.pdu)
Requirement already satisfied (use --upgrade to upgrade): setuptools in
c:\pytho
n27\lib\site-packages (from enum->smpp.pdu)
Installing collected packages: smpp.pdu
Running setup.py install for smpp.pdu
file smpp\pdu.py (for module smpp.pdu) not found

file smpp\pdu.py (for module smpp.pdu) not found
file smpp\pdu.py (for module smpp.pdu) not found
file smpp\pdu.py (for module smpp.pdu) not found

Successfully installed smpp.pdu
Cleaning up...

C:\Users\Kerr>python
Python 2.7.8 (default, Jun 30 2014, 16:08:48) [MSC v.1500 64 bit (AMD64)]
on win
32
Type "help", "copyright", "credits" or "license" for more information.

import binascii
import StringIO

from smpp.pdu.pdu_encoding import PDUEncoder
Traceback (most recent call last):
File "", line 1, in
ImportError: No module named pdu_encoding


Reply to this email directly or view it on GitHub
#18 (comment).

@kerr-huang
Copy link
Author

Thank Theduderog, I just modify smpp/init.py as follows and it works fortunately.

#import('pkg_resources').declare_namespace(name)
all=['pdu']

@theduderog
Copy link
Contributor

Great. Glad you got it working. If this will work for other platforms, I'd be happy to take a pull request

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