Error: Failed to find anything that looks like a service in module XXXXX

95 views
Skip to first unread message

Matthew Versaggi

unread,
Oct 20, 2016, 10:42:54 PM10/20/16
to nameko-dev
I'm trying to run nameko on a windows 10 server, using RabbitMQ (and Erlang) for the messaging but any getting stuck at "HelloWorld" with the following error msgs:



c:\Users\Matthew\workspaces\optum\microservices\nameko>nameko run helloworld
Error: Failed to find anything that looks like a service in module 'helloworld'


c:\Users\Matthew\workspaces\optum\microservices\nameko>nameko shell
Nameko Python 2.7.11 |Anaconda 2.3.0 (64-bit)| (default, Jun 15 2016, 15:21:11) [MSC v.1500 64 bit (AMD64)] shell on win32
Broker: amqp://guest:guest@localhost
In [1]:


 In this case I didn't get the expected ">>>" prompt.

I have the RabbitMQ admin UI up, can log in and peruse the connections, channels, exchanges and queues.

I've been interrogating the web for clues for hours now, any idea of what is going wrong would be greatly appreciated.


David Szotten

unread,
Oct 21, 2016, 4:16:53 AM10/21/16
to nameko-dev
Hi Matthew,

I'm afraid none of the core devs use windows, and nameko is only tested on linux (+developed on os x). windows support isn't an explicit non-goal, but it's very possible that we are using apis or libraries that don't support windows.

It would be great if we could get to a better windows story, but i'm not sure how feasible that is in the sort term, unless someone with more windows experience is able to help. Would you consider trying a linux virtual machine or docker image?

Best,
David

foode...@gmail.com

unread,
Apr 21, 2018, 12:33:47 PM4/21/18
to nameko-dev
My suggestion is to use a docker as light VM to Linux. If you need a dockerfile for this, let me know... 

Chris Platts

unread,
May 10, 2018, 6:02:04 AM5/10/18
to nameko-dev
Hi,

I'm using nameko successfully on Windows 7 and Server 2016R2.  It didn't require any special treatment to get working, either.

There's not much to go on here to help debug, but thought I'd drop in to say it should work fine!

Try developing inside a virtualenv.  That'll keep everything local to your application.  Something like:

pip install virtualenv
mkdir myproject
cd myproject
virtualenv env
env\Scripts\activate.bat

pip install nameko
<write your service.py>

nameko run service

Cheers,

Chris

Reply all
Reply to author
Forward
0 new messages