GithubHelp home page GithubHelp logo

pystuck's People

Contributors

alonho avatar bradreaves avatar edison12a avatar edschofield avatar ericcousineau-tri avatar eternityforest avatar masayuki038 avatar mgedmin avatar popen2 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

pystuck's Issues

Fiddly to use in a multiprocessing context

Basically, if you have a multithreaded application (using real threads, e.g. the multiprocessing module), they all try to open the same port, and you get crashes.

Basically, it seems pystuck assumes it's installed into only one process. This is /probably/ not really something that can be fixed easily, given the current system architecture, but it's a good thing to note clearly in the documentation, if anything.

Restore unix_socket functionality

In #7, the --unix_socket feature recently added was removed, as it generated an import error from rpyc.

It was suspected that rpyc had removed the API, however it was actually not-yet-released, so in master only. At the time, pystuck was marked to require rpyc == 3.2.3 but following 760b3d8 it actually required a master build of rpyc with the addition of unix_connect support in rpyc via tomerfiliba-org/rpyc@2b7eb0c .

This feature was not released until much later via rpyc 3.4.4: tomerfiliba-org/rpyc@d71443f .

Testing with current rpyc shows unix_socket should work, so I propose to restore this feature.

Providing alternate port value on the command line fails

https://github.com/alonho/pystuck/blob/master/pystuck/__init__.py#L31

The arg parser does not convert this to a port int value, you need to add type=int to the above.

pystuck --port=5406
Traceback (most recent call last):
  File "/usr/local/bin/pystuck", line 8, in <module>
    load_entry_point('pystuck==0.4', 'console_scripts', 'pystuck')()
  File "build/bdist.linux-x86_64/egg/pystuck/__init__.py", line 39, in main

  File "build/bdist.linux-x86_64/egg/pystuck/__init__.py", line 17, in run_client

  File "/usr/local/lib/python2.7/site-packages/rpyc-3.2.3-py2.7.egg/rpyc/utils/classic.py", line 65, in connect
    return factory.connect(host, port, SlaveService, ipv6 = ipv6)
  File "/usr/local/lib/python2.7/site-packages/rpyc-3.2.3-py2.7.egg/rpyc/utils/factory.py", line 89, in connect
    s = SocketStream.connect(host, port, ipv6 = ipv6)
  File "/usr/local/lib/python2.7/site-packages/rpyc-3.2.3-py2.7.egg/rpyc/core/stream.py", line 114, in connect
    return cls(cls._connect(host, port, **kwargs))
  File "/usr/local/lib/python2.7/site-packages/rpyc-3.2.3-py2.7.egg/rpyc/core/stream.py", line 92, in _connect
    s.connect((host, port))
  File "/usr/local/lib/python2.7/socket.py", line 222, in meth
    return getattr(self._sock,name)(*args)
TypeError: an integer is required

Ipython 5.0 support

So all the Ipython prompt stuff will break on 5.0 since they reworked the API and started using prompt-toolkit.

It might actually be worth it to write a custom prompt toolkit shell app that's more specific to this project's needs?

For right now we need to limit to ipython<5.0.

license file?

I love the simplicity of using this debug stuff like multiprocessing issues or weird sync with pytorch DDP shindiggery.

However, this doesn't have an explicit license :(
I see its listing on PyPI indicates it's BSD:
https://pypi.org/project/pystuck/
image

Will submit PR that updates, if you have time!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.