Debian Programming :: Persuading Pydev To Find PyQt

Jun 3, 2015

Background: I've got python3, and pyqt, and python3-pyqt4, and I can develop and run pyqt applications with no problem. I can just call "python3 filename.py" and python finds all the PyQt stuff automatically, so I'm sure I've got the python and qt things installed properly.

Now I want to start using eclipse, so I've got eclipse, and pydev installed fine. But pydev doesn't find the PyQt stuff, and shows red errors everywhere I try to import or use the PyQt classes. If I run my class, it runs just fine, so python3 is happy finding pyqt but pydev can't see it. Other libraries which I've installed can be found by pydev just fine and I get tooltip and even see the source under /usr/lib/python3/dist-packages.

On the import statement (from PyQt4 import QtCore) it manages to find PyQt4/__init__.py but QtCore is flagged as an "unresolved import". It looks like QtCore is inside a .so which might be confusing pydev? I tried adding the PyQt4 folder as an External library in the project settings but that didn't make any difference. Is there another way I can tell pydev where to find the PyQt4 information so that it doesn't fill my screen with errors? Do I need to separately download the PyQt4 source from somewhere and point pydev at that?

View 2 Replies


ADVERTISEMENT

Ubuntu :: Can't Install PyDev For Eclipse On Fresh Lucid

Sep 12, 2010

I am having trouble installing PyDev using Eclipse. I have even downloaded the zip and installed it in /usr/share/eclipse. I've put it in my ~/.eclipse. I've deleted my ~/.eclipse. Made sure all had rwxr-xr-x for all paths where it was installed (by both Eclipse and me). PyDev never shows up under Menu->Window->Preferences.

I get this windowed error:

Code:

'Install' has encountered a problem:
An error occurred while installing the items
session context was:(profile=PlatformProfile,

[code].....

However, those affected had resolution when eclipse-pde was installed. This is now a dependence of eclipse, so it was already installed on my system.

View 1 Replies View Related

Fedora :: Eric The Python IDE After Updating To PyQt 4.6.2e?

Nov 30, 2009

after updating to kde 4.3.3 PyQt4 updated to 4.6.2 since that eric is open with lots of errors and when i try to run apython script inside it the run fail

i reported a bug
https://bugzilla.redhat.com/show_bug.cgi?id=541982

View 1 Replies View Related

General :: Can't Import Qt Modules - PyQt Probably Not Installed

Nov 23, 2010

I m facing a problem in installing GNS3 Cisco simulator on Fedora 14. I persistently followed the instructions on the [URl]... website and the readme that came in with the GNS3 source package. The main packages needed before running GNS3 are:

Dynamips
Dynagen
Qemu
Qt 4.5.1 (or higher)
Python 2.5 (or higher)
Sip 4.5 (or higher)
PyQt 4.5 (or higher

Ive compiled and installed all the above packages...it took almost a lifetime, especially for Qt and PyQt. Then, I compiled and installed the GNS3 package and that went well too. But when I run the gns3 executable, I m getting the error message given below:

[root@mnpc GNS3-0.7.2-src]# gns3

Can't import Qt modules, PyQt is probably not installed. I did a double install on PyQt, but the problem still persists.

View 5 Replies View Related

Debian Programming :: Java Can't Find Main Class

May 18, 2010

This is a bit of revision for the OU course M257

Code: Select all import java.util.*;
public class FindDupes {
public static void main(String[] args) {
   Set<String> orig = new HashSet<String>();
   Set<String> dupe = new HashSet<String>();
   for(String a: args)
   if(!orig.add(a))
      dupe.add(a);

   orig.removeAll(dupe);
   System.out.println("words " + orig);
   System.out.println("dudes " + dupe);
}
}

for some reason it will compile but not run on debian lenny complains it can't find the main class but it compiles and runs without problem on Fedora 12.

View 6 Replies View Related

Red Hat / Fedora :: GNS3 Configuration Error - Can't Import Qt Modules, PyQt Is Probably Not Installed

Apr 20, 2011

I am getting a error bellow error msg when running gns3, can some explain what needs to be done. Cant import Qt modules, PyQt is probably not installed?

View 1 Replies View Related

Debian Programming :: How To Find Total Size Of A List Object In Byte

Jan 11, 2013

Assuming there are two list objects a1, a2.

a1 = ['
']
a2 =['hi
']

len() built-in function gives total number of elements in the list object.
len(a1) gives 1. len(a2) gives 1 also.

Code: Select all$ python
Python 2.7.3 (default, Sep  9 2012, 17:41:34)
[GCC 4.7.1] on linux2

[Code]......

I thought there exists a built-in function that gives total size of a list object in byte. So using the function produces 1 for a1, 3 for a2. I haven't found such function or module yet.

View 3 Replies View Related

Ubuntu Installation :: How To Install Pydev For Eclipse On Ubuntu?

May 14, 2010

I have tried several methods of installing pydev for eclipse on Ubuntu 10.04.I have gone to help in Eclipse and selected Install New Software, from there I entered.

View 7 Replies View Related

Programming :: Unable To Find Description Of Alsa's Programming Language

Dec 19, 2008

I am unable to find a description of alsa's programing language, this sort of stuff:

[Code]...

I need to know what, for example, 'ttable' means and what is its syntax. This seems to be a state secret.

View 2 Replies View Related

Programming :: Way To Find Core Files In System With Out Using "Find" Command

Jul 30, 2010

Is there any way to find the core files with out using the FIND command?

View 1 Replies View Related

CentOS 5 :: Installation Of GNS3 - "par@Paranor GNS3-0.6.1-src]$ ./gns3 Can't Import Qt Modules, PyQt Is Probably Not Installed ...error:"

Jul 13, 2009

I've one problem with the installation of GNS3. I've downloaded all the necessary package, i've all the dipendency satisfied and Qt4 is installed on my system, but when i try to start gns3 I receive: par@Paranor GNS3-0.6.1-src]$ ./gns3 Can't import Qt modules, PyQt is probably not installed ...error: " If I'll try to use setup.py:

[par@Paranor GNS3-0.6.1-src]$ ./setup.py
./setup.py: line 1: Setup script for the GNS3 packages.: command not found
import: unable to open image `sys': Permission denied.
./setup.py: line 4: syntax error near unexpected token `'./src''
./setup.py: line 4: `sys.path.append('./src')'

I've the same results if i give the command with sudo;. Consider that i'm working on Kernel 2.6.18-128.1.16.el5 on a notebook with AMD 64 cpu.

View 5 Replies View Related

Programming :: GCC - Can't Find The GMP

Dec 28, 2010

I compiled the GMP library and put it into a local directory (I have no idea where to put it otherwise (or how), but I'm just going to use this once anyway). I put this into the terminal:

gcc -L/Users/adm/Downloads/gmp-5.0.1/ -lgmp /Users/adm/Desktop
/main.c
--> gmp.h: No such file or directory

It won't find gmp.h (which is in that directory) and I don't want to compile my file inside the library directory. I have also tried this with no success.

LD_LIBRARY_PATH=/Users/adm/Downloads/gmp-5.0.1/

View 14 Replies View Related

Debian :: Could't Find 64bit Debian Lenny OS For Intel Architecture

Dec 18, 2010

I could't find the 64bit Debian Lenny OS for Intel architecture.Hence I have installed amd64 and it is working fine.Does both intel and amd have the same 64 bit OS amd64 ?

View 3 Replies View Related

Programming :: Find A Dir And Delete It?

Apr 19, 2010

I've got this line find . -type d -name 'elements' -exec rm -rf {} ; put together to find and delete all directories named elements and their contents.

It does work but whenever I run it I get the error/warning
Code: find: `./dir3/elements': No such file or directory
find: `./dir6/elements': No such file or directory

[code]....

View 4 Replies View Related

Programming :: Find And Cp Not Working?

Aug 6, 2010

The below script takes a date and table name from the user. It unzips and untar a file from archive folder based on date. Then select the required file based on the tablename provided and copy it to ../posextract folder.The folder posextract contains already extracted files for the user.

Code: echo "Enter date
"
read lookdate

[code]....

View 2 Replies View Related

Programming :: Cannot Find -lgtk-x11-2.0?

Aug 7, 2010

root@artos-laptop:~/habesh# /opt/Artos_toolchain_1.3/bin/arm-linux-gcc -o test2 base.c `pkg-config --cflags --libs gtk+-2.0`/opt/Artos_toolchain_1.3/bin/../lib/gcc/arm-linux/3.4.4/../../../../arm-linux/bin/ld: cannot find -lgtk-x11-2.0collect2: ld returned 1 exit statusit compiled for linux succesfully and can execute. i try to cross compile gtk program for ARM board. but it results in this error.

View 2 Replies View Related

Programming :: Cannot Find Wx/mousestate?

Apr 6, 2011

I'm having trouble with codeblocks and a widgets application. Im trying to create a basic application, but i need to include the wx/mousestate.h file. When i compile it cannot find the file. I'm afraid i need to install any module, but i have installed a lot of them and i couldn't solve the problem.

View 3 Replies View Related

Programming :: Can't Find Any Informaton On GCC?

Mar 20, 2010

I would like to learn how to program on Linux but I cant find any informaton on GCC. The manual is like a list that has no meaning to a novice. Are there any books out there that are not writen by Stallman? Is it more practical to learn it on another O.S and then transpose the information over to the Linux context?

View 14 Replies View Related

Programming :: Find The Source For 4ge?

Aug 2, 2011

How to find the source for 4ge programs ?

View 5 Replies View Related

Programming :: How To Find Files With Partial Name

Sep 1, 2010

I am fairly new to linux but I want to write a function to find any file with only a partial name. I can only use sh shell and busybox applets for this.I could do something like the sad code below...

Code:

TEST_ONE=$(find /path/to/directory -name *$1*)
TEST_TWO=$(find /path/to/directory -name $1*)
TEST_THREE=$(find /path/to/directory -name *$1)

[code]....

fi I just made that up but obviously it is pretty bad I'm sure there is a much better way to do it but I just can't think of a way. I also would like to have the file found even if capital letters are used and the file is all lower case.

View 2 Replies View Related

Programming :: Excluding Files From Find?

Oct 22, 2010

I have spent the last hour searching for a solution to this, but I can't get it to work. Here is what I am trying to do:

I have directories for different months in one folder. So for example Code: ../folder/Jan/
../folder/Aug/
etc. Some of the folders have a dot in front of the month as so: Code: ../folder/.Sep/
../folder/.Oct/

[Code].....

I am trying to find all the csv files EXCEPT those in a folder that has a dot. For example I want all the csv files in ../folder/Jan/ but I want none in ../folder/.Oct/.

I also want to exclude all the files in the /Aug/ folder that represent days 10-31.

Here is what I have so far: Code: find /some_path/folder/ ( ! -name "Aug[10-31]*.csv" ! -path "/.*/" -name "*.csv" ) | more This command lists all the .csv files except those in the /Aug/ files. So it just ignores the /Aug/ folder completely but lists every other .csv file.

View 3 Replies View Related

Programming :: Unable To Find The Perl

Mar 9, 2011

Just installed Fedora 14. I wanted to try "Hello World" with perl. But where is it?

Code: [user]@user bin]$ ls

View 1 Replies View Related

Programming :: Using Brace Expansion With Find?

Jun 2, 2011

I am interested in a more flexible targeted search in my directories. For example, if I am searching for all .txt .dat and .bat files (then perform an operation), I would think that the following would work:

find . -name '*.{txt,dat,bat}' -exec ...

But I get no results. I am running on Cygwin.I have confirmed that:

find . -name '*.txt' -exec ...
find . -name '*.dat' -exec ...
find . -name '*.bat' -exec ...

all find the aforementioned files. But, find . -name '*.{txt}'still produces no output.

View 7 Replies View Related

Programming :: Find Impacted Exe's For Given Function Name?

Dec 3, 2010

I am looking for some smart way to find all the exe's names for the given local function.
We are having thousands of C and Cobol files, and out of this we are creating 100's of exes. Now if I change any one of the function(C or Cobol), I want to know which exe's are going to be impacted.

One function written in some file can be called from lot other places, and create separate exes.

View 2 Replies View Related

Programming :: Find With A Regex Path?

May 5, 2010

I'm using bash scripting to find any file that matches a path governed by the following regular expression:

"(monthly|nightly).[0-9]+/home/(user1|user2)/.mailbox/"
to match files like:
monthly.9/home/user1/.mailbox/l23131564
nightly.15/home/user2/.mailbox/cur/6546213

I've tried:

Code:
myRegex="(monthly|nightly).[0-9]+/home/(user1|user2)/.mailbox/"
find ./ -regextype posix-egrep -regex $myRegex

and it just spins and never gives me an answer, even though the file structure isn't that big.

View 8 Replies View Related

Programming :: Gcc Cannot Find FastCGI Libraries

Jan 6, 2010

I've been trying for days now to build my first FastCGI application using gcc.

This is the output:

Code:

I believe I wouldn't have to refer to the lib path, but I added the -L flag to be sure.

The directory /usr/lib includes (among others) these files:

Code:

I have tried to follow these instructions. The files in the tar.gz archive provided by FastCGI.com no longer corresponds to the instructions there, but I was still able to run the ./configure and make commands so I believe FastCGI is installed.

But why can not the library be properly linked to? Really hope you can help me out on this one!

View 2 Replies View Related

Programming :: How To Find Array Length In C

Jul 3, 2011

I would like to know how can I find array length in C .I have array of structure and I want to sent it to different functions and I want to have it's length (number of elements) each time I want to use it and I don't like to use any additional variable to pass the function for each of arrays that I pass to function.
How can I do that?

View 5 Replies View Related

Programming :: How To Find Directories That Do Not Have A Certain File

May 28, 2010

I'm having problems figuring out the process to find directories that DO NOT contain a certain file. I have a mp3 collection that all the album art is name "folder.jpg". Not all the albums have images. I need a way to find the albums/directories that do not contain "folder.jpg". I can find the ones that do contain "folder.jpg" with

Code:
find . -iname 'folder.jpg' -print0 | xargs -0 ls >> album_art

but that is as far as my bash-fu can take me. I'm not really sure what my next step is.

My directory structure is like such: a-z/artist/album/folder.jpg

View 5 Replies View Related

Programming :: How To Find Out Width Of Terminal

Mar 19, 2010

I wonder how CLI applications know the width of the terminal. For example, how does ls know how many columns to use?

How do package managers like pacman know what length to make the download progress bar?

Also, how do they redraw the progress bar in the same line?

View 11 Replies View Related

Programming :: How To Find Task_struct Corresponding To Pthread_t

Jun 15, 2010

Suppose from main(), multiple threads are created -

Now in main() I have all threads unique ID i.e. tid

If in each thread I call getpid, getgid etc it will get what it requested.

How unique thread_t tid relates to task_struct created of it in the kernel? (for each thread a separate task_struct is created).

If I have array of tid, and somehow I manage to get all the task_struct.

How to *MAP* each tid to corresponding task_struct?

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved