-
Notifications
You must be signed in to change notification settings - Fork 56
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
Syntax error during installation #111
Comments
Hi jmachace, It looks to me like there is something weird going on with your python environment/installation. The error you see is that the Try using If using On a side note, Python dropped support for version 2.7 a while ago. Unless you have a specific reason for using Python 2.7, I would recommend using Python 3. Cheers, |
Hi Zak, Upon updating I tried the original command Installed /home/pi/M-LOOP I then used Installed /home/pi/M-LOOP It appears that tensorflow >= 2.0.0 is not available. Cheers, |
Interesting. Just to double check, both commands gave essentially the same output? Just want to make sure that there wasn't a copy/paste mistake. It wouldn't be unreasonable for them to be the same; I don't know pip's inner workings so it might run Just navigating to https://pypi.org/simple/tensorflow/ in my browser seems to show a list of tensorflow package versions. It has versions up to 2.6.0, including packages for linux. What happens if you run |
I've removed tensorflow 1.14, but after updating it still installs tensorflow 1.14. Installed /home/pi/M-LOOP I've found some instructions on installing tensorflow 2.2.0, so I'll give that a go assuming I've not done something silly. |
I've tried installing on a different machine (Jetson Nano w/ Jetpack 4.6), but get the same error. running develop Installed /home/josh/M-LOOP |
Hi jmachace, I'm not sure why the machines are having a hard time getting a recent tensorflow version installed. Could you run the following commands in order and send me the output from each? |
Hi zakv,
`sudo -H pip3 install -e /home/josh/M-LOOP/'
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-z1chq5v_/scikit-learn/ |
Hmm, that's a very old version of pip. I would suggest updating it then repeating those commands. |
Okay, so I've installed Ubuntu 21.04 on a Pi400 and updated. Downloading M-LOOP-3.2.0.tar.gz (61 kB) Successfully built M-LOOP So it is installing into the wrong path. Have I done something wrong? I thought I had all of the dependencies, so I tried installing from source. running develop Installed /home/josh/M-LOOP I'm getting the same error. |
Ah sorry that installation is proving so difficult. For some reason, I don't think that I know that the docs suggest running I'm not sure why pip is struggling to find a download for tensorflow. I believe that's the root cause of why M-LOOP isn't installing right. Could you try running After a bit of googling it seems like you're not the only one to have issues installing tensorflow with pip. If the above command to list available tensorflow versions doesn't give any recent versions, consider trying the approach described here. Given your system and Python version I believe your command should be |
Could you also send me the output of |
Ran the following:
|
python3
|
Ok so we've narrowed down the problem to the fact that tensorflow won't install for some reason. You have a 64bit Python installation, so the issue is something else. I'd suggest following the steps listed here to get tensorflow 2 installed on your Pi400 (though note that the command listed there is for Python 3.7 so you'll need a different url). Any version 2.x.x should be ok for M-LOOP. I'd also suggest googling instructions for installing tensorflow 2 on your Jetson Nano if you'd like to do that as well. It seems like the installation is slightly different for those particular platforms than for a typical linux machine. Once you get tensorflow installed successfully, run either |
You may also want to take a look at this issue: tensorflow/tensorflow#29704 |
I am able to install M-LOOP version 2.2.0, but then have other issues that appear to be related to the python environment on the Pi boxes I've tried. So I went to a windows 10 box, installed anaconda and then installed M-LOOP by cloning from git and running |
Sorry that the pi boxes are turning out to be such a struggle, but I'm glad you got it working on the windows machine. And yep, looks like the |
Ok, many of the problems discovered in this issue are now logged separately and have fixes which will likely be merged soon.
I'll likely merge those changes in the next day or two. After that you'll be able to get them on your machines by running |
Thanks. |
Just merged the PR's mentioned above into the master branch. The installation and testing instructions should be updated (you'll need to look at the "latest" documentation rather than the default "stable" documentation). Also, the tests should no longer hang and should all pass. At this point all of your difficulties are external to M-LOOP, correct? If so I'll close this issue to mark it as resolved. If I do that, you're still welcome to comment on this issue. In fact I would encourage you to do so, that way any other users who would like to run M-LOOP on similar devices could benefit from your experience. I'll also continue to respond to your comments and answer any questions to the best of my abilities, though admittedly I do not have experience with your particular devices. I believe that I'll still get notifications if you comment on this issue after it is closed. However, feel free to @ me if I don't respond, which will ensure that I am notified. |
Hi jmachace, This issue has been idle for a while. It seems like all of the remaining problems were external to M-LOOP (i.e. related to getting tensorflow to install on various hardware)? If so I'll close this issue. Thanks for the bug report by the way! Cheers, |
Closing due to inactivity, but feel free to reopen if there are any more unresolved M-LOOP bugs related to this issue. |
Describe the bug
Syntax error when installing:
python setup.py develop
To Reproduce
Upon recloning:
git clone git://github.com/michaelhush/M-LOOP.git
Running installation:
python setup.py develop
Expected behavior
Successful completion of installation.
Screenshots
/tmp/easy_install-y_M61L/pytest-runner-5.3.1/temp/easy_install-UeIPEu/setuptools_scm-6.0.1/src
<pkg_resources.WorkingSet object at 0xb59f03d0>
Traceback (most recent call last):
File "setup.py", line 73, in
main()
File "setup.py", line 68, in main
'Topic :: Scientific/Engineering :: Physics']
File "/usr/lib/python2.7/dist-packages/setuptools/init.py", line 144, in setup
_install_setup_requires(attrs)
File "/usr/lib/python2.7/dist-packages/setuptools/init.py", line 139, in _install_setup_requires
dist.fetch_build_eggs(dist.setup_requires)
File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 724, in fetch_build_eggs
replace_conflicting=True,
File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 782, in resolve
replace_conflicting=replace_conflicting
File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 1065, in best_match
return self.obtain(req, installer)
File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 1077, in obtain
return installer(requirement)
File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 791, in fetch_build_egg
return cmd.easy_install(req)
File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 704, in easy_install
return self.install_item(spec, dist.location, tmpdir, deps)
File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 730, in install_item
dists = self.install_eggs(spec, download, tmpdir)
File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 915, in install_eggs
return self.build_and_install(setup_script, setup_base)
File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 1183, in build_and_install
self.run_setup(setup_script, setup_base, args)
File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 1169, in run_setup
run_setup(setup_script, args)
File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 253, in run_setup
raise
File "/usr/lib/python2.7/contextlib.py", line 35, in exit
self.gen.throw(type, value, traceback)
File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 195, in setup_context
yield
File "/usr/lib/python2.7/contextlib.py", line 35, in exit
self.gen.throw(type, value, traceback)
File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 166, in save_modules
saved_exc.resume()
File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 141, in resume
six.reraise(type, exc, self._tb)
File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 154, in save_modules
yield saved
File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 195, in setup_context
yield
File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 250, in run_setup
_execfile(setup_script, ns)
File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 45, in _execfile
exec(code, globals, locals)
File "/tmp/easy_install-y_M61L/pytest-runner-5.3.1/setup.py", line 21, in
name = 'M-LOOP',
File "/usr/lib/python2.7/dist-packages/setuptools/init.py", line 144, in setup
_install_setup_requires(attrs)
File "/usr/lib/python2.7/dist-packages/setuptools/init.py", line 139, in _install_setup_requires
dist.fetch_build_eggs(dist.setup_requires)
File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 724, in fetch_build_eggs
replace_conflicting=True,
File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 782, in resolve
replace_conflicting=replace_conflicting
File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 1065, in best_match
return self.obtain(req, installer)
File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 1077, in obtain
return installer(requirement)
File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 791, in fetch_build_egg
return cmd.easy_install(req)
File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 704, in easy_install
return self.install_item(spec, dist.location, tmpdir, deps)
File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 730, in install_item
dists = self.install_eggs(spec, download, tmpdir)
File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 915, in install_eggs
return self.build_and_install(setup_script, setup_base)
File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 1183, in build_and_install
self.run_setup(setup_script, setup_base, args)
File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 1169, in run_setup
run_setup(setup_script, args)
File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 253, in run_setup
raise
File "/usr/lib/python2.7/contextlib.py", line 35, in exit
self.gen.throw(type, value, traceback)
File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 195, in setup_context
yield
File "/usr/lib/python2.7/contextlib.py", line 35, in exit
self.gen.throw(type, value, traceback)
File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 166, in save_modules
saved_exc.resume()
File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 141, in resume
six.reraise(type, exc, self._tb)
File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 154, in save_modules
yield saved
File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 195, in setup_context
yield
File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 250, in run_setup
_execfile(setup_script, ns)
File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 45, in _execfile
exec(code, globals, locals)
File "/tmp/easy_install-y_M61L/pytest-runner-5.3.1/temp/easy_install-UeIPEu/setuptools_scm-6.0.1/setup.py", line 52, in
download_url = 'https://github.com/michaelhush/M-LOOP/tarball/3.2.1',
File "/tmp/easy_install-y_M61L/pytest-runner-5.3.1/temp/easy_install-UeIPEu/setuptools_scm-6.0.1/setup.py", line 29, in scm_config
File "/tmp/easy_install-y_M61L/pytest-runner-5.3.1/temp/easy_install-UeIPEu/setuptools_scm-6.0.1/src/setuptools_scm/init.py", line 8, in
File "/tmp/easy_install-y_M61L/pytest-runner-5.3.1/temp/easy_install-UeIPEu/setuptools_scm-6.0.1/src/setuptools_scm/config.py", line 6, in
File "/tmp/easy_install-y_M61L/pytest-runner-5.3.1/temp/easy_install-UeIPEu/setuptools_scm-6.0.1/src/setuptools_scm/utils.py", line 41
print(*k)
^
SyntaxError: invalid syntax
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: