I cloned an organism project from github.
I tried to install it, but there is no one setup.py file and no documentation.
Could you advise me how to correctly build and install it under Ubuntu 12.04?
I tried so far:
sudo python3 organism.setup.py install
which shows error message:
byte-compiling /usr/local/lib/python3.2/site-packages/organism/coreaux/configuration.py to configuration.pyc
File "/usr/local/lib/python3.2/site-packages/organism/coreaux/configuration.py", line 31
_USER_FOLDER_PERMISSIONS = 0750
^
SyntaxError: invalid token
and running it shows this error message:
$ organism
Traceback (most recent call last):
File "/usr/local/bin/organism", line 23, in <module>
organism.main()
File "/usr/local/lib/python3.2/site-packages/organism/__init__.py", line 21, in main
import coreaux
ImportError: No module named coreaux
I'm not sure if I should use all the files organism-development.setup.py, organism-organizer.setup.py, organism.setup.py, organism-tk.setup.py in the build process or the error is elsewhere.
Related
getting a error while a installing a tensorflow python project from https://github.com/victordibia/skyfall
first i tried to install the requiremnt.txt file i got Could not detect requirement name for 'git+https://github.com/dpallot/simple-websocket-server.git', please specify one with #egg=your_package_name error,
then i removed the last line of txt file, then getting this
Traceback (most recent call last):
File "app.py", line 18, in
from utils import web_socket_server
File "C:\Users\anurag\Downloads\skyfall-master\utils\web_socket_server.py", line 4, in
from SimpleWebSocketServer import SimpleWebSocketServer, WebSocket
ModuleNotFoundError: No module named 'SimpleWebSocketServer'
after that i installed git , now getting this
Traceback (most recent call last):
File "app.py", line 19, in
from utils import web_socket_client
File "C:\Users\anurag\Downloads\skyfall-master\utils\web_socket_client.py", line 8, in
from websocket import WebSocketException, WebSocketConnectionClosedException
ImportError: cannot import name 'WebSocketException'
The error means that you have not installed this package: https://github.com/dpallot/simple-websocket-server
Try this to install it(you must have pip installed and also git) and then run the project again:
python -m pip install git+https://github.com/dpallot/simple-websocket-server.git
I want to install and use PyKCS11 to my mac (via terminal). I want to use python3 for the whole process. I downloaded it from here: https://bitbucket.org/PyKCS11/pykcs11.
I have python3 installed at /usr/local/lib. I downloaded the folder, ran make build, and everything was ok. When i run make install i get the following:
python3 setup.py install --prefix=/usr/local --root=/
running install
running build
running build_py
running build_ext
running install_lib
running install_egg_info
Removing /usr/local/lib/python3.4/site-packages/PyKCS11-1.3.2-py3.4.egg-info
Writing /usr/local/lib/python3.4/site-packages/PyKCS11-1.3.2-py3.4.egg-info
(*Removing... is from the previous time i executed the command)
After that, i open python3 and execute import PyKCS11
and i get the following error:
>>> import PyKCS11
Traceback (most recent call last):
File "/Users/Dkostas/Desktop/tools/PyKCS11/PyKCS11/LowLevel.py", line 18, in swig_import_helper
fp, pathname, description = imp.find_module('_LowLevel', [dirname(__file__)])
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/imp.py", line 297, in find_module
raise ImportError(_ERR_MSG.format(name), name=name)
ImportError: No module named '_LowLevel'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/Dkostas/Desktop/tools/PyKCS11/PyKCS11/__init__.py", line 20, in <module>
import PyKCS11.LowLevel
File "/Users/Dkostas/Desktop/tools/PyKCS11/PyKCS11/LowLevel.py", line 28, in <module>
_LowLevel = swig_import_helper()
File "/Users/Dkostas/Desktop/tools/PyKCS11/PyKCS11/LowLevel.py", line 20, in swig_import_helper
import _LowLevel
ImportError: No module named '_LowLevel'
Could it be a problem that python3 cannot use swig?
Python2 is installed at a different location (/usr/lib/python2.7)
I used Homebrew to install python.
Any ideas appreciated.
Thanks in advance!
you need to come out from PyKCS11 directory and for more info check the below link
https://github.com/LudovicRousseau/PyKCS11/issues/70
I installed on my XP machine the python version - 3.4.0
and now I want to install the web.py module
the installation is failed on print "var", var
I guess is because the missing "(" , ")"
but how to fix that?
C:\Python34\Scripts>pip install web.py
Downloading/unpacking web.py
Running setup.py (path:D:\DOCUME~1\uba\LOCALS~1\Temp\pip_build_uba\web.p
y\setup.py) egg_info for package web.py
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "D:\DOCUME~1\ubarih\LOCALS~1\Temp\pip_build_uba\web.py\setup.py",
line 6, in <module>
from web import __version__
File "D:\DOCUME~1\uba\LOCALS~1\Temp\pip_build_uba\web.py\web\__init_
_.py", line 14, in <module>
import utils, db, net, wsgi, http, webapi, httpserver, debugerror
File "C:\Python34\lib\site-packages\db\__init__.py", line 69
print "var", var
^
SyntaxError: invalid syntax
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "D:\DOCUME~1\uba\LOCALS~1\Temp\pip_build_uba\web.py\setup.py", line
6, in <module>
from web import __version__
File "D:\DOCUME~1\ubarih\LOCALS~1\Temp\pip_build_uba\web.py\web\__init__.py
", line 14, in <module>
import utils, db, net, wsgi, http, webapi, httpserver, debugerror
File "C:\Python34\lib\site-packages\db\__init__.py", line 69
print "var", var
^
SyntaxError: invalid syntax
----------------------------------------
Cleaning up...
You installed Python 3.4 on your machine, but web.py does not support Python3.X.
If you look at the source, you see that there is a branch in the git, but the migration seemed to be incomplete. (https://github.com/webpy/webpy/tree/python3/web).
There was also a discussion about the migration (https://groups.google.com/forum/#!topic/webpy/NvDqKEEEMEI).
Install the development branch
You can try this branch by downloading the source from github
(https://github.com/webpy/webpy/archive/python3.zip). After you downloaded the file, extract it and run the setup-script
setup.py install
from a python command prompt (assuming you are on Windows).
But there is no guarantee that this version will work as expected.
As an (easier?) alternative:
If you want to use web.py, try to install python 2.7.x (https://www.python.org/downloads/release/python-2710/) and install web.py via pip afterwards.
I tried to install a python package "BeautifulSoup" and it gave a error message: "pkg_resources.DistributionNotFound". After going through stackoverflow website I download a python script and ran it:
https://svn.apache.org/repos/asf/oodt/tools/oodtsite.publisher/trunk/distribute_setup.py
Now it is throwing a new error message when I try to install sudo pip install beautifulsoup4:
Traceback (most recent call last):
File "/usr/bin/pip", line 5, in <module>
from pkg_resources import load_entry_point
File "/usr/local/lib/python3.4/dist-packages/pkg_resources.py", line 45
def _bypass_ensure_directory(name, mode=0777):
SyntaxError: invalid token
Another interesting thing is when a type a wrong command in terminal like "lss" or anything error message is like this appear:
Traceback (most recent call last):
File "/usr/lib/command-not-found", line 8, in <module>
import CommandNotFound
File "/usr/share/command-not-found/CommandNotFound/__init__.py", line 1, in <module>
from CommandNotFound import CommandNotFound
File "/usr/share/command-not-found/CommandNotFound/CommandNotFound.py", line 13
except gdbm.error, err:
SyntaxError: invalid syntax
Could someone guide me in how to resolve this? My system:
kernel: 3.16.0-4-amd64 x86_64 (64 bit)
desktop: MATE 1.10.0
distro: LinuxMint 2 betsy
Solution
Changed the symblic link "python" in /usr/bin to point at "/usr/bin/python3.4" to "/usr/bin/python2.7".
Other thing is "mintMenu" the advanced start menu in the panel is now working again.
I am new to git, and deployed my first python-django app via github:
https://github.com/staticdev/django-crud-utils
The problem is that, when I try to install it, I get the error:
$ pip install -e git://github.com/staticdev/django-crud-utils.git#egg=django-crud-utils
Obtaining django-crud-utils from git+git://github.com/staticdev/django-crud-utils.git#egg=django-crud-utils
Updating /home/static/virtualenvs/prp2/src/django-crud-utils clone
Running setup.py egg_info for package django-crud-utils
Traceback (most recent call last):
File "<string>", line 14, in <module>
File "/home/static/virtualenvs/prp2/src/django-crud-utils/setup.py", line 15, in <module>
DESC = " ".join(__import__('crud_utils').__doc__.splitlines()).strip()
AttributeError: 'NoneType' object has no attribute 'splitlines'
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 14, in <module>
File "/home/static/virtualenvs/prp2/src/django-crud-utils/setup.py", line 15, in <module>
DESC = " ".join(__import__('crud_utils').__doc__.splitlines()).strip()
AttributeError: 'NoneType' object has no attribute 'splitlines'
----------------------------------------
Command python setup.py egg_info failed with error code 1 in /home/static/virtualenvs/prp2/src/django-crud-utils
Storing complete log in /home/static/.pip/pip.log
Any help?
Tks in advance.
You don't have a docstring on the crud_utils package, thus installation fails.
You can get the same error by just running the setup.py module locally:
python setup.py
Add a docstring to your crud_utils/__init__.py module:
"""Some docstring here would help"""
P.S. You also checked in the .pyc byte-compiled cache files into GitHub, you may want to remove those.