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

raise ValueError("path '%s' cannot be absolute" % pathname) #82

Closed
cesarbaldeonv opened this issue Oct 6, 2015 · 15 comments · Fixed by #119
Closed

raise ValueError("path '%s' cannot be absolute" % pathname) #82

cesarbaldeonv opened this issue Oct 6, 2015 · 15 comments · Fixed by #119

Comments

@cesarbaldeonv
Copy link

When installing via pip, this error appears:

ValueError: path '/Users/mkleehammer/dev/pyodbc/src/buffer.cpp' cannot be absolute

@brousch
Copy link

brousch commented Oct 9, 2015

Duplicate of #77 ?

@cesarbaldeonv
Copy link
Author

No, it's something different. Here validates the file name, before trying to find it.

@4e1e0603
Copy link

I have the same error with Python 3.5 on Windows 7 64bit machine.

@mkleehammer
Copy link
Owner

The same error on Windows seems stranger - I would have expected it to download a binary for you (wheel). My guess is it is a version I haven't uploaded for, so that would fix it.

Regarding the actual error, can someone who can duplicate this get a pip log for me? Run pip install as usual, but add --log install.log. Thanks

@friedm
Copy link

friedm commented Feb 1, 2016

Same error on Windows 10 64 bit, python 3.5. Here's my pip log:

install.log.txt

@friedm
Copy link

friedm commented Feb 1, 2016

I was able to install the binary directly as referenced in #77, though.

@Jandini
Copy link

Jandini commented May 26, 2016

Hi, I'm getting exactly the same issue. Here is my log file:
install.log.txt

@skillian
Copy link

@mkleehammer I'm sorry that I don't know anything about Python's build system or Git, but in case it helps at all: I had to download pyodbc-3.0.10.tar.gz with pip and then open the archive with 7-Zip, open the pyodbc-3.0.10.tar file in the dist folder, then open pyodbc.egg-info\SOURCES.txt and remove all of the lines starting with /Users/mkleehammer/dev/pyodbc/

After saving, 7-Zip recognizes the file has changed and re-tars, and then re-gzips the archive and I could then install pyodbc with py -3 -m pip install pyodbc-3.0.10.tar.gz

@jinksPadlock
Copy link

Did the same thing as @skillian and it worked for me as well.

@skillian
Copy link

skillian commented Jul 9, 2016

@mkleehammer I think I fixed it by removing a call to abspath when collecting files. I was able to build an "egg-info" that had the right paths.

@sundhaug92
Copy link

@skillian Could you upload a PR?

@m3dwards
Copy link

m3dwards commented Aug 5, 2016

To pip install before PR is merged:
pip install git+https://github.com/ddwo/pyodbc.git@relpath#egg=pyodbc

@atocyo
Copy link

atocyo commented Jan 5, 2017

Error still present while doing pip update from version 3 to version 4.
ValueError: path '/Users/mkleehammer/dev/pyodbc/src/buffer.cpp' cannot be absolute

@MrAech
Copy link

MrAech commented Nov 11, 2023

 ValueError: path '/home/prathi/work/confluent-kafka-python/LICENSE.txt' cannot be absolute 
 im facing this error while installing rasa

@v-chojas
Copy link
Contributor

That has nothing to do with pyODBC.

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

Successfully merging a pull request may close this issue.