rajnishyadav321 / shedskin

Automatically exported from code.google.com/p/shedskin
0 stars 0 forks source link

cannot locate module: twisted #175

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Add the following to a python file.

from twisted.internet import pollreactor
pollreactor.install()
reactor = pollreactor.PollReactor()
from twisted.internet import protocol
from twisted.protocols import basic
from twisted.internet import task
from twisted.internet import reactor

What is the expected output? What do you see instead?
The expect output is not show, the expect behavour is that the module is loaded 
as required for use.

What version of the product are you using? On what operating system?
Shed Skin 0.9.2
Python 2.7.3
#53-Ubuntu SMP Thu Nov 15 10:48:16 UTC 2012 (3.2.0-34-generic x86_64)

Please provide any additional information below.
The python script runs perfectly, but fails when attempting to compile it.

Python file starts with the following

#!/usr/bin/python

from twisted.internet import pollreactor
pollreactor.install()
reactor = pollreactor.PollReactor()        
from twisted.internet import protocol
from twisted.protocols import basic
from twisted.internet import task
from twisted.internet import reactor
import re
import time
import datetime
import struct
import logging
import pg
import socket
from binascii import *
import sys
import string

Original issue reported on code.google.com by Conrad.C...@gmail.com on 7 Dec 2012 at 11:28

GoogleCodeExporter commented 9 years ago
thanks for reporting. unfortunately, shedskin only supports a subset of the 
python standard library (still, most of the imports mentioned above).

it may still be possible to combine shedskin with twisted or other unsupported 
modules, by compiling only a part of your program as an extension module 
(shedskin -e, see the documentation for details).

Original comment by mark.duf...@gmail.com on 9 Dec 2012 at 2:46