Installation trouble of deluge on nas4free/FreeBSD 9.2/9.1

Hello everbody,

if you are trying to install deluge on a FreeBSD / Nas4Free 9.2 (FreeBSD 9.2-RELEASE-p3 (kern.osreldate: 902001) (9.2.0.1 – Shigawire (revision 943))).
and goal is to run the most current version of deluge in a console only / WebUI fashion. And you do not want to run the application inside a jail. During the installation you will run into trouble as detailed below. The installation does not seem to go through properly.

This is what the outputs looks like:

pkg_add -r deluge >& install.log:

1
2
pkg_add: command '/usr/bin/printf '1a\n./deluge-1.3.6-py2.7.egg\n.\nw\nq\n' |  /bin/ed /usr/local/lib/python2.7/site-packages/easy-install.pth' failed
Done.

deluged -L error -l firststartlog.log >& firststart.out:
firststartlog.log was empty
firststart.out:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
[ERROR   ] 10:55:34 main:237 No module named zope.interface
Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/deluge-1.3.6-py2.7.egg/deluge/main.py", line 229, in start_daemon
from deluge.core.daemon import Daemon
File "/usr/local/lib/python2.7/site-packages/deluge-1.3.6-py2.7.egg/deluge/core/daemon.py", line 39, in <module>
from twisted.internet import reactor
File "/usr/local/lib/python2.7/site-packages/twisted/internet/reactor.py", line 37, in <module>
from twisted.internet import default
File "/usr/local/lib/python2.7/site-packages/twisted/internet/default.py", line 56, in <module>
install = _getInstallFunction(platform)
File "/usr/local/lib/python2.7/site-packages/twisted/internet/default.py", line 52, in _getInstallFunction
from twisted.internet.selectreactor import install
File "/usr/local/lib/python2.7/site-packages/twisted/internet/selectreactor.py", line 14, in <module>
from zope.interface import implements
ImportError: No module named zope.interface

Then try  “easy_install zope.interface” 

But now trying to start the deluge-web fails: “deluge-web >& deluge-web.out”

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Traceback (most recent call last):
File "/usr/local/bin/deluge-web", line 9, in <module>
load_entry_point('deluge==1.3.6', 'console_scripts', 'deluge-web')()
File "/usr/local/lib/python2.7/site-packages/deluge-1.3.6-py2.7.egg/deluge/ui/web/web.py", line 138, in start
web.start()
File "/usr/local/lib/python2.7/site-packages/deluge-1.3.6-py2.7.egg/deluge/ui/web/web.py", line 107, in start
import server
File "/usr/local/lib/python2.7/site-packages/deluge-1.3.6-py2.7.egg/deluge/ui/web/server.py", line 59, in <module>
from deluge.ui.web.auth import Auth
File "/usr/local/lib/python2.7/site-packages/deluge-1.3.6-py2.7.egg/deluge/ui/web/auth.py", line 61, in <module>
from deluge.ui.web.json_api import JSONComponent, export
File "/usr/local/lib/python2.7/site-packages/deluge-1.3.6-py2.7.egg/deluge/ui/web/json_api.py", line 60, in <module>
from deluge.ui.web.common import _, compress
File "/usr/local/lib/python2.7/site-packages/deluge-1.3.6-py2.7.egg/deluge/ui/web/common.py", line 38, in <module>
from mako.template import Template as MakoTemplate
ImportError: No module named mako.template

Try “easy_install mako.template” 

this should fix the problems and deluge should start working again.

 

Kinect Car

 

 

De’Ranged Bot from Kazi Murtaza.

Meme.pk – Meme Pakistan

February 2, 2013  |  Software  |  , , , ,  |  No Comments  |  Share
Scroll to Infinte

Scroll to Infinte

Meme.Pk – Meme Pakistan; channel for all local memes, want to know you memes ?, I made this just because I could ROFL, actually no there are many Facebook pages out there for this sorta thing but not really a proper channel, so I came up with this pinterest type theme, with basic interface   and endless scrolling* website, where one could collect,share,like and comment, its first version is up and ready, currently I am in search of some one who could help me maintain it, as it requires a lot of time, and I was planning to open meme submission and newsletters. if you find your self on meme.pk’s Facebook Page, do like it, would appreciate all the support I get..

Cloud Ftp Client

February 2, 2013  |  Software  |  , , , ,  |  No Comments  |  Share
after login

In Action

Cloud Ftp Client, is basically web-based FTP client written in Jquery and PHP.  I made this, keeping in mind of those tricky situations when you need it and not have it, and those where your hosting is providing a lame file explorer, or when you need to transfer files to your web hosting account or any other remote server, and you are using computers at some other place, where you do not have desktop FTP client installed, this could help you there. Although this is still in alpha mode, its ready with basic features, I am thinking of new features to add when I find some time; for now it supports one ftp account, it does not save any login details, traverses through directories,display’s current PWD, make new folders, make directory, move it, copy it and delete it.

Communication Mediums: Arduino WiFi, RN-42 Bluetooth, Netduino Ethernet

Hello, I have gotten my hands on couple of communication devices which could be used for android and Arduino/ Netduino communication, first RN-42 SMD bought from robotics.pk – link, Arduino WiFi Shield also bought from robotics.pk – link and third is Netduino it self which comes with Ethernet shield built-in, and Netduino is given to me by my teacher for educational purposes only, sad cant keep it.

Any ways lets start of with, RN-42 SMD is fairly cheap comparatively to others available for sale on spark fun  and is very easy to use you just need 4 connections VCC(3.3v),GND,RX and TX and you are done and by default RN-42 runs on 115200 braud rate, I found this to be very cheap and easy to use although for making connections on the smd, could be stressing, you would need small and steady hands, after making connections and connecting it to my Arduino Mega 2560, I used my serial Bluetooth android app and data transfer was done perfectly and fast, and range was acceptable, about 50 to 60 feet. it is perfect fit for short range, battery powered application.

Second device is WiFi Shield, which lets Arduino board connect to the internet using the 802.11 wireless specification and comes with a micro-SD card socket for saving of html pages and data logging,  we could either use the WiFi Shield as Server or Client and in my case I use it as a server, although Arduino cant process anything above HTML and JavaScript but we can do with these all so well, with WiFi Shield, we use Get and Post methods – (which I will explain in next post how?) to send and receive data from Arduino, from then on its same as serial monitor or Bluetooth. So from my android I send a request on the ip which is assigned to WiFi Shield through DHCP, request could be Get or Post and Arduino executes that request.

Arduino and WiFi Shield : Controlling my room lights from Kazi Murtaza on Vimeo.

Third device which is Netduino in-built Ethernet Shield, I have not gotten around to configure it yet, but will do it next. I feel the results will be same as Arduino WiFi Shield.

So in end I realized one thing, WiFi Shield is a bit buggy, sometimes requests in buffer of Arduino don’t really execute and if they do its 4-5 sec delay, I guess it takes time to process the request and its fairly new so needs a firmware update, so WiFi shield is not recommended for on second execution for example like WiFi controlled car, for such projects Bluetooth should be preferred, and for projects such as Home Automation and such WiFi is ideal.

 

 

things

My Jarvis

Jarvis, the one from iron man movie, Yes, Digital Life Assistance crazy idea for hobby project, right ? well we have seen many different kind’s of implementation’s in hope’s of achieving what that rich bastard has, but if we were to have it, we must first have platform to build upon, as far as I can see we need a system which is capable of achieving tasks in real world and virtual world, so to start off my first task is controlling the lights with Arduino, don’t worry I will be taking it slow. Idea, if it was not clear above,  idea is to use Arduino without spending a lot of money(very crucial) to control devices such as bulbs, fans and stuff,  I plan on using some sort of communication shield, When done it will send some MESSEAGE(not really clear on that) to Arduino, Arduino will move some relays and give me back a  response, toggling devices.

next post will be about requirements and basic concept of controlling a device through relay.

Arduino: toggling leds through SERIAL monitor

ok here is a sample code which receives data from serial and toggles devices to test it you can plug in led’s to test it,

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//for keeping the current status of leds
int status1 = 0;
int status2 = 0;
int status3 = 0;
int status4 = 0;
//leds connected to Arduino int pin1 = 2;
int pin2 = 4;
int pin3 = 6;
int pin4 = 8;
void setup() {
//open serial ports
Serial.begin(9600);
Serial.println("Serial Ready.");
Serial.println("Waiting...");
//open led ports
pinMode(pin1, OUTPUT);
pinMode(pin2, OUTPUT);
pinMode(pin3, OUTPUT);
pinMode(pin4, OUTPUT);
}
void loop() {
//keep the incoming byte, in readByte
int readByte;
boolean readSomething = false;
//read serial data
while(Serial.available() > 0 ){
readByte =  Serial.read();
readSomething = true;
Serial.println(readByte);
}
//if something was read toggle the selective device
if(readSomething){
readSomething = false;
if(readByte==1){ status1^=1; digitalWrite(pin1,status1);}
if(readByte==2){ status2^=1; digitalWrite(pin2, status2);}
if(readByte==3){ status3^=1; digitalWrite(pin3, status3);}
if(readByte==4){ status4^=1; digitalWrite(pin4, status4);}
}// status^=1 is xoring if its 0 it will be 1 and if its 1 it will be 0..
}