veles icon indicating copy to clipboard operation
veles copied to clipboard

ImportError: No module named 'veles'

Open 0x746461 opened this issue 8 years ago • 7 comments

Installed on a fresh upgrade to Sierra 10.12.6 macbook pro ~2013

---- snip ----

Trying to start a new server... working directory: /Applications/veles.app/Contents/Resources/veles-server python script name: srv.py python interpreter executable: /Applications/veles.app/Contents/MacOS/../Resources/veles-server/venv/bin/python3 arguments: srv.py --cert-dir /Users/halon/Library/Application Support/Codisec/Veles veles+ssl://@127.0.0.1:3135 /Users/halon/Library/Application Support/Codisec/Veles/veles.vdb

Waiting for a new server to start... Process of locally created server started. Traceback (most recent call last): File "srv.py", line 22, in from veles.server.conn import AsyncLocalConnection ImportError: No module named 'veles' Process of locally created server finished. Exit code: 1.

0x746461 avatar Sep 08 '17 14:09 0x746461

Temporary workaround: upgrade python to 3.6.

mkow avatar Sep 08 '17 15:09 mkow

Same problem for me but on BlackArch (Rolling System) I tried to start it with python3.6 that did not solve my prob. I took veles from BlackArch repository. Wanna try to build it from source.

(Using source builded with Python 3.6 is working)

NogradThGin avatar Dec 09 '17 21:12 NogradThGin

We didn't put Veles into BlackArch repo, so no idea what exactly is there ;) We officially support only building from master or downloading the most recent release (https://github.com/codilime/veles/releases; the current one is pretty old, so it's better to build it from the repo).

mkow avatar Dec 09 '17 21:12 mkow

I just ran into this same error. Running Mojave 10.14.3 with python 3.7.2 installed.

reinecke avatar Mar 20 '19 17:03 reinecke

I just had it on startup too.

zebambam avatar Apr 04 '19 21:04 zebambam

Same issue in catalina, still around. :-/

psifertex avatar Apr 05 '20 00:04 psifertex

I ran into the same error (OS 14.4, python 3.7.x), here's my workaround:

  1. cd /Applications/veles.app/Contents/Resources/veles-server
  2. mv venv venv_old
  3. python3 -m venv venv
  4. source venv/bin/activate
  5. download the requirements.txt from Veles' GitHub repo and pip install -r PATH_TO_REQ_FILE/requirements.txt
  6. mv venv_old/lib/python3.6/site-packages/veles venv/lib/python3.7/site-packages/
  7. mv venv_old/lib/python3.6/site-packages/veles-0.0.1.dev635-py3.6.egg-info/ venv/lib/python3.7/site-packages/
  8. launch veles.app

But now there's a new problem, but at least not linked to missing modules.

FYI, now I'm getting this error : PermissionError: [Errno 13] error while attempting to bind on address ('127.0.0.1', 1): permission denied

Edit: nevermind the new error: changing the port number to something else than the default (1 in my case) did it (e.g. 10000)

ssavary avatar Apr 20 '20 17:04 ssavary