Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong directory name in setup.py #158

Closed
tompe17 opened this issue Feb 27, 2015 · 5 comments
Closed

Wrong directory name in setup.py #158

tompe17 opened this issue Feb 27, 2015 · 5 comments
Labels

Comments

@tompe17
Copy link

tompe17 commented Feb 27, 2015

In setup.py

cfclient.utils.inputdevices

should probably be something else. At least what happened for me was that the install failed and I had to change this to:

cfclient.utils.inputreaders

But it does not fail on all my computers which is strange.

@mechAndy
Copy link

I found the same issue that you did. To work around it I had to add a little more. I had to add
fclient.utils.inputreaders and cfclient.utils.mux along with cfclient.utils.inputreaders

@qubitter
Copy link

I have the issue too:

When installing using setup.py I got this error:

python setup.py install
fatal: Not a git repository (or any of the parent directories): .git
Warning: Version file cannot be written.
running install
running build
running build_py
error: package directory 'lib/cfclient/utils/inputdevices' does not exist

I went into setup.py and changed that, but then when I ran setup.py it went through setup. I then opened IDLE to test. I got this error:

Traceback (most recent call last):
File "<pyshell#0>", line 1, in
from cflib import crtp
File "/Users/me/Documents/cflib.py", line 1, in
from cflib import crtp
ImportError: cannot import name 'crtp'

What am I doing wrong? Please help!!

@rs1990
Copy link

rs1990 commented Jul 2, 2015

Any luck solving this ? I tried qubitter's way but it failed again.

maverick@maverick:~/indigo_ws/src/crazyflie-clients-python$ sudo ./setup.sh
groupadd: group 'plugdev' already exists
running install
running build
running build_py
copying lib/cfclient/version.py -> build/lib.linux-i686-2.7/cfclient
error: package directory 'lib/cfclient/utils/inputdevices' does not exist

@mechAndy
Copy link

mechAndy commented Jul 2, 2015

I had to slightly modify my initial parameters in setup.py Lines 59-63:
packages=['cfclient', 'cfclient.ui', 'cfclient.ui.tabs',
'cfclient.ui.toolboxes', 'cfclient.ui.widgets',
'cfclient.utils', 'cfclient.ui.dialogs', 'cflib',
'cflib.bootloader', 'cflib.crazyflie', 'cflib.drivers',
'cflib.utils', 'cflib.crtp', 'cfclient.utils.mux', 'cfclient.utils.inputreaders','cfclient.utils.mux','cfclient.utils.inputinterfaces'],

I am using the radio-multilink version but I have had to modify my setup.py the same way every time regardless of branch. you can look at it here:
https://github.com/UtahDARCLab/crazyflie-clients-python/blob/radio_multilink/setup.py

@evoggy evoggy added the bug label Jul 14, 2015
@ataffanel
Copy link
Member

Since this bug was reported, setup.py has been fixed to work both with pip and with py2exe without problem so this has been fixed in the process.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants