Closed kubark42 closed 8 years ago
It would seem this is related to #1, but I resolved the problem by simply eliminating this passage, e.g.
if os.path.exists('.git'):
GIT_REVISION = git_version()
elif os.path.exists('px4tools/version.py'):
# must be a source distribution, use existing version file
try:
from px4tools.version import git_revision as GIT_REVISION
except ImportError as e:
raise ImportError(str(e) + " - Unable to import git_revision. Try removing "
"px4tools/version.py and the build directory "
"before building.")
else:
GIT_REVISION = "Unknown"
became
FULLVERSION = VERSION
GIT_REVISION = git_version()
which I then installed by navigating to the directory with setup.py
and running pip2 install -e .
P.S. There is also a dependency on PyLab, which might be helpful to indicate in the <-- please see #3 README.md
'
@kubark42 Thanks for the report. pip install works for me now on 0.2.8, can you confirm?
Installation now works, but the installed package don't seem to have any methods associated with it.
>> dir(px4tools)
['__builtins__',
'__doc__',
'__file__',
'__name__',
'__package__',
'__path__',
'e',
'print_function']
Odd. Will look at it tonight. I typically use anaconda 3 and find that easiest to work with across all of my environments.
The init.py I changed to a try except block so I could get the version without having the dependencies installed. I'm guessing when you import you are missing some dependencies.
The init.py I changed to a try except block so I could get the version without having the dependencies installed. I'm guessing when you import you are missing some dependencies.
This would seem logical, but since pip2 install -e .
works on my modified code the dependencies presumably are all present. Strangely, the upstream code installs fine with pip2 install -e .
, but does not work. The only other modification I made was to change analysis.py as per https://github.com/dronecrew/px4tools/issues/3, but I don't think that's responsible for the methods not registering correctly.
@kubark42 Can you see if this is fixed now?
Should now be resolved, try package on conda-forge.
I get this error when trying to install px4tools
This works on my OSX installation, where I am also using Python 2, so it's unclear to me where this problem is coming from.