Code Monkey home page Code Monkey logo

Comments (5)

slav0nic avatar slav0nic commented on May 26, 2024

what if mark url as unicode? like

app.run(url=u"ws://%s:80/ws" % SERVER, debug=False, debug_wamp=False)

from crossbar-examples.

lyn5466 avatar lyn5466 commented on May 26, 2024

Oh! This works! Thanks!

from crossbar-examples.

dkdndes avatar dkdndes commented on May 26, 2024

Hi, I did the same but now I get the following error:

python client.py
Connected
Entering stats loop ..
Tick
Error in stats loop: 'module' object has no attribute 'phymem_usage'

import psutil
dir (psutil)
['AF_LINK', 'AccessDenied', 'CONN_CLOSE', 'CONN_CLOSE_WAIT', 'CONN_CLOSING', 'CONN_ESTABLISHED', 'CONN_FIN_WAIT1', 'CONN_FIN_WAIT2', 'CONN_LAST_ACK', 'CONN_LISTEN', 'CONN_NONE', 'CONN_SYN_RECV', 'CONN_SYN_SENT', 'CONN_TIME_WAIT', 'Error', 'NIC_DUPLEX_FULL', 'NIC_DUPLEX_HALF', 'NIC_DUPLEX_UNKNOWN', 'NoSuchProcess', 'Popen', 'Process', 'STATUS_DEAD', 'STATUS_DISK_SLEEP', 'STATUS_IDLE', 'STATUS_LOCKED', 'STATUS_RUNNING', 'STATUS_SLEEPING', 'STATUS_STOPPED', 'STATUS_TRACING_STOP', 'STATUS_WAITING', 'STATUS_WAKING', 'STATUS_ZOMBIE', 'TimeoutExpired', 'ZombieProcess', '_POSIX', '_PY3', '_TOTAL_PHYMEM', '_WINDOWS', 'all', 'author', 'builtins', 'doc', 'file', 'name', 'package', 'path', 'version', '_assert_pid_not_reused', '_common', '_compat', '_last_cpu_times', '_last_cpu_times_2', '_last_per_cpu_times', '_last_per_cpu_times_2', '_pmap', '_psosx', '_psplatform', '_psposix', '_psutil_osx', '_psutil_posix', '_timer', 'boot_time', 'callable', 'collections', 'cpu_count', 'cpu_percent', 'cpu_times', 'cpu_times_percent', 'disk_io_counters', 'disk_partitions', 'disk_usage', 'errno', 'functools', 'long', 'net_connections', 'net_if_addrs', 'net_if_stats', 'net_io_counters', 'os', 'pid_exists', 'pids', 'process_iter', 'pwd', 'signal', 'subprocess', 'swap_memory', 'sys', 'test', 'time', 'users', 'version_info', 'virtual_memory', 'wait_procs']
psutil.version
'3.2.2'

I beleive you need to install a older version - is that correct?

from crossbar-examples.

daninarv avatar daninarv commented on May 26, 2024

psutil.phymem_usage() was deprecated. Try with psutil.virtual_memory() instead.

from crossbar-examples.

goeddea avatar goeddea commented on May 26, 2024

(ok, looking at this somewhat late...) - Not enough information to replicate. Closing as is.

@dkdndes - If the problem persists then please re-open and add more information.

from crossbar-examples.

Related Issues (20)

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.