You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Farnsworth is entirely python2. It should be ported to python3. I ran it through 2to3, but there are other conversions necessary - for example, converting instances of string.letters to string.ascii_letters.
I found a much lazier solution was to modify /home/{user}/.virtualenvs/cgc/bin/farnsworth to call python2 instead. Change the initial #! from python3 to /usr/bin/which python2 (or point it to a specific binary if you like).
This worked on Ubuntu 16.04.5
Also, meister will need to be similarly modified.
However, the DARPA VMs are no longer available. Does anyone have a backup?
Unfortunately, this whole project is here mostly for archival purposes. We have some other stuff in the mix as a replacement, but nothing really ready yet.
I try to setup mechaphish.
So, I try to follow mecha-docs.
On setting up DB, there's an error.
workon cgc
cd farnsworth
cp .env.example .env
./setupdb.sh
(cgc) root@john-SVP1322XPKB:/home/john/angr-dev/farnsworth# ./setupdb.sh
[] dropdb -U postgres -h localhost -p 5432 --if-exists farnsworth
[] createdb -U postgres -h localhost -p 5432 farnsworth
Traceback (most recent call last):
File "/root/.virtualenvs/cgc/bin/farnsworth", line 11, in
load_entry_point('farnsworth', 'console_scripts', 'farnsworth')()
File "/root/.virtualenvs/cgc/lib/python3.5/site-packages/pkg_resources/init.py", line 542, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/root/.virtualenvs/cgc/lib/python3.5/site-packages/pkg_resources/init.py", line 2569, in load_entry_point
return ep.load()
File "/root/.virtualenvs/cgc/lib/python3.5/site-packages/pkg_resources/init.py", line 2229, in load
return self.resolve()
File "/root/.virtualenvs/cgc/lib/python3.5/site-packages/pkg_resources/init.py", line 2235, in resolve
module = import(self.module_name, fromlist=['name'], level=0)
File "/home/john/angr-dev/farnsworth/farnsworth/init.py", line 8, in
from .config import master_db
File "/home/john/angr-dev/farnsworth/farnsworth/config.py", line 32
except (peewee.OperationalError, peewee.InterfaceError), error:
It seems to a problem about python version.
farnsworth is for python3 however config.py is for python2.
I can't fix this problem.
Do shall I do?
The text was updated successfully, but these errors were encountered: