-
Notifications
You must be signed in to change notification settings - Fork 4
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
Python 3 installation #3
Comments
@venkat-purdue, thanks for reporting this error of compatibility python 2 and python 3 string formats. The error is fixed now. |
Thank you for the quick response! @math-vrn . It does compile now. However, the code does not seem to work with the current tomopy. I will open an issue in the tomopy repo. |
@venkat-purdue I tried to use the wrapper.py in @math-vrn 's tomopy repo. It worked. |
Lprec seems to run okay when I run the ./tests/run_test.py code. However, when I try running the example based on my latest tomopy version 1.2.1 (compiled from the main master branch), https://tomopy.readthedocs.io/en/stable/ipynb/lprec.html the recon is an array with all values set to 1e-6. @ZeliangSu @math-vrn - should I open a new issue in the tomopy repo ? |
I am trying to get lprec working with python 3.6.
However, when I try to install it I get the following error:
python setup.py install
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -m64 -fPIC -m64 -fPIC -fPIC -I/anaconda3/lib/python3.6/site-packages/numpy/core/include -I/usr/local/cuda/include -Isrc -I/anaconda3/include/python3.6m -c src/lpRgpu_wrap.cpp -o build/temp.linux-x86_64-3.6/src/lpRgpu_wrap.o
Traceback (most recent call last):
File "setup.py", line 143, in
zip_safe=False)
File "/anaconda3/lib/python3.6/site-packages/setuptools/init.py", line 143, in setup
return distutils.core.setup(**attrs)
File "/anaconda3/lib/python3.6/distutils/core.py", line 148, in setup
dist.run_commands()
File "/anaconda3/lib/python3.6/distutils/dist.py", line 955, in run_commands
self.run_command(cmd)
File "/anaconda3/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/anaconda3/lib/python3.6/site-packages/setuptools/command/install.py", line 67, in run
self.do_egg_install()
File "/anaconda3/lib/python3.6/site-packages/setuptools/command/install.py", line 109, in do_egg_install
self.run_command('bdist_egg')
File "/anaconda3/lib/python3.6/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/anaconda3/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/anaconda3/lib/python3.6/site-packages/setuptools/command/bdist_egg.py", line 172, in run
cmd = self.call_command('install_lib', warn_dir=0)
File "/anaconda3/lib/python3.6/site-packages/setuptools/command/bdist_egg.py", line 158, in call_command
self.run_command(cmdname)
File "/anaconda3/lib/python3.6/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/anaconda3/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/anaconda3/lib/python3.6/site-packages/setuptools/command/install_lib.py", line 11, in run
self.build()
File "/anaconda3/lib/python3.6/distutils/command/install_lib.py", line 107, in build
self.run_command('build_ext')
File "/anaconda3/lib/python3.6/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/anaconda3/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/anaconda3/lib/python3.6/distutils/command/build_ext.py", line 339, in run
self.build_extensions()
File "setup.py", line 126, in build_extensions
build_ext.build_extensions(self)
File "/anaconda3/lib/python3.6/distutils/command/build_ext.py", line 448, in build_extensions
self._build_extensions_serial()
File "/anaconda3/lib/python3.6/distutils/command/build_ext.py", line 473, in _build_extensions_serial
self.build_extension(ext)
File "/anaconda3/lib/python3.6/distutils/command/build_ext.py", line 558, in build_extension
target_lang=language)
File "/anaconda3/lib/python3.6/distutils/ccompiler.py", line 717, in link_shared_object
extra_preargs, extra_postargs, build_temp, target_lang)
File "/anaconda3/lib/python3.6/distutils/unixccompiler.py", line 159, in link
libraries)
File "/anaconda3/lib/python3.6/distutils/ccompiler.py", line 1089, in gen_lib_options
lib_opts.append(compiler.library_dir_option(dir))
File "/anaconda3/lib/python3.6/distutils/unixccompiler.py", line 207, in library_dir_option
return "-L" + dir
TypeError: must be str, not bytes
The text was updated successfully, but these errors were encountered: