nx-python / PyNX

Entry point for nx-python, the Python ecosystem for the Switch
https://nx-python.readthedocs.io/
ISC License
195 stars 20 forks source link

ImportError: No module named '_signal' #9

Closed niemasd closed 6 years ago

niemasd commented 6 years ago

Can trigger with the following:

import signal

Error:

  File "/switch/PyNX/lib/python3.5/signal.py", line 1, in <module>
    import _signal
ImportError: No module named '_signal'
elnardu commented 6 years ago

As I recall switch's os does not have signals, so there is no point in using signal module

On Wed, Aug 8, 2018, 5:44 AM Niema Moshiri notifications@github.com wrote:

Can trigger with the following:

import signal

Error:

File "/switch/PyNX/lib/python3.5/signal.py", line 1, in import _signal ImportError: No module named '_signal'

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/nx-python/PyNX/issues/9, or mute the thread https://github.com/notifications/unsubscribe-auth/AIlQWRtUq9PXjEFSxhqJ9-2bFmapTv_jks5uOiZVgaJpZM4VzDZj .

niemasd commented 6 years ago

I was trying to set up pyftpdlib to try to have a PyNX-backed FTP server

elnardu commented 6 years ago

You will have to manually remove every usage of subprocess and signal modules in the source