-
Notifications
You must be signed in to change notification settings - Fork 10
TypeError: expected str, bytes or os.PathLike object, not int #6
Comments
Hi @107635, the problem looks quite difficult to debug without having additional detail on the operative system, python version tou are currently using. Can you provide those information? |
Hi @drugilsberg I used the Ubuntu18.04, and the python 3.6.9. |
Hi @107635 I will look into this as soon as I have time. Could you use the docker image for the time being? |
@107635 I tried to reproduce the bug without any success.
And setup the build system in a pretty standard fashion:
Afterwards I tried to install the package after cloning and also directly from the remote.
From remote:
Both have been successful.
And also upgrade pip:
And try again the installation. |
Hi @107635 , thanks for reaching out and letting us know about this bug. |
Hi @drugilsberg & @C-nit ,thanks for your help. I re-installed the virtual machine and downloaded the mimkl package successfully. Thank you very much! |
When I used the command “python manage.py runserver” in an atom text editor to open my project on chrome, an error occurred: "TypeError at / Could you know how to solve this problem? Thanks very much! ########################################################### Environment: Request Method: GET Django Version: 3.1.1 Traceback (most recent call last): Exception Type: TypeError at / |
Hey @1998Suraj are you sure this is related to the |
upgrade you pip via
I had same problem, and I was using pip (9.0.1) version, but when I upgraded pip to (20.3.3), it got resolved. |
Python 3.6 now needs a slightly different command:
|
When I used the command “python setup.py install” to download the mimkl package, an error occurred: "TypeError: expected str, bytes or os.PathLike object, not int".
Could you know how to solve this problem?
Thanks very much!
###########################################################
guo@guo-VirtualBox:~/下载/PIMKL/mimkl-master$ sudo python3 setup.py install
running install
running bdist_egg
running setup_pymimkl
Install _pymimkl
Updating submodules
Building pymimkl in /home/guo/下载/PIMKL/mimkl-master/build
Traceback (most recent call last):
File "setup.py", line 158, in
'Topic :: Scientific/Engineering :: Mathematics',
File "/home/guo/.local/lib/python3.6/site-packages/setuptools/init.py", line 144, in setup
return distutils.core.setup(**attrs)
File "/usr/lib/python3.6/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/lib/python3.6/distutils/dist.py", line 955, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/home/guo/.local/lib/python3.6/site-packages/setuptools/command/install.py", line 67, in run
self.do_egg_install()
File "/home/guo/.local/lib/python3.6/site-packages/setuptools/command/install.py", line 109, in do_egg_install
self.run_command('bdist_egg')
File "/usr/lib/python3.6/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "setup.py", line 102, in run
self.run_command('setup_pymimkl')
File "/usr/lib/python3.6/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "setup.py", line 86, in run
self._install_pymimkl()
File "setup.py", line 51, in _install_pymimkl
SETUP_DIR, build_directory, sys.executable, PROCESSES
File "/usr/lib/python3.6/subprocess.py", line 306, in check_call
retcode = call(*popenargs, **kwargs)
File "/usr/lib/python3.6/subprocess.py", line 287, in call
with Popen(*popenargs, **kwargs) as p:
File "/usr/lib/python3.6/subprocess.py", line 729, in init
restore_signals, start_new_session)
File "/usr/lib/python3.6/subprocess.py", line 1295, in _execute_child
restore_signals, start_new_session, preexec_fn)
TypeError: expected str, bytes or os.PathLike object, not int
The text was updated successfully, but these errors were encountered: