packages

Python email module ImportError: No module named utils

匿名 (未验证) 提交于 2019-12-03 08:42:37
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: My installation of Python's requests library has been working perfectly for months and it has decided to break today. Python 2.7.6 (default, Jun 22 2015, 17:58:13) [GCC 4.8.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import requests Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/lib/python2.7/dist-packages/requests/__init__.py", line 58, in <module> from . import utils File "/usr/local/lib/python2.7/dist-packages/requests/utils.py", line 26, in <module> from

Emacs 24: Unable to find theme file for `solarized-dark.

匿名 (未验证) 提交于 2019-12-03 07:50:05
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am on Mac 10.9.5 using Emacs 24.4 Following the instruction in here: https://github.com/sellout/emacs-color-theme-solarized , I downloaded the emacs-color-theme-solarized directory and added it to my Emacs custom-theme-load-path. That directory ( Emacs was installed with Macports ) looks like this : ls /opt/local/share/emacs/24.4/etc/themes/ adwaita-theme.el light-blue-theme.el tsdh-dark-theme.el deeper-blue-theme.el manoj-dark-theme.el tsdh-light-theme.el dichromacy-theme.el misterioso-theme.el wheatgrass-theme.el emacs-color-theme

Pip using system python osx

こ雲淡風輕ζ 提交于 2019-12-03 07:46:28
问题 I installed python26 using macports, so the correct python on my system is /opt/local/bin/python However, when I do sudo pip install <packagename> It gives me sudo pip install <somepackage> Exception: Traceback (most recent call last): File "/Library/Python/2.6/site-packages/pip-1.0.1-py2.6.egg/pip/basecommand.py", line 126, in main self.run(options, args) File "/Library/Python/2.6/site-packages/pip-1.0.1-py2.6.egg/pip/commands/install.py", line 215, in run import setuptools ImportError: No

src/ folder structure in C++?

久未见 提交于 2019-12-03 06:51:16
问题 i'm coming into C++ from Java/AS3-land, and i'm used to the package-cum-folder structure for my classes. and i like it. i understand the very basics of namespaces in c++, and i'm happy to leave it at just the basics. but, as my project gets more complex, i'd like to keep my folder structure organized in a way i can keep in my head. i.e. something similar to Java/AS3. 1) is there any reason to not have a folder structure like: src/ model/ view/ controller/ possibly with subfolders? (this is

extracting and creating ipk files

安稳与你 提交于 2019-12-03 06:50:15
问题 ipk packages are the intallation packages used by opkg. I'm trying to extract the contents of one of them and also create my own ipk. I've read that I should be able to untar them but that is not true. I've tried: tar -zxvf mypack.ipk and I get: zip: stdin: not in gzip format I've also tried: tar -xvf mypack.ipk and I get: tar: This does not look like a tar archive I've found that most of the information on the internet regarding ipk's are inaccurate. My ipk was generated by bitbake. I'm

让 CentOS 使用 yum

孤者浪人 提交于 2019-12-03 06:46:56
下载安装 yum Download CentOS6.3 yum i386: wget http://mirrors.163.com/centos/6.3/os/i386/Packages/yum-3.2.29-30.el6.centos.noarch.rpm wget http://mirrors.163.com/centos/6.3/os/i386/Packages/yum-metadata-parser-1.1.2-16.el6.i686.rpm wget http://mirrors.163.com/centos/6.3/os/i386/Packages/yum-plugin-fastestmirror-1.1.30-14.el6.noarch.rpm wget http://mirrors.163.com/centos/6.3/os/i386/Packages/python-iniparse-0.3.1-2.1.el6.noarch.rpm x86_64: wget http://mirrors.163.com/centos/6.3/os/x86_64/Packages/yum-3.2.29-30.el6.centos.noarch.rpm wget http://mirrors.163.com/centos/6.3/os/x86_64/Packages/yum

How to organise classes, packages [closed]

拥有回忆 提交于 2019-12-03 06:34:36
Closed. This question is off-topic. It is not currently accepting answers. Learn more . Want to improve this question? Update the question so it's on-topic for Stack Overflow. How do you decide what a package name should be and what class should go into what package ? I'm working on a project where I am constantly adding/removing classes and not really sure if I need a new package, or should add it to an existing one that im not currently aware of. Do you follow a set of rules when creating a new package ? How do you know if you are not duplicating package functionality ? Is this just down to

python import module from a package

本小妞迷上赌 提交于 2019-12-03 06:23:11
问题 folder structure: <current dir> main.py packages <dir> __init__.py mod.py main py: import packages print packages.mod.hello() mod.py: def hello(): return 'hello' __init__.py: from packages import mod If I run main.py , I get no error. But if I edit __init__.py to 'from packages import *' , I get this error: AttributeError: 'module' object has no attribute 'mod' I'm not asking how to make that 'print' command work. I can use other 'import' syntax in main.py to make it work. The question is: I

How can I create a waveform image of an MP3 in Linux?

无人久伴 提交于 2019-12-03 05:59:20
问题 Given an MP3 I would like to extract the waveform from the file into an image (.png) Is there a package that can do what I need ? 回答1: Using sox and gnuplot you can create basic waveform images: sox audio.mp3 audio.dat #create plaintext file of amplitude values tail -n+3 audio.dat > audio_only.dat #remove comments # write script file for gnuplot echo set term png size 320,180 > audio.gpi #set output format echo set output \"audio.png\" >> audio.gpi #set output file echo plot \"audio_only.dat\

Oracle Error PLS-00323: subprogram or cursor is declared in a package specification and must be defined in the package body

本小妞迷上赌 提交于 2019-12-03 05:52:38
Can someone help me put my pl/sql procedure in a package? I've tried and I'm struggling with it: This is what I have, for my package specification: CREATE OR REPLACE PACKAGE film_pkg IS title VARCHAR2(100); PROCEDURE get_films(fname VARCHAR2); END film_pkg; -- This is my package body where im running into the problems: CREATE OR REPLACE PACKAGE BODY film_pkg IS PROCEDURE get_films (fname IN film.title%TYPE, r_date OUT film.release_date%TYPE, dur OUT film.duration%TYPE) AS BEGIN SELECT release_date, duration INTO r_date, dur FROM FILM WHERE title = fname; EXCEPTION WHEN NO_DATA_FOUND THEN r